Skip to content

Course home

Data structures

Data structures

EasyMedium
12345678910111213
Question 12

A programmer is writing an algorithm that uses a record structure to store details about video games.

Complete the algorithm below by filling in the gaps (a) to (d) using the items in Table 1.

  • You may need to use some of the items in Table 1 more than once.
  • You will not need to use all the items in Table 1.

Table 1

G1G2developer
GameRealInteger
titleStringBoolean
ratingPlayOutput

Algorithm

RECORD (a)
    title : String
    (b) : String
    rating : (c)
ENDRECORD

G1 ← Game("Minecraft", "Mojang", 9.5)
G2 ← (d) ("Terraria", "Re-Logic", 8.8)
[3]
Markscheme

Data structures Questions

  1. GCSE
  2. /Computer Science
  3. /Data structures

36 exam-style questions on AQA GCSE Computer Science Data structures. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank