Data in a computer program is organised using a data structure. There are different methods for organising data. Arrays are a common tool used to organise data when programming.
What is the difference between a static structure and a dynamic structure?
A static structure can only have data added to it, but in a dynamic structure data can be added and edited
A static structure is fixed in size but a dynamic structure can shrink or grow
A static structure can only be used once. A dynamic structure can be used many times
In terms of data structures, what does mutable mean?
A mutable structure is one which can only have data added to it
A mutable structure is one which is fixed in size
A mutable structure is one which allows data to be added, edited, deleted or moved
What type of data structure is an array?
Static and mutable
Dynamic and immutable
Static and immutable
Which of the following is not a valid array?
names=("Tom", "Ali", 22, "Connie")
In terms of an array, what is an index?
A value which points to a data element in an array
The first element in an array
A list of all the elements in an array
How many elements exist in the array marks(5,5)?
In the array marks(9, 10, 8, 5, 9) what is the value of element marks(3)?
What is a record?
A collection of arrays
A collection of elements in an array
A data structure that groups together related items
A spreadsheet uses references such as B1, C3 to refer to a cell in a grid. What would be the array equivalent of cell reference D4?
What is meant by 'declaring' an array?
Creating an array in a program, specifying its name and size
Giving an array in a program, specifying its size
Placing initial values into an array