
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
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
15 questions
Adivina quien?
Quiz
•
1st - 10th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
15 questions
KD 3.1_Aplikasi Pengolah Angka / Spreadsheet
Quiz
•
10th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th 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
