Java conditional/loop/method/user input
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Indira Pothukuchi
Used 18+ times
FREE Resource
Enhance your content in a minute
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(int) (Math.random()*100) generates a random number between 0 and 100, including 0 and 100
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents a single line comment in Java?
/* Comment */
<!-- Comment -->
// Comment
# Comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents a multi-line comment in Java?
<!-- Comment >
// Comment
/* Comment */
# Comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public static _____ statement(int x, int y){
String z = "x is: " + x + "and y is: " + y;
return z }
What should the return type be?
void
int
double
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public static ________ average(int x, int y){
return (double) x / y;
}
What should the return type be?
void
int
double
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is an example of a non-return method.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The name of this method is ....
Oddsum
int Oddsum
int Oddsum (int number)
return totaloddsum
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
Already have an account?
Similar Resources on Wayground
20 questions
CORLANG Week6-7
Quiz
•
10th Grade - University
20 questions
IT Chapter 1-3 Review
Quiz
•
11th Grade
20 questions
GCE CPA Paper 1 Section A 2022-SP
Quiz
•
10th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
20 questions
HTML QUIZ # 3
Quiz
•
10th Grade
20 questions
Pengetahuan Dasar Komputer
Quiz
•
9th - 12th Grade
21 questions
Visual Basic Assessment
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
