Machine-translated by Google. Questions are authored in English.
Top

Discussion

Taking the bitwise OR of a number with 0 leaves the number unchanged.

  • A.True
  • B.False

Answer: B

Correct answer: True

ORing with 0 leaves each bit as it was, so 0 is the identity element for OR. The corresponding identity for AND is a value with all bits set, and for XOR it is again 0.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.