
CodeHS - Unit 2: Lessons 1 - 3
Authored by Courtney Yatteau
Computers
11th - 12th Grade
Used 35+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
POST TEST C++
Quiz
•
11th Grade
15 questions
KKHP Roblox Game Development Quiz
Quiz
•
4th - 12th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
11 questions
Python Library-1
Quiz
•
12th Grade
17 questions
Вводное по Unity C#
Quiz
•
1st - 11th Grade
15 questions
12-sci-java-basics
Quiz
•
12th Grade
15 questions
python basics
Quiz
•
11th Grade - University
15 questions
Code Combat Curso Junior
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade