Search Header Logo

KA JS Logic & Conditionals

Computers

KG - University

Used 98+ times

KA JS Logic & Conditionals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT an operator you can use in JavaScript conditional expressions?

&&
||
!
**

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the && operator do, when used in a JS logical expression?

Evalute to true if both values are true
Evalute to true if at least one value is true
Evalute to true if both values are false
Evalute to true if at least one value is false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the || operator do, when used in a JS logical expression?

Evalute to true if both values are true
Evalute to true if at least one value is true
Evalute to true if both values are false
Evalute to true if at least one value is false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If isWarmOutside is true and isRaining is false, which of these expressions is true?

isWarmOutside && isRaining
isWarmOutside && !isRaining
!isWarmOutside || isRaining
isWarmOutside > isRaining

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT an operator that you can use in JS to compare 2 values?

>
<
<~
>=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If y is 335, which of these expressions is true?

y > 330
y < 335
y > 335
y <= 330

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x is 225, which of these expressions is NOT true?

x > 220
x < 230
x >= 225
x < 225

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?