What is the comparison operator for 'equal to' in C?
Quiz - 6 on Relational & Logical Operators

Quiz
•
Computers
•
12th Grade
•
Easy
Michael Kona
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
==
!=
<>
===
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the logical AND operator in C?
&&
&
&|
||
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the logical OR operator in C?
&
||
&&
!
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the logical NOT operator in C?
-
NOT
!
~
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you combine logical AND and OR operators in C?
Use AND for & and OR for |
Use && for AND and || for OR
Use AND for && and OR for ||
Use & for AND and | for OR
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the order of precedence for operators in C?
Logical AND || > Logical OR &&
Multiplication / > Division *
Parentheses () > Postfix increment and decrement ++ -- > Prefix increment and decrement ++ -- > Unary plus and minus + - > Logical NOT ! > Bitwise NOT ~ > Multiplication * > Division / > Modulus % > Addition + > Subtraction - > Left shift << > Right shift >> > Less than < > Less than or equal to <= > Greater than > > Greater than or equal to >= > Equal to == > Not equal to != > Bitwise AND & > Bitwise XOR ^ > Bitwise OR | > Logical AND && > Logical OR || > Conditional ?: > Assignment = += -= *= /= %= &= ^= |= <<= >>= > Comma ,
Bitwise OR & > Bitwise XOR ^
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give an example of using a relational operator in C.
if (x == y) { // do something }
while (x != y) { // do something }
switch (x < y) { // do something }
for (x > y) { // do something }
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
QUIZ4_COMPROG1(BSCS101)

Quiz
•
12th Grade
10 questions
G18 zamora

Quiz
•
9th - 12th Grade
10 questions
Post-Test Operator (Pemrograman Web Server-Side PHP)

Quiz
•
9th - 12th Grade
10 questions
Quiz - 3 Assignment, Increment & Decrement Operators in C

Quiz
•
12th Grade
10 questions
TLE QUIZZIZ 2

Quiz
•
9th - 12th Grade
11 questions
CodeHS 2.13 Short-Circuit Evaluation

Quiz
•
9th - 12th Grade
10 questions
Conditional Statements Quiz

Quiz
•
12th Grade
15 questions
Java Operators Quiz

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade