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
21 questions
asessement formatif materi membuat algoritma penyelesaian
Quiz
•
11th Grade
15 questions
Career Alignment for Drone Technology
Quiz
•
10th Grade - University
15 questions
ICT G7 Chapter 2.2 Direct Data Entry Devices
Quiz
•
7th Grade - University
20 questions
IoT 1.4
Quiz
•
11th Grade
12 questions
Net+ 1.3.7 Binary and Hexadecimal
Quiz
•
11th Grade
20 questions
Quiz KISI KISI PTS PEMROGRAMAN TEKS GRAFIS MULT
Quiz
•
11th Grade
21 questions
Unit 3: Basic Python & Console Interaction
Quiz
•
9th - 12th Grade
20 questions
BAB 4 SISTEM KOMPUTER KELAS 8
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Subject pronouns in Spanish
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
20 questions
Editing and Revising Practice
Quiz
•
9th - 11th Grade
