Logical Operator

Logical Operator

11th Grade

17 Qs

quiz-placeholder

Similar activities

IT/CS Review Quizzizz

IT/CS Review Quizzizz

6th Grade - University

15 Qs

IST-Unit 1: Tech&BusinessComputingEthics&Safety&CTSO

IST-Unit 1: Tech&BusinessComputingEthics&Safety&CTSO

9th - 12th Grade

12 Qs

G4-Microprocessors and Their Uses

G4-Microprocessors and Their Uses

4th Grade - University

15 Qs

Pemahaman Berfikir Komputasional

Pemahaman Berfikir Komputasional

9th Grade - University

20 Qs

CPU Components Quiz

CPU Components Quiz

10th Grade - University

14 Qs

COSRS_STEM 11H

COSRS_STEM 11H

11th Grade

20 Qs

Uji Pemahaman Microsoft Word Kelas 8

Uji Pemahaman Microsoft Word Kelas 8

8th Grade - University

20 Qs

Infrastructure 2

Infrastructure 2

11th Grade

17 Qs

Logical Operator

Logical Operator

Assessment

Quiz

Information Technology (IT)

11th Grade

Medium

Created by

Cherry Batistis

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the primary function of logical operators in JavaScript?

To combine or modify Boolean values, enabling more complex conditional decisions.

To loop through arrays.

To define new variables.

To perform arithmetic calculations.

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Consider the expression (5 > 3 && 10 < 20). What will this expression evaluate to?

3

false

10

true

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which logical operator returns true only if all of its operands are true?

&& (AND)

|| (OR)

! (NOT)

?? (Nullish Coalescing)

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which logical operator returns true if at least one of its operands is true?

&& (AND)

! (NOT)

|| (OR)

=== (Strict Equality)

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What will the expression (false || true || false) evaluate to?

false

true

null

undefined

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Given let isRaining = true;, what will !isRaining evaluate to?

true

false

undefined

null

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

You want to check if a user is not logged in. If isLoggedIn is a boolean variable, which condition would you use?

if (isLoggedIn === false)

if (!isLoggedIn)

if (isLoggedIn == 0)

All of the above are equally common and readable.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?