Java - Writing Methods

Flashcard
•
Computers, Instructional Technology
•
9th - 12th Grade
•
Hard
Quizizz 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
AP CS A Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
10 questions
Paper Practice 2

Flashcard
•
9th - 12th Grade
4 questions
Systems of Equations Elimination Easy Type

Flashcard
•
9th - 12th Grade
5 questions
2.1 Intro To Java

Flashcard
•
9th - 12th Grade
10 questions
Software Vocab

Flashcard
•
KG - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade