Worksheets8 Algorithm Test
Total questions: 18
Worksheet time: 20mins
Which is the correct definition of an algorithm?
Putting instructions in a logical order.
A set of instructions.
Computers need to follow an algorithm because they _____ do anything.
(a)Putting code in a logical order is called
(a)A selection helps a computer make a
(a)
A selection is communicated to a computer using (a) (b) (c)
A line of code that keeps repeating until a condition is met is called an (a)
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.
Count
Condition
Identify whether a count or condition iteration would be used for entering your username and password to log onto a computer.
Count
Condition
Identify whether a count or condition iteration would be used for putting the correct money in a vending machine.
Count
Condition
The definition of a count-controlled iteration is
Loop will keep repeating while, or until, a condition is met
Loops repeat a specific number of times
The definition of a condition-controlled iteration is
Loop will keep repeating while, or until, a condition is met
Loops repeat a specific number of times
Identify this symbol
Input/Output
Decision
Process
Start/Stop
Identify this symbol
Input/Output
Decision
Process
Start/Stop
Identify this symbol
Input/Output
Decision
Process
Start/Stop
Identify this symbol
Input/Output
Decision
Process
Start/Stop
Reorder this flowchart for getting money from a cash machine
Using a bubble sort, what is the correct sequence for the third pass.
23, 11, 24, 49, 79
11, 23, 24, 49, 79
23, 24, 11, 49, 79
Using an insertion sort, which is the correct sequence for Insertion 4?
D, J, C, B, L, F, A
B, C, D, J, L, F, A
C, D, J, B, L, F, A
D, J, C, B, L, F, A
