Quiz - 6 on Relational & Logical Operators

Quiz - 6 on Relational & Logical Operators

12th Grade

10 Qs

quiz-placeholder

Similar activities

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

1st - 12th Grade

10 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Quiz - 6 on Relational & Logical Operators

Quiz - 6 on Relational & Logical Operators

Assessment

Quiz

Computers

12th Grade

Practice Problem

Easy

Created by

Michael Kona

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?