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
Similar Resources on Wayground
8 questions
CHILDREN 2 (1ST CLASS)
Flashcard
•
KG
1 questions
Untitled Flashcards
Flashcard
•
KG
5 questions
Kuis statistika
Flashcard
•
11th Grade - University
2 questions
W4.4
Flashcard
•
KG - University
6 questions
Belongings Movement
Flashcard
•
KG
8 questions
Unit 3.7 Firm's costs, Revenue & Objective
Flashcard
•
11th Grade
11 questions
7517 05 Structured Programming
Flashcard
•
10th Grade - University
4 questions
Untitled Flashcards
Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade