Professional Documents
Culture Documents
Records (QS)
Records (QS)
Give one example of a data structure that can be used in that programming language.
A developer needs to store data about thousands of songs in a program. She needs to be able to
2. hold information on every song’s title, singer and year of release.
Explain how the developer could use a combination of an array and records to store this
information.
In your answer you should refer to the data types that would be used by the developer.
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
(Total 4 marks)
Page 1 of 2
3. A programmer is developing a program that needs to record the names and ages of a group of
students. Give three advantages of using a data structure to hold this information instead of
using individual, separate variables for each name and age.
Advantage 1 ____________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Advantage 2 ____________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Advantage 3 ____________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
(Total 3 marks)
Page 2 of 2