Skip to content

Course home

Data structures

Data structures

EasyMedium
12345678910111213
Question 4

A programmer is writing a program to manage a digital music playlist. They want to use a record structure to store information about each music track.

Complete the pseudocode in Figure 1 by filling in the gaps using the items in Table 1.

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

Table 1

T1T2artist
TrackRealString
durationIntegerBoolean

Figure 1

RECORD _____(1)
    title : String
    _____(2) : String
    duration : _____(3)
ENDRECORD

T1 ← Track("Blank Space", "T Swift", 3.51)
T2 ← _____(4) ("Hello", "Adele", 4.55)
[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