wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ONE 6th FORM More Arrays

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
The first element in an array is always element 1.
a)
False
b)
True
2.

A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames


What data is held in stored in CUSTOMER (2,3)?

a)

Amrit

b)

Kahn

c)

Power

d)

1003

3.

A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames


What data is held in stored in CUSTOMER (3,1)?

a)

1004

b)

Smith

c)

Amrit

d)

1003

4.

Arrays are an example of...

a)

Dynamic Data Structures

b)

Static Data Structures

c)

Strings

d)

Integers

5.

Which of the following statements about ARRAYS are true?

a)

Arrays are more useful than individual variables for storing related data items

b)

Arrays are less wasteful that lists in terms of memory

c)

It is possible to iterate through the items in an array

d)

The memory used to store the data in an array, is allocated when the array is set up

6.

Given the code, what is in values[2][1] ?

a)

7.9

b)

9.2

c)

7.3

d)

0.5

7.

Which BEST describes an array?

a)

A data structure - Stores a collection of values under one name

b)

A data collection - Stores a structure of values under one name

c)

A list - Stores a list of numbers

d)

A list - Stores a list of strings

8.

What would the statement a[1].length return?

a)

3

b)

4

c)

2

d)

1

9.

An ordered, finite set of elements of a single type.

a)

Array

b)

List

c)

Tuple

10.

Which can be visualised as a table or spreadsheet?

a)

1D array

b)

2D array

c)

3D array

11.

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

12.
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'
13.

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

14.

Which iteration method is commonly used with arrays?

a)

ELSE

b)

WHILE

c)

IF

d)

FOR

15.

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

16.

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

17.

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

a)

1

b)

2

c)

3

d)

4

18.

Python has true 2-dimensional arrays?


True or False?

a)

True

b)

False

19.

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

20.

When searching through a 2D array, you first go...

a)

Down the rows

b)

Across the columns