XOR 00001111 is

advertisement
CS208
Mid Term
Total Exam score: 70 points
Question 1 (2 points)
The result of the following binary operation
11010010
XOR 00001111
is:
Answer Choices:
a. 00100010
b. 11011101
c. 11011111
d. 00000000
Question 2 (2 points)
In the Hexadecimal number system a single digit represents 3 binary digits.
Answer Choices
a. True
b. False
Question 3 (2 points)
A binary numbering system uses two as its base, and expresses numbers as a sequence of
ones and zeros.
Answer Choices
a. True
b. False
Question 4 (2 points)
The two's complement representation simplifies addition and subtraction like the signed
magnitude representation.
Answer Choices
a. True
b. False
Question 5 (2 points)
An Operating system is a program that manages the computer.
Answer Choices
a. True
b. False
Question 6 (2 points)
The result of the following binary operation
10110
AND 11011
is:
Answer Choices
a. 11111
b. 01101
c. 10010
d. None of the above
Question 7 (2 points)
The CPU contains a control unit, arithmetic logic unit and registers.
Answer Choices
a. True
b. False
Question 8 (2 points)
The result of the following binary operation
SHR 011001
is:
Answer Choices
a. 110011
b. 101100
c. 110010
d. 001100
Question 9 (2 points)
An Instruction is a machine language code that directs the operation of a computer.
Answer Choices
a. True
b. False
Question 10 (2 points)
RAM is used for the short-term storage of program instructions or data; and is usually
volatile.
Answer Choices
a. True
b. False
Question 11 (2 points)
The result of the following binary operation
ROL 110010
is:
Answer Choices
a. 011001
b. 100100
c. 100101
d. 001011
Question 12 (4 points)
The 8-bit sign-magnitude and 8-bit two's complement for the number -12710 are:
Answer Choices
a. Sign-magnitude:
01111111
Two’s complement: 10000001
b. Sign-magnitude:
11111111
Two’s complement: 01111111
c. Sign-magnitude:
01111111
Two’s complement: 01111111
d. Sign-magnitude:
11111111
Two’s complement: 10000001
Question 13 (4 points)
The 8-bit sign-magnitude and 8-bit two's complement for the number -3910 are:
Answer Choices
a. Sign-magnitude:
10100111
Two’s complement: 11011001
b. Sign-magnitude:
10100111
Two’s complement: 01011001
c. Sign-magnitude:
00100111
Two’s complement: 11011001
d. Sign-magnitude:
01000111
Two’s complement: 00100111
Question 14 (4 points)
The base 10 (decimal) equivalent of the binary number 1110112 is:
Answer Choices
a. 2910
b. 5810
c. 5910
d. 11810
Question 15 (4 points)
The result from the subtraction of the following binary numbers
110111
- 011011
is:
Answer Choices
a. 01100
b. 11011
c. 11000
d. 11100
Question 16 (4 points)
The base 8 equivalent of the following hexadecimal number C816 is:
Answer Choices
a. 110010002
b. 3108
c. 6208
d. None of the above
Question 17 (4 points)
The base 2 equivalent of the decimal number 155 is:
Answer Choices
a. 101100112
b. 100110112
c. 100101112
d. 101110102
Question 18 (4 points)
The 8-bit sign-magnitude and 8-bit two's complement for the number 12710 are:
Answer Choices
a. Sign-magnitude:
01111110
Two’s complement: 10000001
b. Sign-magnitude:
11111111
Two’s complement: 01111111
c. Sign-magnitude:
01111111
Two’s complement: 01111111
d. Sign-magnitude:
11111111
Two’s complement: 10000001
Question 19 (4 points)
The result from adding the following two binary numbers
100110
+ 110011
is:
Answer Choices
a. 011001
b. 1011001
c. 1011101
d. 010101
Question 20 (4 points)
The 8-bit sign-magnitude and 8-bit two’s complement for the number 5810 are:
Answer Choices
a. Sign-magnitude:
10111010
Two’s-complement: 11000110
b. Sign-magnitude:
00111010
Two’s-complement: 11000110
c. Sign-magnitude:
10111010
Two’s complement: 00111010
d. Sign-magnitude:
00111010
Two’s complement: 00111010
Question 21 (6 points)
The floating-point number that is represented by the 32 bit binary IEEE floating-point
representation is:
1
01111110
110... 0
Answer Choices
a. -3.5
b. -0.875
c. -1.75
d. -0.75
Question 22 (6 points)
The 32 bit binary representation in the IEEE floating-point representation of the floatingpoint number 26.78125 is:
Answer Choices
a. 0
10000111
b. 1
10000011
c. 0
10000011
d. 0
10000011
1010110010...0
1010110010...0
1010110010...0
110010...0
Download