Java - Writing Methods
Flashcard
•
Computers, Instructional Technology
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is NOT a reason for using procedural abstraction? Divide a problem into subproblems to solve it a piece at a time, Reuse code by putting it in a method and calling it whenever needed, Smaller methods are easier to debug and understand, Passing arguments to parameters are required when writing methods
Back
Passing arguments to parameters are required when writing methods
2.
FLASHCARD QUESTION
Front
Which of the following is NOT a step to creating and calling a method:
Declare an Object of your class in the main method,
Call the method by using objectName.methodName(),
Write the method definition (signature) with the header and body,
Use System.out.println() to debug your program
Back
Use System.out.println() to debug your program
3.
FLASHCARD QUESTION
Front
Which of the following method calls is INVALID? Assume the object name is song and the method name is chorus.
Back
4.
FLASHCARD QUESTION
Front
When you create your own method, the variables you define for it in the method header are called
Back
formal parameters
5.
FLASHCARD QUESTION
Front
Which of the following is the correct method header for this method call:
song.verse(3, "Bob");
Back
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
2 questions
W7.4
Flashcard
•
KG - University
8 questions
Customer Service Vocabulary
Flashcard
•
7th - 12th Grade
7 questions
for zv patho
Flashcard
•
KG
2 questions
7.2 The Cosine Law
Flashcard
•
12th Grade
3 questions
Chris B Remediation CIA 3 Algebra
Flashcard
•
9th - 12th Grade
5 questions
Cvc word game
Flashcard
•
KG - University
6 questions
Fetch-Execute Cycle and CPU Registers
Flashcard
•
KG
6 questions
unit2-PG-QUANTIFIERS
Flashcard
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade