CP CVDT Q9

  • Option : D
  • Explanation : The bitwise AND operator (&) produces a 1 bit only when the corresponding bits of both operands are 1. The mask 0x3F has its lowest six bits set to 1. Therefore, (ab & 0x3F) retains the lowest six bits of ab and clears the higher bits. For the result to equal 0x27, the lowest six bits of ab must equal 0x27. Among the listed options, only 0x27 satisfies this condition because 0x27 & 0x3F = 0x27. Other values with the same lowest six bits could also satisfy the expression, but they are not among the options. Therefore, option D is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *