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
What is the comparison operator for 'equal to' in C?
==
!=
<>
===
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 Wayground
11 questions
Net+ Ch2 - test

Quiz
•
9th - 12th Grade
14 questions
teknik komputer dan informatika

Quiz
•
12th Grade
12 questions
Datapaths and Controls

Quiz
•
12th Grade
15 questions
Java Operators Quiz

Quiz
•
12th Grade
11 questions
Excel Mod 5

Quiz
•
6th - 12th Grade
10 questions
Edexcel GCSE Computer Science Topic 2: Data

Quiz
•
12th Grade
14 questions
quiz

Quiz
•
9th - 12th Grade
10 questions
Python Control structures

Quiz
•
12th 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 Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade