JavaScript Control Structures Basic

JavaScript Control Structures Basic

12th Grade

20 Qs

quiz-placeholder

Similar activities

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

Code.org CSP Unit 5 Test Review

Code.org CSP Unit 5 Test Review

9th - 12th Grade

20 Qs

CodeHS Arrays

CodeHS Arrays

9th - 12th Grade

18 Qs

Fun with JavaScript #1

Fun with JavaScript #1

9th - 12th Grade

15 Qs

Control Structures

Control Structures

9th - 12th Grade

20 Qs

P5.js Conditional Statements in Computer Science

P5.js Conditional Statements in Computer Science

9th - 12th Grade

15 Qs

Python Basics 3

Python Basics 3

9th - 12th Grade

25 Qs

JavaScript:  CodeHS chapter 3 exam

JavaScript: CodeHS chapter 3 exam

9th - 12th Grade

15 Qs

JavaScript Control Structures Basic

JavaScript Control Structures Basic

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Angel Ligon

Used 8+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Give an example of Boolean in JavaScript.

true
10
"Hello World"
undefined

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Check all the comparison operators.

==

>

!=
!==

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbols represents the and operator in JavaScript?

&&
||
&
and

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbols represents the or operator in JavaScript?

||
&&
OR
|

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement allows us to run a block of code only if a certain condition is true?

If statement
For loop
While loop
Function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement allows us to run one block of code if one condition is true, and a separate block of code otherwise?

For loop
While loop
If-else statement
Switch statement

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we check if a variable num is even?

num % 2 == 0
num / 2 == 0
num * 2 == 0
num - 2 == 0

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?