Question 1
OCR Computer Science June 2018 Paper 1A level15 marks
On the specification
- (a)(i)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (a)(ii)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (b)(i)
- 1.2 Software and software development
- (b)(ii)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (b)(iii)
- 2.2 Problem solving and programming
- (b)(iv)
- 1.2 Software and software development
Question text
1 A digital coffee making machine has a CPU that uses the Little Man Computer Instruction Set. (a) Little Man Computer operates on a computer system based on the Von Neumann Architecture. (i) State two features of the Von Neumann architecture. 1 2 [2] (ii) Describe one feature, not part of the standard Von Neumann Architecture, which contemporary CPUs may have in order to improve performance. [2] (b) Part of the coffee making machine’s code asks the user to press a button to select strength. The code outputs 1 which will switch on a green light to indicate a valid selection or outputs 0 to indicate an invalid selection. The code is shown below: INP STA entry LDA max SUB entry BRP accept LDA redLight BRA printAndEnd accept LDA greenLight printAndEnd OUT HLT greenLight DAT 1 redLight DAT 0 max DAT 5 entry DAT Fig. 1 (i) Tick the appropriate boxes below to indicate which inputs will result in a green light (i.e. code outputs 1) and which with a red light. Input Green Light Red Light 1 2 3 4 5 6 7 8 9 [2] (ii) Explain which registers and buses are used, and the values they store/carry, when the line LDA redLight is executed (after it has been fetched and decoded). You should assume the address redLight refers to memory location 11. [6] (iii) Write code in a high‑level language or pseudocode that has the same functionality as the code in Fig. 1. [3] (iv)* Discuss the differences between assembly code and high‑level languages. You should refer to: • the advantages and disadvantages of writing programs in assembly code rather than a high‑level language • when each approach might be used • why the coffee machine was programmed in assembly code.