
Java Methods and Return Values

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Courtney Yatteau
Used 36+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
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
goDown();
what does the () mean?
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Latihan Interface

Quiz
•
9th - 12th Grade
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
15 questions
Edublock -course assessment

Quiz
•
12th Grade
10 questions
LATIHAN 4

Quiz
•
10th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
10 questions
C++ 變數/輸入/輸出

Quiz
•
11th Grade
12 questions
Greenfoot Java Classes

Quiz
•
10th Grade
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade