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
Q1 M3 PRE-TEST
Quiz
•
10th Grade
20 questions
HTML5 Basics
Quiz
•
7th - 10th Grade
20 questions
Quiz ASJ
Quiz
•
12th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
20 questions
Quiz
•
7th - 12th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
20 questions
Unit Test 1 Class 8 Computer
Quiz
•
8th - 9th Grade
20 questions
Software
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
