
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
20 questions
IST CodeHS Unit 2 Robot Coding Review

Quiz
•
9th - 12th Grade
24 questions
SKT4 : Bab 1 : f) Tatasusunan & Subaturcara

Quiz
•
10th - 12th Grade
20 questions
JavaScript Basics CodeHS

Quiz
•
7th - 12th Grade
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
25 questions
JavaScript Karel Unit 1 Quiz Study Guide

Quiz
•
9th - 12th Grade
24 questions
Modulo and Booleans - Java

Quiz
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
19 questions
Java Method

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