Bitwise Operations Basics Quiz

  • 9th Grade
Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 6575 | Total Attempts: 67,424
| Questions: 15 | Updated: May 1, 2026
Please wait...
Question 1 / 16
🏆 Rank #--
0 %
0/100
Score 0/100

1. What does the bitwise AND operation (&) return when comparing two bits?

Explanation

The bitwise AND operation compares two bits and returns 1 only when both bits are 1. If either bit is 0, the result is 0. This operation is fundamental in digital logic and binary arithmetic, ensuring that only the presence of two true values (1s) yields a true result (1).

Submit
Please wait...
About This Quiz
Bitwise Operations Basics Quiz - Quiz

Master the fundamentals of bitwise operations with this Bitwise Operations Basics Quiz. Learn how computers manipulate individual bits using AND, OR, XOR, and shift operations. Perfect for Grade 9 students, this quiz reinforces essential concepts in binary logic and digital computation that form the foundation of computer science.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In binary, what is 5 AND 3?

Explanation

To solve 5 AND 3 in binary, first convert the numbers: 5 is 101 and 3 is 011. The AND operation compares each bit: 1 AND 0 is 0, 0 AND 1 is 0, and 1 AND 1 is 1. Thus, the result is 001 in binary, which equals 1 in decimal.

Submit

3. The bitwise OR operation (|) returns 1 when____.

Explanation

The bitwise OR operation compares corresponding bits of two binary numbers. It outputs 1 if at least one of the bits in the pair is 1. For example, in the pair (0, 1) or (1, 0), the result is 1, demonstrating that the presence of a single 1 in either position triggers the output.

Submit

4. What is 6 OR 3 in binary?

Explanation

In binary, the numbers 6 and 3 are represented as 110 and 011, respectively. The bitwise OR operation compares each corresponding bit and results in 1 if either bit is 1. Thus, 110 OR 011 equals 111, which is the binary representation of 7.

Submit

5. The XOR (exclusive OR) operation returns 1 when the two bits are____.

Explanation

The XOR operation evaluates two bits and produces a result of 1 only when the bits differ from each other. This means that if one bit is 0 and the other is 1, the output will be 1. If both bits are the same, either both 0 or both 1, the result will be 0.

Submit

6. What is 5 XOR 3?

Explanation

XOR (exclusive OR) compares two binary numbers bit by bit. For 5 (101 in binary) and 3 (011 in binary), the XOR operation results in 110 (binary), which equals 6 in decimal. This is because the XOR operation outputs 1 when the bits are different and 0 when they are the same.

Submit

7. A left shift by 1 position (

Explanation

not-available-via-ai

Submit

8. What is 4

Explanation

The pattern in the sequence involves identifying the highest number, which is 16. The numbers appear to be part of a set where 16 is the largest, suggesting that the question is asking for the maximum value among the given options.

Submit

9. A right shift by 1 position (>>) divides a number by____.

Explanation

A right shift operation (>>) in binary representation effectively divides a number by 2. This is because shifting the bits to the right reduces the value of the number, similar to how dividing by 2 decreases its magnitude. Each right shift discards the least significant bit, resulting in an integer division.

Submit

10. What is 16 >> 2 (16 right-shifted by 2)?

Explanation

Right shifting a binary number moves its bits to the right, effectively dividing the number by 2 for each shift. In this case, shifting 16 (which is 10000 in binary) two places to the right results in 4 (which is 100 in binary). Thus, 16 >> 2 equals 4.

Submit

11. Which bitwise operation is used to toggle (flip) specific bits?

Explanation

XOR (exclusive OR) is used to toggle specific bits because it changes the bit value from 0 to 1 or from 1 to 0 when combined with a mask. When a bit in the mask is 1, the corresponding bit in the original number is flipped; if the mask bit is 0, the original bit remains unchanged.

Submit

12. The bitwise NOT (~) operation inverts all bits, turning 1s to 0s and 0s to____.

Explanation

The bitwise NOT operation flips each bit in a binary representation. When a bit is 0, it becomes 1, and when it is 1, it becomes 0. Therefore, applying the NOT operation to a 0 results in a 1, confirming that 0s are turned into 1s.

Submit

13. In 8-bit binary, what is NOT 0 (where 0 = 00000000)?

Submit

14. Bitwise operations are commonly used in computer programming for____.

Submit

15. True or False: The result of (7 AND 4) is equal to 4.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does the bitwise AND operation (&) return when comparing two...
In binary, what is 5 AND 3?
The bitwise OR operation (|) returns 1 when____.
What is 6 OR 3 in binary?
The XOR (exclusive OR) operation returns 1 when the two bits are____.
What is 5 XOR 3?
A left shift by 1 position (
What is 4
A right shift by 1 position (>>) divides a number by____.
What is 16 >> 2 (16 right-shifted by 2)?
Which bitwise operation is used to toggle (flip) specific bits?
The bitwise NOT (~) operation inverts all bits, turning 1s to 0s and...
In 8-bit binary, what is NOT 0 (where 0 = 00000000)?
Bitwise operations are commonly used in computer programming for____.
True or False: The result of (7 AND 4) is equal to 4.
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!