CodeHS JavaScript Control Structures 1
Quiz
•
Computers
•
8th - 12th Grade
•
Practice Problem
•
Easy
Cynthia Harrison
Used 51+ times
FREE Resource
About this resource
This quiz covers fundamental JavaScript programming concepts, specifically focusing on control structures, data types, and basic syntax. The material is appropriate for grades 8-12, representing an introductory to intermediate level programming course. Students need to understand core programming principles including variable declaration and manipulation, conditional logic using if statements with logical operators (&&, ||), loop structures (for and while loops), data types (strings, booleans, integers), and JavaScript-specific syntax requirements such as semicolons and operator symbols. The questions assess students' knowledge of comparison operators (== vs ===), increment operators (++), proper variable declaration syntax using "var," and the fundamental concept that loops typically begin counting from zero. Students must also demonstrate understanding of logical operators, basic debugging strategies, and the ability to trace through code execution to predict outcomes. Created by Cynthia Harrison, a Computers teacher in US who teaches grade 8-12. This quiz serves as an excellent formative assessment tool for students learning JavaScript fundamentals and can be effectively used as a warm-up activity to review previous lessons, homework practice to reinforce classroom learning, or as a comprehensive review before moving to more advanced programming concepts. The variety of question types allows teachers to identify specific areas where students may need additional support, from syntax understanding to logical reasoning skills. Teachers can use this assessment to gauge student readiness for more complex programming challenges involving nested loops, complex conditional statements, and advanced data manipulation. The quiz aligns with computer science education standards including CSTA K-12 CS Standards 1A-AP-10, 1A-AP-13, and 1A-AP-15, which address algorithmic thinking, variables and data representation, and program development concepts essential for beginning programmers.
See more
Student preview

21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
His name is Fred and he is less than 16 years old
if (name = "fred" && age < 16 )
if (name === "fred" && age < 16 )
if (name = "fred" || age < 16 )
if (name === "fred" || age < 16 )
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Repeat something 10 times
repeat 10
for (var i=0; i<10; i++)
repeat { } until 10;
while (i = 10)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we are done with a line what do we put at the end?
a colon :
a semi-colon ;
a period .
a quotation mark "
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we surround a word with quotes "David" it's called ?
a program
a loop
a string
a command
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable
Store values in containers so we can use them later.
Store values in containers so we can use them never.
Store values in containers so we can use them once.
Store values in containers so we can't use them later.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A short form writing the word variable is
rav
VAR
var
varia
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
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
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade