Logical Operator
Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
Cherry Batistis
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
2.1 Wire Ethernet
Quiz
•
9th - 12th Grade
16 questions
9 Weeks Test
Quiz
•
9th - 12th Grade
20 questions
IoT 1.5
Quiz
•
11th Grade
20 questions
Microsoft Excel Review Part 2
Quiz
•
8th Grade - University
20 questions
Web 3.6 Bacaan
Quiz
•
11th Grade
17 questions
Proses Pemrograman Dan Rekursi
Quiz
•
11th Grade
16 questions
Minecraft Education Edition Basics Quiz
Quiz
•
7th Grade - University
20 questions
Assesmen Berpikir komputasi
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
