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
KSN-K-2020

Quiz
•
11th Grade
15 questions
Cybersecurity Quizz

Quiz
•
9th - 12th Grade
15 questions
Quiz Analisis Data

Quiz
•
8th Grade - University
20 questions
CSI U1L2 - Software Development Life Cycle

Quiz
•
11th Grade
20 questions
Quiz tentang Blok Scratch

Quiz
•
9th Grade - University
12 questions
Оператори порівняння та логіка

Quiz
•
11th Grade
15 questions
Unit 1 Digital Information

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

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade