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

Discussion

A mask to keep the low six bits of a byte is

  • A.0x06
  • B.0xC0
  • C.0x3F
  • D.0x60

Answer: C

Correct answer: 0x3F

Six bits set is 0011 1111, which is \( 0x3F \). A quick check: a mask of n low bits is \( 2^n - 1 \), so \( 64 - 1 = 63 \), and 63 in hexadecimal is \( 0x3F \). The distractor \( 0x60 \) confuses the count of bits with their positions.

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

Post your comment

Please log in or register to post a comment.