wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8525 AQA GCSE 3.2.6 Data Structures

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is a record?

a)

A set of numbers grouped in an array

b)

A collection of arrays in a group

c)

A data structure that groups together related items

d)

A program designed to create an array

2.

What is meant by 'declaring' an array?

a)

Create an array in a program, specifying its name and size

b)

creating a program, specifying its size

c)

create a program, specifying its name

d)

create an array to assign to a Selection process

3.
Which value does the command 'list[3]' find?
a)
The fourth value of 'List'
b)
The third value of 'List'
c)
The second value of 'List'
d)
The fifth value of 'List'
4.

scores = [5,7,0,10,8,3,7,3]


Which value will be found using the following statement:


print(scores[2])

a)

5

b)

7

c)

0

d)

10

5.

Which iteration method is commonly used with arrays?

a)

ELSE

b)

WHILE

c)

IF

d)

FOR

6.

What is the name given to a number that corresponds to the location of an item of data in an array?

a)

Initial

b)

Primary

c)

Index

d)

Identifier

7.

Arrays have a fixed number of items.


True or False

a)

True

b)

False

8.

Arrays can have different data types?


True or False?

a)

True

b)

False

9.

Which type of array is the following example?


score = [5,7,0,10,8,3,7,3]

a)

1D

b)

2D

c)

3D

d)

4D

10.

How may index numbers are used in accessing a 2D array?

a)

1

b)

2

c)

3

d)

4

11.

Python has true 2-dimensional arrays?


True or False?

a)

True

b)

False

12.

What is the name given to an abstract representation of how data is stored in a 2D array?

a)

Record

b)

File

c)

Field

d)

Table

13.

Which of these is a list?

a)

fruit = "apples", "oranges", "bananas"

b)

fruit = ["apples", "oranges", "bananas"]

c)

fruit = {"apples", "oranges", "bananas"}

d)

fruit = ("apples", "oranges", "bananas")

14.

What is the position of the name 'Paula' in the following list:

names = ["Paul","Pranav","Paula","Prea"]

a)

0

b)

1

c)

2

d)

3

15.

In the following list, which item has the index number 3?

["John", "Harry", "Jesse", "John", "Jairus", "Hamza"]

a)

"Jairus"

b)

"Harry"

c)

"Jesse"

d)

"John"

16.

What type of structure is this in Python?


shopping=[["tomato","rice","cheese","milk"],["soap","masks","detergent"]]

a)

1D array

b)

List

c)

List of Lists

d)

Tuple

17.

What is a nested loop?

a)

one loop that sits within another loop

b)

one loop that has stalled and is not working

c)

one loop replaced by another loop

d)

one loop that has become selection

18.

A record allows multiple data items to be stored using ________ ________ to identify each item of data

a)

record entries

b)

table references

c)

array lists

d)

field names

19.

Records would typically be seen in use with which type of software?

a)

image editor

b)

browser

c)

database

d)

defragmenter

20.

Which would be correct pseudo-code for creating a 1D array?

a)

students : ['Imogen','Tia',Muhammad']

b)

students ← ['Imogen','Tia',Muhammad']

c)

students → ('Imogen','Tia',Muhammad')

d)

students → ['Imogen','Tia',Muhammad']