
2023-2024 Fall final study guide
Authored by John Kim
Computers
9th - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
System.out.println(2 % 3);
2
0
3
1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
System.out.println(1 / 3);
0.3333333333333333
0
It will result in a run time error
It will result in a compile time error
0.3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of b after the code is run?
double a = 9.6982;
int b = 12;
b = (int) a;
9.6982
9
10
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following?
double value = Math.random();
int num = (int) (value * 5) + 5;
A random number from 0 to 4
A random number from 1 to 5
A random number from 5 to 9
A random number from 5 to 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output ?
System.out.println(1.0 / 3);
0
3
0.333333333333333
0.3 with an infinite number of 3's following the decimal point
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print when x has been set to 187?
if (x < 0)
System.out.println("x is negative");
else if (x == 0)
System.out.println("x is zero");
else
System.out.println("x is positive");
x is negative
x is positive
x is zero
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the following code executes and x equals 4 and y equals 3? (hint, read carefully)
if (!(x < 3 || y > 2))
System.out.println("first case");
else
System.out.println("second case");
first case
second case
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
40 questions
3rd Periodical Examination ETech
Quiz
•
12th Grade
32 questions
COP NSDA L3= 0006
Quiz
•
12th Grade
40 questions
Sistemas de Archivos: operaciones
Quiz
•
11th Grade
40 questions
SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI
Quiz
•
10th Grade
36 questions
PEKAN ULANGAN HARIAN RPL
Quiz
•
12th Grade
40 questions
SIMULASI DIGITAL - X
Quiz
•
KG - Professional Dev...
40 questions
Python
Quiz
•
9th - 11th Grade
37 questions
HTML VÀ CẤU TRÚC WEB
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade