wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SHS 9.4 Python

Total questions: 19

Worksheet time: 6mins

Name
Class
Date
1.

A static data structure which can store multiple items of

data, of the same datatype, under a single name.

a)

Arrays

b)

Flags

c)

Binary Search

d)

Merge Sort

2.

A section in an array or list that can store one piece of data.

a)

Element

b)

Python List

c)

Array

d)

2D Array

3.

An array, which contains a single list of data items, each being identifiable using a single

number index.

a)

1D Array

b)

Algorithm

c)

2D Array

d)

Insertion Sort

4.

An array, which contains multiple lists of data items, each being identifiable using an index made up of two numbers, one to identify the Array and the other to identify the element within that array.

a)

2D Arrary

b)

1D Array

c)

Flags

d)

Pointers

5.

The first element in an array is obviously position 1, however, the computer considers it index 0.

a)

Index 0 v Position 1

b)

Pointers

c)

Arrays

d)

Linear Search

6.

Similar to an array, however, more flexible.

They can store data of any type at the same time e.g. List = [1, "two", 3.0"]

a)

Python list

b)

3D Array

c)

Element

d)

Binary Search

7.

We can add elements to lists using: Add the data item to the end of the existing list - List.append(data) or Insert the data into the list at a given index - List.insert(index, data)

a)

Add an element to a list

b)

A Pass

c)

Algorithm

d)

Arrays

8.

We can delete elements from lists using: List.remove(data) - searches for the first instance of data specified and removes it. List.pop(index) - returns and data and deletes the element at the given

a)

Remove an element from a list

b)

Algorithm

c)

Add an element to a list

d)

Insertion sort

9.

Python lists can easily be sorted or reversed using: list.sort() and list.reverse()

a)

Sort/reverse a list

b)

A pass

c)

Flags

d)

2D array

10.

A set of steps/instructions needed to complete a complex software task.

a)

Algorithm

b)

Pointers

c)

Python list

d)

1D Array

11.

One iteration of an algorithm that contains a loop.

a)

A pass

b)

Pointers

c)

Divide and conquer

d)

Python List

12.

The list is repeatedly split into two halves, with the half without the search criteria being discarded, until all elements have been checked or the search item is found

a)

1D Array

b)

A Pass

c)

Divide and conquer

d)
Linear Search
13.

Normally a Boolean variable, called a truth bit. It is used a reference to see if

something has changed during the last iteration of an algorithm.

a)

Flags

b)

Bubble sort

c)

Arrays

d)

Elements

14.

Normally an integer variable used to point to parts of an array or list. Usually the

lowest point, mid point and end point. They are used to keep track of where you are at.

a)

Pointers

b)

Linear Search

c)

Python list

d)

Add an element to a list

15.

A sequential method of searching for an item in a dataset. This is done by systematically

checking each item in order until every element has been checked or item is found

a)
Jump Search
b)
Linear Search
c)
Random Search
d)
Binary Search
16.

A method of searching for an item in a sorted dataset. It compares the middle element within the search criteria, discards the half that does not include the search criteria, repeatedly until the item is found. If the midpoint falls between two elements, the right is always chosen.

a)
Sequential Search
b)
Linear Search
c)
Binary Search
d)
Hashing
17.

A method of sorting a set of data by repeatedly comparing data items with previous items in a dataset, before inserting them into the correct position.

a)
Merge Sort
b)
Bubble Sort
c)
Quick Sort
d)
Insertion Sort
18.

A method of sorting a set of data by repeatedly comparing data items with previous items in a dataset, before inserting them into the correct position.

a)
Merge Sort
b)
Bubble Sort
c)
Quick Sort
d)
Insertion Sort
19.

A method of sorting a set of data by splitting the dataset up into its individual items and

then continually pairing items from the dataset in order until the entire dataset has been ordered. If the midpoint falls between two elements, the left side gets the extra.

a)
Merge Sort
b)
Selection Sort
c)
Bubble Sort
d)
Quick Sort