
CodeHS - Unit 2: Lessons 1 - 3

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Courtney Yatteau
Used 35+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare an integer variable?
int x = 3;
integer x = 3;
integer x is 3;
int x is 3;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct numeric java type to use for decimals?
Integer
Double
Char
Boolean
String
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable declaration below is correct?
int a = 4.5;
char grade = 95;
int a = 3/4;
char grade = 'A';
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which option correctly declares a string variable?
String name = Chris;
string name = "Chris";
string name = 'Chris';
String name = "Chris";
String name = 'Chris';
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable name is invalid?
eightName
_8name
8name
$eightname
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to obtain user input for a string?
readLine()
readInt()
readDouble()
readBoolean()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You must use quotations around a prompt in a readLine().
Example:
readLine("What's your name?");
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
14 questions
Understanding Python Basics

Quiz
•
8th Grade - University
15 questions
Java Variables, Input and Output

Quiz
•
10th - 12th Grade
11 questions
Programming basics

Quiz
•
10th - 11th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
SIOT - Komunikasi Data Serial UART

Quiz
•
11th - 12th Grade
11 questions
Python Quiz

Quiz
•
12th Grade
11 questions
Programming Quiz 1

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