Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1. Items of data can be combined together to form a data structure.

State the name of a programming language you are familiar with.

Programming language: ________________________

Give one example of a data structure that can be used in that programming language.

Data structure: _______________________________


(Total 1 mark)

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

You might also like