Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8 Algorithm Test

Total questions: 18

Worksheet time: 20mins

Name
Class
Date
1.

Which is the correct definition of an algorithm?

a)

Putting instructions in a logical order.

b)

A set of instructions.

2.

Computers need to follow an algorithm because they _____ do anything.

(a)  
Choose from the below words
would
wouldn't
3.

Putting code in a logical order is called

(a)  
Choose from the below words
sequencing
iteration
decision
else
if
then
4.

A selection helps a computer make a

​ (a)  

Choose from the below words
iteration
else
if
then
sequencing
decision
5.

A selection is communicated to a computer using ​ (a)   ​ (b)   ​ (c)  

​

Choose from the below words
iteration
else
if
then
sequencing
decision
6.

A line of code that keeps repeating until a condition is met is called an ​ ​ ​ (a)  

​

Choose from the below words
iteration
else
sequencing
decision
if
then
7.

Identify whether a count or condition iteration would be used for playing a computer game where you have a limit of 3 lives before the game ends.

a)

Count

b)

Condition

8.

Identify whether a count or condition iteration would be used for entering your username and password to log onto a computer.

a)

Count

b)

Condition

9.

Identify whether a count or condition iteration would be used for putting the correct money in a vending machine.

a)

Count

b)

Condition

10.

The definition of a count-controlled iteration is

a)

Loop will keep repeating while, or until, a condition is met

b)

Loops repeat a specific number of times

11.

The definition of a condition-controlled iteration is

a)

Loop will keep repeating while, or until, a condition is met

b)

Loops repeat a specific number of times

12.

Identify this symbol

13.

Identify this symbol

14.

Identify this symbol

15.

Identify this symbol

16.

Reorder this flowchart for getting money from a cash machine

a)

b)

c)

d)

e)

1)
2)
3)
4)
5)
17.

Using a bubble sort, what is the correct sequence for the third pass.

a)

23, 11, 24, 49, 79

b)

11, 23, 24, 49, 79

c)

23, 24, 11, 49, 79

18.

Using an insertion sort, which is the correct sequence for Insertion 4?

a)

D, J, C, B, L, F, A

b)

B, C, D, J, L, F, A

c)

C, D, J, B, L, F, A

d)

D, J, C, B, L, F, A