CMP128 Java Ch. 05 Methods

Quiz
•
Computers
•
University
•
Medium

Professor Tirrito
Used 95+ times
FREE Resource
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
Similar Resources on Wayground
11 questions
Basics of JAVA

Quiz
•
University
10 questions
Flutter Quiz

Quiz
•
University
5 questions
Lec 5

Quiz
•
University
15 questions
Quiz No. 3 II-CINS PNetSec (final term)

Quiz
•
University
12 questions
Python Quiz 1.4

Quiz
•
University
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
10 questions
Techno India University Python Quiz Contest

Quiz
•
University
10 questions
Java Basic Programming Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Disney Characters

Quiz
•
KG
20 questions
Place Value

Quiz
•
KG - 3rd Grade
20 questions
Logos

Quiz
•
KG
8 questions
Place Value & Value

Quiz
•
KG - 2nd Grade
20 questions
Capitalization in sentences

Quiz
•
KG - 4th Grade
12 questions
Continents and Oceans

Quiz
•
KG - 8th Grade
5 questions
911 Presentation

Lesson
•
KG
13 questions
Capitalization and Punctuation

Quiz
•
KG - 2nd Grade