Decomposition & Abstraction (Edexcel GCSE Computer Science): Exam Questions

Exam code: 1CP2

11 mins3 questions
1a1 mark

Identify the term that means breaking a problem or solution down into smaller parts.

  • Abstraction

  • Computation

  • Decomposition

  • Evaluation

1b2 marks

State two benefits of subprograms.

26 marks

A group of students are working together on a single maze game. The arrow keys control the character. When the character reaches the end of the maze without touching a wall, a happy sound is played. The game also displays a score.

A complex square maze with thick black lines, an entrance on the left, and an exit on the right, featuring multiple paths and dead ends.

Discuss the use of decomposition and abstraction in developing this game.

Your answer should include:

  • a definition of each term

  • the benefits each brings to the group of students

  • an example of where each could appear in the program code.

32 marks

Here is an algorithm that prints colours.

Python code defines ink colours, prompts user input to display colours, and prints index with colour names if input is "y" or "Y", else says "Thank you".

(i) State the name of the computational thinking technique used by the subprogram displayAll() to hide the logic of printing.

[1]

(ii) State the name of the computational thinking technique used when separating logic into different blocks, such as the subprogram and the main program.

[1]