
CS Unit 2 Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Chandra Batzel
Used 2+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 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
2 mins • 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
2 mins • 1 pt
Which of the following is not a primitive type?
int
double
String
boolean
char
4.
MULTIPLE CHOICE QUESTION
2 mins • 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
2 mins • 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
2 mins • 1 pt
What is the result of this expression?
5 + 2 / 3 + 1
5
6
6.67
0
7.
MULTIPLE CHOICE QUESTION
2 mins • 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
26 questions
Berpikir Komputasi dan Algoritma

Quiz
•
12th Grade
20 questions
DATA STRUCTURES

Quiz
•
12th Grade
20 questions
Java Unit 1

Quiz
•
10th - 12th Grade
19 questions
AP-Computer Science A

Quiz
•
12th Grade
23 questions
Java

Quiz
•
11th Grade - University
20 questions
3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

Quiz
•
12th Grade
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
20 questions
Berpikir Komputasional dan Algoritma Pemrograman

Quiz
•
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