CodeHS JavaScript Control Structures 1
Quiz
•
Computers
•
8th - 12th Grade
•
Practice Problem
•
Easy
Cynthia Harrison
Used 50+ 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?
+
++
=
==
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?
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade