
CodeHS - Unit 2: Lessons 1 - 3
Quiz
•
Computers
•
11th - 12th Grade
•
Practice Problem
•
Medium
Courtney Yatteau
Used 35+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
BÀI KIỂM TRA 15P HK2 TIN HỌC 11
Quiz
•
11th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
12 questions
тест Python 7 class
Quiz
•
1st - 12th Grade
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
11 questions
Python Function
Quiz
•
11th - 12th Grade
15 questions
Pemrograman
Quiz
•
9th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
