No student devices needed. Know more
20 questions
What is a record?
A set of numbers grouped in an array
A collection of arrays in a group
A data structure that groups together related items
A program designed to create an 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
Arrays have a fixed number of items.
True or False
True
False
Arrays can have different data types?
True or False?
True
False
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 the name given to an abstract representation of how data is stored in a 2D array?
Record
File
Field
Table
Which of these is a list?
fruit = "apples", "oranges", "bananas"
fruit = ["apples", "oranges", "bananas"]
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
What is the position of the name 'Paula' in the following list:
names = ["Paul","Pranav","Paula","Prea"]
0
1
2
3
In the following list, which item has the index number 3?
["John", "Harry", "Jesse", "John", "Jairus", "Hamza"]
"Jairus"
"Harry"
"Jesse"
"John"
What type of structure is this in Python?
shopping=[["tomato","rice","cheese","milk"],["soap","masks","detergent"]]
1D array
List
List of Lists
Tuple
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
A record allows multiple data items to be stored using ________ ________ to identify each item of data
record entries
table references
array lists
field names
Records would typically be seen in use with which type of software?
image editor
browser
database
defragmenter
Which would be correct pseudo-code for creating a 1D array?
students : ['Imogen','Tia',Muhammad']
students ← ['Imogen','Tia',Muhammad']
students → ('Imogen','Tia',Muhammad')
students → ['Imogen','Tia',Muhammad']
Explore all questions with a free account