
Java Programming Quiz
Authored by Nurul Izzati
English
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the program in Listing 2.1?
To calculate the area of a rectangle
To calculate the area of a circle
To calculate the volume of a sphere
To calculate the perimeter of a triangle
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare and initialize a variable in Java?
int x = 1;
x = 1;
double radius;
char ans = 'A';
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a large amount of money in Java?
byte
float
short
long
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the remainder operator (%) in Java?
To calculate the square root of a number
To determine if a number is even or odd
To find the average of two numbers
To perform division with decimal numbers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the program in the 'DisplayTime' class when the user enters 120 seconds?
120 seconds is 2 minutes and 0 seconds
120 seconds is 1 minute and 60 seconds
120 seconds is 1 minute and 0 seconds
120 seconds is 2 minutes and 60 seconds
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 1.0 - 0.1 - 0.1 - 0.1 - 0.1 - 0.1?
0.49999999999999994
0.5
0.4999999999999999
0.5000000000000001
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of Math.pow(2.5, -2)?
0.25
0.125
0.16
0.0625
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
Expressions of quantity
Quiz
•
10th Grade - University
15 questions
X'smas Quiz
Quiz
•
12th Grade
10 questions
English language Techniques
Quiz
•
9th - 12th Grade
10 questions
Quiz 1 (Grammar In Use)
Quiz
•
5th Grade - University
15 questions
Tenses - Tension !!!
Quiz
•
11th Grade - University
11 questions
Review quiz: Good Reasons to use technology to learn English
Quiz
•
9th - 12th Grade
14 questions
English quiz 1
Quiz
•
10th Grade - University
10 questions
Game 12: Quizizz! game
Quiz
•
1st - 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
Discover more resources for English
9 questions
The Art of the Haiku
Lesson
•
6th - 12th Grade
7 questions
SPARK 12/18/25
Lesson
•
9th - 12th Grade
26 questions
Christmas Trivia
Quiz
•
12th Grade
10 questions
The Best Christmas Pageant Ever Chapter 5
Quiz
•
KG - University
10 questions
ACT 3: Humanities Common Assessment
Quiz
•
9th - 12th Grade