It is used to combine two Boolean values and return a result. The most common logical operators are && (AND), || (OR) and ! (NOT).

C++ Conditional Statements

Quiz
•
Other
•
University
•
Hard
Noelyn Mandanas - De Jesus
Used 26+ times
FREE Resource
44 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Arithmetic Operator
Assignment Operator
Relational Operator
Logical Operator
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
It is used to compare two expressions and return true or false. The most common are > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to), == (equal to), != (not equal to).
Arithmetic Operator
Assignment Operator
Relational Operator
Logical Operator
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Else block runs if all conditions in the statement are false
TRUE
FALSE
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Not (!) results in "True" if one or both operands are true; otherwise the operator results in false. Everything the works for && also works for ||
TRUE
FALSE
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
results in "true" if the value is false, and vice versa. It effectively inverts the value. True becomes false and false becomes true. Overlaps with || but not with &&
Or (||)
Not (!)
And (&&)
Boolean
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A symbol or a word, such as "and", "or" and "not" that connects two or more Booleans to make conditional decisions more specific
Nested if-statement
Condition
Logical operator
Boolean
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Something you test that results in true or false-start with question, determine possible outcomes, act on the outcome
And (&&)
Condition
Boolean
Or (||)
Create a free account and access millions of resources
Similar Resources on Quizizz
45 questions
D426 – Unsatisfactory Teach Back Quiz C1

Quiz
•
University
40 questions
ETC 605

Quiz
•
University
44 questions
LearnTube MS office Quiz Competition 29/1/23

Quiz
•
University
47 questions
Ôn Tập Giữa Học Kỳ 2 Tin Học

Quiz
•
12th Grade - University
43 questions
National 5 Bus Mgt HR Recruitment and Selection

Quiz
•
KG - University
48 questions
Principles of Health Science Spring Final

Quiz
•
9th Grade - University
39 questions
Production Audio - Final Exam Review

Quiz
•
University
40 questions
ESSF0074 - Tutorial (Section 4)

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade