
Java Methods and Return Values
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
Courtney Yatteau
Used 36+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
these are the number and types of variables or objects sent to a method
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the returned value of recMethod(5)?
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
A semi-colon
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
30 sec • 1 pt
Which method has a parameter and returns an integer?
public void methodExample(int num1, int num2) {...}
public void methodExample(int num) {...}
public int methodExample(int num) {...}
public int methodExample() {...}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is stored in x after the code segment is executed?
int x;
x = 10 + 5 % 3;
0
5
11
12
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If a method of a class is defined like this:
goDown();
what does the () mean?
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
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
Bimestral 2P
Quiz
•
11th Grade
14 questions
procesos y tipos de imágen
Quiz
•
10th Grade
10 questions
Jaringan Komputer dan Internet
Quiz
•
11th Grade
15 questions
Imagen GIMP
Quiz
•
9th - 12th Grade
10 questions
Impresa e siti web
Quiz
•
8th - 12th Grade
10 questions
CLASSROOM
Quiz
•
10th Grade
10 questions
ป.5 แบบทำสอบหลังเรียน เรืองข้อมูลและสารสนเทศ
Quiz
•
10th Grade
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
