Professional Documents
Culture Documents
INSTRUCTIONS TO STUDENTS
1. Answer all questions in the space provided in this question paper
2. Ensure that your writing is legible, neat and presentable.
3. No notes or any other additional material may be used in this quiz,
4. Complete the information below accurately
SECTION A: Answer All Questions. Each Question weighs 1 Mark. [10 MARKS]
Circle the correct answer
Page 1 of 6
3. A common measure of performance for a processor is the rate at which
instructions are executed, expressed as millions of instructions per second
(MIPS). [True/False]
A. Boolean B. Logic
C. Memory D. Arithmetic
8. Which of the following interrelated factors go into determining the use of the addressing
bits?
A. number of operands B. number of register sets
C. address range D. all of the above
Page 2 of 6
SECTION B: Structured questions. Answer All Questions. [30 MARKS]
Question1 (8 marks)
1.a) Why does the program execution speed generally increase as the number of
general purpose registers increase? (2 Marks)
i. Register accesses are fast as compared to main memory, registers usually store data
that is needed immediately or frequently used by the CPU. [2]
ii. Registers mostly store intermediate results. [2]
iii. Adding registers only increases execution speed up to a point. There are a limited
number of intermediate results or frequently used data in any given process or
program. [2] [Any two explained points]
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
1.b) Registers are fast stand-alone storage locations that hold data temporarily
in CPU. List any three types of registers and explain their functions. (6 Marks)
Question2 (9 marks)
Addressing modes are an aspect of the instruction set architecture in most central
processing unit (CPU) designs. The various addressing modes that are defined in a
given instruction set architecture define how machine language instructions in that
Page 3 of 6
i)Immediate
ii)Direct
iii) Register
i. If data is present in the instruction itself, it is called immediate addressing mode
ii. If data is present at the 16-bit address mentioned in the instruction, it is called direct
addressing mode
iii. If data is present in registers mentioned in the instruction, it is called register addressing
mode.
(allocate 1 mark to each correct explanation)
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
2.b) Give an example of each addressing mode listed in question (2a) above. (6 Marks)
i)For example
ADD AL, 01H
SUB BL, 04H
ii)For example,
MOV AX, [1111H]
MOV BX, [4444H]
Here, effective address is
➢ 10H * DS + 1111H for the first example and
➢ 10H * DS + 4444H for the second example
___________________________________________________________________________
Page 4 of 6
Question3 (13 marks)
*****END OF TEST1*****
Page 6 of 6