CodeHS JavaScript Control Structures 1

CodeHS JavaScript Control Structures 1

Assessment

Quiz

Computers

8th - 12th Grade

Practice Problem

Easy

Created by

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

quiz-placeholder

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?