Logical Operator

Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
Cherry Batistis
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Uji Pemahaman Array dan Fungsi

Quiz
•
11th Grade - University
15 questions
BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

Quiz
•
2nd Grade - University
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)

Quiz
•
9th Grade - University
20 questions
Grade 11(Quiz 1)

Quiz
•
11th Grade
20 questions
Mesin Pencari Artikel

Quiz
•
11th Grade - University
21 questions
Form 3 - Information Technology Quiz

Quiz
•
9th Grade - University
17 questions
Brainware

Quiz
•
9th Grade - University
15 questions
Introduction to the Drone Industry

Quiz
•
10th Grade - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
21 questions
Set SMART Goals

Lesson
•
9th - 12th Grade
20 questions
Lab Equipment Quiz Chemistry

Quiz
•
9th - 12th Grade