题目内容

For an 8-bit allocation, the largest decimal number that can be represented in two’s complement form is ( ).

A. 8
B. 127
C. 128
D. 256

查看答案
更多问题

In two’s complement representation with a 4-bit allocation, you get ( )when you add 1 to 7.

A. 8
B. 1
C. –7
D. –8

In two’s complement representation with a 4-bit allocation, you get ( )when you add 5 to 5.

A. -5
B. -6
C. –7
D. 10

For the binary AND operator, only an input of ( )gives an output of 1.

A. two 0s
B. two 1s
C. one 0 and one 1
D. any of the above

For the binary OR operator, only an input of ( )gives an output of 0.

A. two 0s
B. two 1s
C. one 0 and one 1
D. any of the above

答案查题题库