wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arrays, lists, tuples, stacks and queues

Total questions: 14

Worksheet time: 5mins

Name
Class
Date
1.

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

a)

Array

b)

List

c)

Tuple

2.

A 1D (one-dimensional) array is a (a)   array.

3.

This means that the first element in the array is considered to be at position zero.

a)

Zero-counted

b)

Rooted

c)

Zero-indexed

4.

Which can be visualised as a table or spreadsheet?

a)

1D array

b)

2D array

c)

3D array

5.

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

a)

Down the rows

b)

Across the columns

6.

Which can be visualised as a multi-page spreadsheet?

a)

1D array

b)

2D array

c)

3D array

7.

A data structure consisting of a number of ordered items which can be different data types and can be edited.

a)

Array

b)

List

c)

Tuple

8.

An ordered set of values of any type which is immutable, (cannot be changed once created).

a)

Array

b)

List

c)

Tuple

9.

Which term is a generic term (not programming specific) for adding an item to a stack?

a)

Push

b)

Pop

c)

Enqueue

d)

Dequeue

10.

Which term is a generic term (not programming specific) for removing an item from a stack?

a)

Push

b)

Pop

c)

Enqueue

d)

Dequeue

11.

Which term is a generic term (not programming specific) for removing an item from a queue?

a)

Push

b)

Pop

c)

Enqueue

d)

Dequeue

12.

Which term is a generic term (not programming specific) for adding an item to a queue?

a)

Push

b)

Pop

c)

Enqueue

d)

Dequeue

13.

On what basis is data in a stack managed?

a)

LIFO

b)

FIFO

c)

LILO

d)

FIDO

14.

On what basis is data in a queue managed?

a)

LIFO

b)

FIFO

c)

LILO

d)

FIDO