CodeHS - Units 3 and 5 Test - Javascript - NM
Quiz
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Medium
+1
Standards-aligned
Teri Miles
Used 52+ times
FREE Resource
About this resource
This quiz assesses fundamental programming concepts in JavaScript, targeting students at the 9th-10th grade level studying introductory computer science. The questions cover essential programming building blocks including variable declaration and initialization, data types (integers, strings, booleans), user input methods, output statements, and proper syntax conventions. Students must demonstrate understanding of control structures like conditional statements (if/else), loops (for and while), and logical operators (&&, ||, !). The quiz also tests knowledge of arithmetic operations, the modulo operator, increment/decrement operators, and coordinate systems for graphics programming. To succeed, students need to recognize correct syntax patterns, understand the difference between assignment and equality operators, comprehend how loops function with initialization and iteration, and apply logical reasoning to determine program output based on given code segments. Created by Teri Miles, a Computers teacher in US who teaches grade 9-10. This comprehensive assessment serves as an excellent tool for evaluating student mastery of JavaScript fundamentals after completing introductory programming units. The quiz works effectively as a summative assessment following instruction on variables, control structures, and basic programming logic, or can be deployed as a diagnostic tool to identify areas needing reinforcement before advancing to more complex programming concepts. Teachers can utilize individual questions for targeted practice sessions, bellringer activities, or homework assignments, while the complete quiz provides robust formative assessment data to guide instructional decisions. The varied question formats, from syntax recognition to code analysis, align with CSTA K-12 Computer Science Standards 1A-AP-10 (developing programs with sequences and simple loops), 1A-AP-11 (decomposing steps to solve problems), and 1A-AP-15 (creating programs using variables to store data).
See more
Student preview

50 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 option correctly declares a string variable?
String name = Mrs. Miles;
string name = "Mrs. Miles";
string name = 'Mrs. Miles';
String name = "Mrs. Miles";
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to obtain user input for a string?
readLine()
readInt()
readDouble()
readBoolean()
4.
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code segment output?
System.out.println("Hello");
System.out.println("World");
Hello
World
HelloWorld
Hello World
Hello
World
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a proper way to declare and initialize a variable in Java?
myInteger = 100;
char = 'a';
int myNumber = 10;
"Variable"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code segment output if the user inputs the number 10?
int yourInteger = readInt("Input a number");
System.out.println(yourInteger);
yourInteger
"yourInteger"
10
"10"
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?
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