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
Basic operator & Maths/Comparisons & assignment

Quiz
•
6th - 12th Grade
10 questions
Bitwise Operators in C Language

Quiz
•
12th Grade
8 questions
Introduction to DAX in Power BI Quiz

Quiz
•
12th Grade
8 questions
Mastering Bitwise Operations and Shifts

Quiz
•
7th Grade - University
11 questions
A Level CS - Bitwise Manipulation and Masks Quiz - CnD video

Quiz
•
12th Grade
15 questions
Chapter 8 - Programming (IGCSE Computer Science)

Quiz
•
9th - 12th Grade
15 questions
J277 - 1.1 - Architecture of the CPU

Quiz
•
10th Grade - University
14 questions
Understanding Python Identifiers and Operators

Quiz
•
11th Grade - 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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University