NEW
Font size
WorksheetsProgramming [1]
Total questions: 19
Worksheet time: 8mins
What is an Algorithm?
A picture that you use to make a program
A precise set of instructions
Shapes and symbols connected together
Breaking a problem down into smaller tasks
What would this print?
print(3+4)
A binary search is to be performed on the list above.
How many comparisons would it take to the find the number 101?
0-1
1-2
3-4
4-5
A binary search is to be performed on the list above.
How many comparisons would it take to find the number 9?
0-1
2-3
4-5
It can't find the number 9
Identify the search performed by the above algorithm
Linear
Binary
Both linear and binary
Neither, it does not work
The following algorithm should take as input and add together two numbers, outputting the result.
Identify the correct algorithm.
The following algorithm should take as input on number, and output the 12 times table for that number.
Identify the correct algorithm.
The following algorithm should take as input two numbers, add them together, multiply the answer by 11, add 4, then divide by 2. It should output the result.
Identify the correct algorithm.
Select strategy used in the Binary search algorithm
Ask questions
Look for familiar things
Divide and conquer
What is the first strategy to use when given a problem.
Ask questions
Look for familiar things
Divide and conquer
