Logical Operator

Logical Operator

11th Grade

17 Qs

quiz-placeholder

Similar activities

PTS Genap Informatika Kelas XI

PTS Genap Informatika Kelas XI

11th Grade - University

20 Qs

2.2 Fiber Ethernet

2.2 Fiber Ethernet

9th - 12th Grade

12 Qs

UH1 VLAN (Pemasanagn dan Konfigurasi Perangkat Jaringan)

UH1 VLAN (Pemasanagn dan Konfigurasi Perangkat Jaringan)

11th Grade

20 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Week 3-Database Quiz 1

Week 3-Database Quiz 1

9th - 12th Grade

14 Qs

AR - 1.5 - Looping Shuffles

AR - 1.5 - Looping Shuffles

8th Grade - University

17 Qs

Mesin Pencari Artikel

Mesin Pencari Artikel

11th Grade - University

20 Qs

Pengenalan Kecerdasan Buatan

Pengenalan Kecerdasan Buatan

11th Grade - University

15 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?