《计算机科学导论》课后练习(翻译)(14)
时间:2026-01-22
时间:2026-01-22
39.将下列十进制数转成16位二进制补码表示法。
A. 102 B. 179 C.534 D.62056 答:
40.将下列8位无符号整数转换成十进制数。
A.01101011 B.10010100
C.00000110 D.01010000
答:a. 0110 1011 = 64 + 32 + 8 + 2 +1 = 107.
b. 1001 0100 = 128 + 16 + 4 = 148.
c. 0000 0110 = 4 + 2 = 6.
d. 0101 0000 = 64 + 16 = 80.
41.将下列8位二进制补码表示的整数转换成十进制数。
A.01110111 B.11111100
C.01110100 D.11001110
答:
42.下面是一些二进制补码表示的二进制数。请问如何改变他们的正负。
A.01110111 B.11111100
C.01110111 D.11001110
答:We change the sign of the number by applying the two’s complement operation.
a. 01110111 → 10001001
b. 11111100 → 00000100
c. 01110111 → 10001001
d. 11001110 → 00110010
Chapter 4
1.逻辑运算和算术运算有什么区别?
答:Arithmetic operations interpret bit patterns as numbers. Logical operations interpret each bit as a logical value (true or false).
算术运算把位模式理解为数据;逻辑运算的每一位当成逻辑值(真或假)。
2.在二进制补码格式的整数相加中,最左边一列是怎样进位的?
答:The leftmost carry is discarded.
最左边一位被丢弃。
3.n的位分配单元可以等于1吗?为什么?
答:The bit allocation can be 1. In this case, the data type normally represents a logical value.
n的位分配单元可以等于1,在这种情况下,数据类型通常表示逻辑值。
4.解释“溢出”这个词。
答:Overflow happens when the result of an arithmetic operation is outside the range
上一篇:氟康唑与其他药物的相互作用