For the binary( )operator, if the input is two 1s, the output is 0.A.B.C.D.
AND
B. OR
C. XOR
D. all of the above
查看答案
To flip all the bits of a bit pattern, make a mask of all 1s and then ( )the bit pattern and the mask.
AND
B. OR
C. XOR
D. NOT
To unset (force to 0) all the bits of a bit pattern, make a mask of all 0s and then ( )the bit pattern and the mask.
AND
B. OR
C. XOR
D. NOT
To set (force to 1) all the bits of a bit pattern, make a mask of all 1s and then ____the bit pattern and the mask.
AND
B. OR
C. XOR
D. NOT
To unset (clear) a bit in a target bit pattern, set the corresponding mask bit to ____and use the ____operation.