Structure & Function of the Processor (OCR A Level Computer Science)

Exam Questions

19 mins7 questions
13 marks

A charity uses a desktop computer to record financial donations that it receives. The computer contains a single core, 2.4GHz processor with 2MB cache.

The processor contains registers including the accumulator and the program counter. The contents of these registers are modified during the Fetch-Decode-Execute cycle.

State the name of three other registers that are used during the Fetch-Decode-Execute cycle.

Did this page help you?

22 marks

A program written using the Little Man Computer instruction set is shown in Fig. 1.

Assembly code listing featuring input, storing, loading, subtraction, branching, output, addition, halting, and data declaration for basic operations.

Various registers are used when the program above is executed.

State what is meant by the term ‘register’.

Did this page help you?

32 marks

OCR Insurance uses a computer system to calculate the price that customers pay for car insurance.

The computer system contains a CPU, GPU, RAM and ROM

State two factors that affect the performance of a CPU.

Did this page help you?

4a3 marks

Fig. 1 shows assembly code written using the Little Man Computer (LMC).

The program calculates and outputs the total amount that is donated to a charity in any particular day. Depending on the amount, an additional bonus may be added to each amount donated.

Assembly-like code listing with labels such as start, nobonus, and bonus, performing arithmetic using variables like hundred, twenty, donation, and total.

This program is run on a processor that allows pipelining.

Define the term ‘pipelining’.

4b2 marks

Explain one benefit to the charity of using a processor that allows pipelining.

Did this page help you?

53 marks

The CPU uses pipelining to improve efficiency.

Explain what is meant by the term ‘pipelining’

Did this page help you?

62 marks

Explain why pipelining can improve the performance of the processor.

Did this page help you?

72 marks

A program written using the Little Man Computer instruction set is shown in Fig. 1

Assembly language code listing with variables and instructions: INP, STA numone, LDA, SUB, BRP pos, OUT, HLT, DAT numone, numtwo, one, count.

Various registers are used when the program above is executed.

Explain how the accumulator is used when the line BRP pos is executed.

Did this page help you?