Font size
WorksheetsONE 6th FORM More Arrays
Total questions: 20
Worksheet time: 10mins
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
What data is held in stored in CUSTOMER (2,3)?
Amrit
Kahn
Power
1003
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
What data is held in stored in CUSTOMER (3,1)?
1004
Smith
Amrit
1003
Arrays are an example of...
Dynamic Data Structures
Static Data Structures
Strings
Integers
Which of the following statements about ARRAYS are true?
Arrays are more useful than individual variables for storing related data items
Arrays are less wasteful that lists in terms of memory
It is possible to iterate through the items in an array
The memory used to store the data in an array, is allocated when the array is set up
Given the code, what is in values[2][1] ?
7.9
9.2
7.3
0.5
Which BEST describes an array?
A data structure - Stores a collection of values under one name
A data collection - Stores a structure of values under one name
A list - Stores a list of numbers
A list - Stores a list of strings
What would the statement a[1].length return?
3
4
2
1
An ordered, finite set of elements of a single type.
Array
List
Tuple
Which can be visualised as a table or spreadsheet?
1D array
2D array
3D array
What is meant by 'declaring' an array?
Create an array in a program, specifying its name and size
creating a program, specifying its size
create a program, specifying its name
create an array to assign to a Selection process
scores = [5,7,0,10,8,3,7,3]
Which value will be found using the following statement:
print(scores[2])
5
7
0
10
Which iteration method is commonly used with arrays?
ELSE
WHILE
IF
FOR
What is the name given to a number that corresponds to the location of an item of data in an array?
Initial
Primary
Index
Identifier
Which type of array is the following example?
score = [5,7,0,10,8,3,7,3]
1D
2D
3D
4D
How may index numbers are used in accessing a 2D array?
1
2
3
4
Python has true 2-dimensional arrays?
True or False?
True
False
What is a nested loop?
one loop that sits within another loop
one loop that has stalled and is not working
one loop replaced by another loop
one loop that has become selection
When searching through a 2D array, you first go...
Down the rows
Across the columns
