Unit 2 Quiz review

Quiz
•
Computers
•
12th Grade
•
Hard
Nicholas Savold
Used 4+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the method to print out text in Java?
System.out.println()
System.out.printline()
System.output()
System.out.PRINTLN()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following lines? int x = 24; System.out.println("The total is + x + x);
The total is 24
The total is 2424
The total is 48
The total is x + x
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive type?
int
double
String
boolean
char
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after this code? int x = 5; x = 10; x = 4;
5
10
4
true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper syntax to initialize a double called temperature to have the value 70.4?
int temperature = 70.4;
double temperature = 70.4;
temperature = 70.4;
float temperature = 70.4;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this expression? Assume all numbers are int. 5 + 2/3 + 1
5
6
6.67
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which expression returns the 1's place of an integer x?
x % 10
x/10
x % 100
x + 1
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
AP Java Unit 2 Quiz

Quiz
•
10th - 12th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th Grade
20 questions
PEMBOLEHUBAH,PEMALAR DAN JENIS DATA

Quiz
•
7th - 12th Grade
21 questions
Java Programming Quiz unit 3

Quiz
•
12th Grade
22 questions
BAB 3 : KOD ARAHAN

Quiz
•
7th - 12th Grade
20 questions
Pointers

Quiz
•
12th Grade
18 questions
SAINS KOMPUTER TING 4 - 1.5 AMALAN TERBAIK PENGATURCARAAN

Quiz
•
12th Grade - University
20 questions
AP CS A Unit 3

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade