
CMP128 Java Ch. 05 Methods
Authored by Professor Tirrito
Computers
University
Used 95+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
A ___________ is a pre-defined set of steps that complete a specific task, optionally based on parameter values, and optionally returning some result.
array
function
method
module
class
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Java method (function/module) definitions can contain which of the following parts in their headers?
An access modifier such as public or private
An optional access specifier called static
a return type or void
all of the above
3.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Java method definitions require which of the following parts in their headers?
A method name
a set of parentheses
a comma-separated parameter list
all of the above
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The body of a method definition is contained within a set of ______________.
parentheses
rectangle brackets
curly braces
angle brackets
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A method must be called from an object unless the method definition contains the keyword ___________ in its header.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Methods are called (instantiated/invoked) by referencing the __________ of the method and any optional _____________ list.
data type, parameter
method name, argument
public keyword, parameter
static keyword, argument
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Methods that contain the _______ keyword in the data type position do not return any data, so they can simply be called without being part of a larger statement.
void
static
public
boolean
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
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
12 questions
Quiz No. 2.2 Hash Tables
Quiz
•
University
10 questions
Dart
Quiz
•
University
15 questions
Quiz 1
Quiz
•
University
10 questions
Digital Tools
Quiz
•
University
11 questions
Java Quizz 2
Quiz
•
University
10 questions
DAA Quiz 1
Quiz
•
University
10 questions
python quiz
Quiz
•
6th Grade - Professio...
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
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade