Search Header Logo

Quiz1Fin.MT7LABsp

Authored by Armilyn Martinez

Computers

University

Used 2+ times

Quiz1Fin.MT7LABsp
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the bitwise AND operation a & b if a = 6 (binary 0110) and b = 14 (binary 1110)?

6

8

14

0

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which symbol is used for the bitwise OR operator?

&

|

^

~

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the bitwise OR operation a | b if a = 23 (binary 00010111) and b = 10 (binary 00001010)?

10

23

31

42

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the bitwise XOR (^) operation if a = 12 (binary 1100) and b = 10 (binary 1010)?

4

6

12

10

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the bitwise complement (~) operator do?

Sets all bits to 1.

Flips all bits (0 to 1 and 1 to 0).

Shifts bits to the left.

Shifts bits to the right.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the left shift operation a << 2 if a = 5?

20

10

25

1

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the right shift operation b >> 2 if b = 7?

1

2

3

4

Access all questions and much more by creating a free account

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?