CMP128 Java Ch. 05 Methods
Quiz
•
Computers
•
University
•
Medium
Professor Tirrito
Used 95+ times
FREE Resource
Enhance your content in a minute
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
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
15 questions
DBMS LAB QUIZ
Quiz
•
University
10 questions
Technology, IT and ICT
Quiz
•
5th Grade - University
13 questions
AI-1
Quiz
•
KG - University
9 questions
Week 7 Quiz
Quiz
•
University
10 questions
ECM3434 Business Analysis 1 - Business process modelling
Quiz
•
University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
Шаблоны проектирования
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Disney Characters
Quiz
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
21 questions
Halloween
Quiz
•
KG - 5th Grade
8 questions
Kindergarten - CUA 2- Topic 2 -Matter
Quiz
•
KG
16 questions
Halloween Candy
Quiz
•
KG - 12th Grade
20 questions
Logos
Quiz
•
KG
25 questions
CKLA unit 3 assessment K
Quiz
•
KG
20 questions
Capitalization in sentences
Quiz
•
KG - 4th Grade
