Issuu on Google+

Name: ID:

COMP228 Quiz 1

Answer All Questions in the spaces provided

Fall 2009 Time Allowed: 15 minutes

1(a)

Cache is a component in the control layer of abstraction that is hidden from the machine layer above it.

(b)

Program Counter is the component in the von Neumann control flow model that distinguishes it from other architecture models.

(c)

According to Moore’s Law, the number of transistors can increase by 210 times in 15 years.

2.

Assume a 16-bit word on a computer that uses 2’s complement representation.

(a)

The decimal integer – 24 is represented as 1111111111101000 (in binary) and FFE8 (in hex).

(b)

The character string 1234 requires computer.

(c)

The C flag will become

2

words to store it in this

0 (0/1) when this computer performs 1 – 24.

3(a) Under even-parity invariant, the value of the parity flag/bit associated with the data word – 24 in 2(a) is 0 . (b)

Suppose the Hamming SEC code is incorporated in the 16-bit computer above. The encoded word representing the integer 4 is: 000000000000000101010 _________________________ (Also identify clearly the parity bits in your answer above.)


quiz 1 - solution - comp228