COMPUTER ORGANISATION AND
ARCHITECTURE EXAM WITH ALL
ANSWERS CORRECT
What are the steps in the fetch part of the fetch-decode execute cycle (in words)? -
n n n n n n n n n n n n n n n n
correct answer-1. The contents of the Program Counter are copied onto the MAR
n n n n n n n n n n n n n
2. The contents of the MAR are transferred to the memory through the address bus
n n n n n n n n n n n n n n
where it receives a control signal from the control unit indicating a memory read
n n n n n n n n n n n n n n
3. The contents of the memory at the received address are transferred to the MBR
n n n n n n n n n n n n n n
through the data bus
n n n n
At the same time, the PC is incremented by 1
n n n n n n n n n
4. The contents of the MBR are copied onto the CIR
n n n n n n n n n n
What are the steps in the fetch part of the fetch-decode execute cycle (in register
n n n n n n n n n n n n n n
transfer notation)? - correct answer-1. MAR ← [PC]
n n n nn n n n n
2. MBR ← [Memory]addressed
n n n
PC ← [PC] + 1
n n n n
3. CIR ← [MBR]
n n n
What are the steps in the decode and execute parts of the fetch-decode execute
n n n n n n n n n n n n n
cycle? - correct answer-1. Control unit splits the instruction in the CIR into opcode and
n n nn n n n n n n n n n n n n
operand
n n
, 2. Control unit uses opcode to identify the instruction being executed and the part of
n n n n n n n n n n n n n n
the processor executing the instruction
n n n n n
3. Control unit generates necessary control signals for execution
n n n n n n n n n
4. Certain actions are performed depending on the instruction
n n n n n n n n
What are the possible actions the processor can take in the execute part of the fetch-
n n n n n n n n n n n n n n n
decode execute cycle? - correct answer--Jump/Branch instruction -> PC is updated
n n n nn n n n n n n
-Data is required -> Memory or I/O read is issued
n n n n n n n n n
-Arithmetic/Logic operation -> ALU calculates results and stores in register(s) and the n n n n n n n n n n n
status register updates to show overflow or carry
n n n n n n n n
What happens in the interrupt part of the fetch-decode execute cycle if an interrupt
n n n n n n n n n n n n n
signal of higher priority has been received by the processor? - correct answer-1. The
n n n n n n n n n n n nn n n
current process being executed is suspended and the current values of the registers
n n n n n n n n n n n n n
are pushed to the system stack
n n n n n n
2. The appropriate Interrupt Service Routine is found and called to handle the interrupt
n n n n n n n n n n n n n
3. After the interrupt has been serviced, the original values of the registers are
n n n n n n n n n n n n n
retrieved from the stack and execution continues with the instruction addressed by the
n n n n n n n n n n n n n
PC
n
What is an interrupt? - correct answer-A signal sent to the processor that suspends
n n n n nn n n n n n n n n
execution of the current process until the interrupt is handled with an Interrupt Service
n n n n n n n n n n n n n n
Routine (ISR)
n n
What sends interrupts? - correct answer-Hardware devices and software programs
n n n nn n n n n n
Why do the register contents have to be pushed to the system stack when an interrupt
n n n n n n n n n n n n n n n
is received? - correct answer-To save the volatile environment as the registers are
n n n nn n n n n n n n n n
going to be overwritten so the values would be lost otherwise
n n n n n n n n n n n
What does the use of interrupts allow a processor to do? - correct answer-Multitask
n n n n n n n n n n n nn n
(using time slices and timer interrupts)
n n n n n n
What is hardware? - correct answer-The physical components of a computer system
n n n nn n n n n n n n
In brief, what does the processor do? - correct answer-Processes data and
n n n n n n n nn n n n
ninstructions by fetching, decoding and executing instructions in the fetch-decode-
n n n n n n n n n
execute cycle n
What is the job of the control unit in the processor? - correct answer-Sends control
n n n n n n n n n n n nn n n
signals and manages the fetch-decode-execute cycle in addition to the processor as a
n n n n n n n n n n n n n
whole
n
What is the job of the Arithmetic Logic Unit in the processor? - correct answer-
n n n n n n n n n n n n nn n
Performs calculations on data it is given such as addition, subtraction or shifting
n n n n n n n n n n n n