Java conditional/loop/method/user input
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Indira Pothukuchi
Used 16+ 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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Latihan Jaringan Dasar PSAS
Quiz
•
10th Grade
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
22 questions
Text and Image representation
Quiz
•
11th Grade
20 questions
TO PAT AIJ
Quiz
•
11th Grade
20 questions
Uji Pengetahuan Jaringan Komputer
Quiz
•
9th Grade
20 questions
Computer Fundamentals
Quiz
•
10th Grade
18 questions
End of unit assessment - Networks
Quiz
•
9th Grade
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
