KA JS Logic & Conditionals

KA JS Logic & Conditionals

KG - University

8 Qs

quiz-placeholder

Similar activities

TAC3121-Quiz 3

TAC3121-Quiz 3

University

10 Qs

Python Basics

Python Basics

4th - 7th Grade

10 Qs

Programming Basics

Programming Basics

9th - 10th Grade

10 Qs

MOAC Word 2016 Lesson 2

MOAC Word 2016 Lesson 2

8th - 12th Grade

10 Qs

Finding Information

Finding Information

10th Grade

10 Qs

Python Conditions

Python Conditions

11th Grade

10 Qs

Logical expressions

Logical expressions

8th Grade

13 Qs

U5-Set5 CMU Unit 5.1 Complex Conditionals

U5-Set5 CMU Unit 5.1 Complex Conditionals

9th Grade

8 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";