Question 8

OCR Computer Science June 2024 Algorithms and programming (H446-02)A level13 marks

On the specification

(a)
2.1 Elements of computational thinking
(b)(i)
2.1 Elements of computational thinking
(b)(ii)
2.1 Elements of computational thinking
(c)(i)
2.1 Elements of computational thinking
(c)(ii)
2.1 Elements of computational thinking
Question text

8 A group of students are designing a racing car game. The game will allow players to enter their name and then a choice of vehicle. They will then race against other vehicles that will be controlled by the program. Players will use the arrow keys to control their vehicle. (a) The students are identifying the inputs and outputs for the game. Complete the table by identifying two inputs and two outputs for the game. Input 1 Input 2 Output 1 Output 2 [4] (b) The students use abstraction during the design process. (i) State what is meant by abstraction and describe how it can be used to design the racing car game. Definition Use [3] (ii) Explain why it is beneficial to use abstraction when designing a computer program such as a game. [3] (c) (i) The group of students also use decomposition. State what is meant by decomposition. [1] (ii) Describe one benefit of using decomposition when designing a computer program such as a game. [2]