NEW
Font size
WorksheetsWJEC 2.2 Algorithms and Programming Constructs - Algorithms
Total questions: 38
Worksheet time: 23mins
Yes
How many arrows should come out of a decision symbol in a flowchart?
0
1
2
3
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.
What are the three algorithm constructs?
Sequence, Selection, Iteration
Input, Process, Output
Input/output, decision, terminator
Loop, input/output, process
A linear search is to be performed on the list above.
How many comparisons would it take to find the number 1?
1
2
3
4
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
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
The above list is to be sorted using a bubble sort.
What will the list look like after the first iteration through the list.
The two lists above are to be merged, which element first goes into the new merged list
0
1
2
3
11, 8, 13, 9, 7, 3
Which algorithm uses a divide and conquer approach?
Linear Search
Binary Search
