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
23 questions
CSAwesome Unit 1 Vocabulary

Quiz
•
10th - 12th Grade
23 questions
Unit 1 CodeHS Review

Quiz
•
9th - 12th Grade
25 questions
arrays and strings in java

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

Quiz
•
11th - 12th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)

Quiz
•
KG - University
20 questions
APCS A - Array 6.1,6.2,6.3,6.

Quiz
•
9th - 12th Grade
22 questions
Karel Quiz

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade