Question bank › GCSE Computer Science › Fundamentals of algorithms

Representing algorithms, decomposition & abstraction

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 1–34 marks

Three flowchart symbols, A, B and C, are shown in the diagram.

(a) State the purpose of each symbol. [3]

(b) Define the term algorithm. [1]

A B C
2Grade 1–33 marks

(a) Define the term decomposition. [1]

(b) Define the term abstraction. [1]

(c) A student is writing a program for a quiz game. Give one example of how the student could use abstraction when designing the game. [1]

3Grade 6–75 marks

Look at this algorithm, written in AQA pseudocode.

nums ← [4, 7, 2, 9, 5]
max ← nums[0]
pos ← 0
FOR i ← 1 TO 4
   IF nums[i] > max THEN
      max ← nums[i]
      pos ← i
   ENDIF
ENDFOR
OUTPUT pos

(a) Complete a trace table for the algorithm with the columns i, max, pos and OUTPUT. Start with a first row showing the initial values max = 4 and pos = 0. [4]

(b) State the purpose of the algorithm. [1]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro