KA JS Logic & Conditionals

KA JS Logic & Conditionals

KG - University

8 Qs

quiz-placeholder

Similar activities

Java Data Types Practice

Java Data Types Practice

12th Grade

7 Qs

CSE Unit 3 Assessment

CSE Unit 3 Assessment

5th Grade

10 Qs

Powtoon 5 C

Powtoon 5 C

4th - 6th Grade

10 Qs

C++ day 2 review

C++ day 2 review

9th Grade

10 Qs

Digital Citizenship

Digital Citizenship

9th Grade

12 Qs

3D Struckd

3D Struckd

2nd - 5th Grade

10 Qs

Decision Making (if....then...else)

Decision Making (if....then...else)

4th Grade - University

5 Qs

Hadoop Admin

Hadoop Admin

Professional Development

13 Qs

KA JS Logic & Conditionals

KA JS Logic & Conditionals

Assessment

Quiz

Computers

KG - University

Hard

Used 98+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of code show a JS variable storing a boolean?
var isRaining = false;
var isRaining = 0;
var isRaining = 1;
var isRaining = "false";