Search Header Logo

JavaScript Operators Quiz

Authored by Danny Schell

Computers

12th Grade

Used 3+ times

JavaScript Operators Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid value for a boolean?

True

False

Yes

The above are all valid

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol represents the or operator in JavaScript?

OR

or

|

||

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol represents the and operator in JavaScript?

AND

and

&

&&

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After the following code runs, what is the value of isWeekend? var isSaturday = true; var isSunday = false; var isWeekend = isSaturday || isSunday;

true

false

isWeekend

isSaturday || isSunday

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper operator for "not equals" in JavaScript?

!=!

!=, ~=, NOT EQUALS

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper way to compare if two values are equal in a boolean expression in JavaScript?

=

==

EQUALS

is

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we check if a variable num is even?

num.isEven() will be true

(num % 2 == 0) will be true

(num % 2 == 0) will be false

(num / 2 == 0) will be true

Access all questions and much more by creating a free account

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?