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.
Table 1
| T1 | T2 | artist |
|---|---|---|
| Track | Real | String |
| duration | Integer | Boolean |
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)
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.