CodeHS JavaScript
Quiz
•
Computers
•
8th - 12th Grade
•
Practice Problem
•
Medium
Greg Baker
Used 323+ times
FREE Resource
About this resource
This quiz covers JavaScript programming fundamentals, focusing on syntax, operators, control structures, and basic web development concepts appropriate for grades 9-12. The questions assess students' understanding of core programming constructs including conditional statements (if/else), logical operators (&&, ||, !), arithmetic operators (++, --), loops (for, while), data types (boolean, string, integer), and JavaScript's role in web development. Students need to demonstrate knowledge of proper syntax conventions, including case sensitivity, operator precedence, and the distinction between assignment (=) and comparison (===) operators. The quiz also covers JavaScript-specific concepts such as coordinate systems for graphics, HTML integration through script tags, and the language's interpreted nature. Students must understand how conditions evaluate to boolean values, how loops iterate starting from zero, and how JavaScript provides interactivity within the web development ecosystem alongside HTML and CSS. Created by Greg Baker, a Computer Science teacher in the US who teaches grades 8-12. This quiz serves as an excellent formative assessment tool for students learning JavaScript programming fundamentals, allowing teachers to quickly gauge comprehension of essential syntax and concepts before advancing to more complex topics. The quiz works effectively as a warm-up activity at the beginning of class to reinforce previously taught material, or as homework to solidify understanding of JavaScript operators, control structures, and basic programming logic. Teachers can use this assessment to identify students who need additional support with fundamental concepts like operator precedence, loop construction, and conditional logic before progressing to functions, objects, or DOM manipulation. The content aligns with Computer Science standards including CSTA K-12 Computer Science Standards 3A-AP-13 (creating prototypes using programming constructs), 3A-AP-15 (using control structures), and 3A-AP-16 (designing programs using variables and expressions).
See more
Enhance your content in a minute
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
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Conditions return values of which data type?
Integer
boolean
floating-point
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops in programming start counting from ?
0
1
Any number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol represents the or operator in JavaScript?
OR
or
||
|
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arithmetic Operators
What is ++ ?
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?
Similar Resources on Wayground
24 questions
Html
Quiz
•
9th Grade
20 questions
Toán tử trong C ++
Quiz
•
10th - 12th Grade
20 questions
Bài 11. Tệp và quản lý tệp
Quiz
•
10th Grade
20 questions
New Scratch
Quiz
•
6th - 8th Grade
20 questions
Teknik Pengolahan Audio dan Video
Quiz
•
12th Grade
20 questions
Google Sheet Formulas Functions
Quiz
•
11th - 12th Grade
16 questions
Cultura Digital I - Segundo Parcial
Quiz
•
10th Grade
20 questions
ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1
Quiz
•
9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
