Вы находитесь на странице: 1из 2

CS 061 – Computer Organization Fall - 2009

Quiz 1 – Friday 10/2 SOLUTION


Each question is worth 1 point.

1. Which of the following types of course activities are you permitted to work on together
(collaborate) with a fellow student, as long as you are not just giving or copying down the
answers, but helping each other to learn the concepts?
a. written homework
b. home programming assignments
c. lab exercises
d. in-class exercises
e. all of the above
f. a), c), and d)

2. How many of the 8 home programming assignments of this course are you required to pass
(8/10 or better) in order to pass the course as a whole?
a. 4
b. 5
c. 6
d. 7
e. 8
f. 9

3. What is the late policy for homeworks and programming assignments in this class?
a. There is no penalty for late submission, up to 2 days
b. 10% penalty for every day late (or fraction thereof), up to 2 days
c. 20% penalty for every day late (or fraction thereof), up to 2 days
d. 10% bonus for every day late (or fraction thereof), up to 2 days
e. late submissions are not accepted.

4. One of the shortcomings of the “signed magnitude” method of representing negative


numbers in binary code is:
a. there is no operation for subtraction
b. there are two codes for the number zero
c. there is no simple test to distinguish positive and negative numbers
d. the operation of addition requires complex rules
e. both b and d

5. What is the representation of the (decimal) number –1 in 4 bit 1’s complement format?
a. 1001
b. 1011
c. 1111
d. 1110
e. 0001
6. The total number of items representable by a 4 byte binary word (using conventional
abbreviations) is:
a. 8k
b. 16M
c. 32M
d. 4G
e. 16G

7. Using two's complement encoding, subtract 11100 from 01101, and report the result as a
5-bit two's complement binary number
a. 101001
b. 01001
c. 00100
d. 10001
e. 10101
f. 00101

8. Convert the 8-bit two's complement number 10001111 into decimal


a. -15
b. -241
c. -113
d. +143
e. -143
f. +112

9. Assembly Language instruction sets can be categorized into three basic types of
instruction:
a. Operations, Data Movement and Control
b. Direct, Register, and Indirect
c. High Level, Assembly, and Machine
d. Signed magnitude, one's complement, and two's complement
e. Load, store, and arithmetic

10. A label in assembly language code is:


a. An abbreviation for an instruction
b. A symbolic representation of a memory location
c. Just a visual reminder for the programmer, ignored by the assembler.
d. A temporary name given to a variable
e. An adhesive sticker placed on the front page of the code

Вам также может понравиться