Lesson 4.4.4.1
4.4.4.1 Comparing algorithms Quiz: AQA Computer Science, Unit 4
20 questions
In partnership with Revision Ninja
Lesson 4.4.4.1, Comparing algorithms: 20 multiple choice questions for the AQA Computer Science (7517), Unit 4: Theory of computation, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
Algorithm complexity is expressed as a function relative to what key factor?
- Memory capacity
- Execution time
- Problem size
- Processor speed
-
In which two respects can one algorithm be more efficient than another?
- Time-wise and space-wise
- Legally and commercially
- Alphabetically and numerically
- Visually and audibly
-
Efficient algorithm implementation minimises execution time and what other resource?
- Memory usage
- Source code length
- Disk capacity
- Network bandwidth
-
What are the two distinct types of algorithm efficiency?
- Input and output
- Time and space
- Speed and bandwidth
- Accuracy and precision
-
What measure determines whether an algorithm is more efficient time-wise?
- Lower memory usage
- Smaller input size
- Shorter execution time
- Fewer code lines
-
Algorithm A takes n² steps and B takes 100n steps. For n = 10, which uses fewer steps?
- Neither algorithm
- Both are equal
- Algorithm A
- Algorithm B
-
For the same algorithms (n^2 and 100n), at what value of n do they perform equal numbers of steps?
- 10
- 100
- 50
- 1000
-
For very large input sizes, which time complexity is more efficient?
- O(n²)
- O(2ⁿ)
- O(n)
- O(n!)
-
For a large dataset, which sorting algorithm performs significantly fewer comparisons?
- Merge sort
- Insertion sort
- Linear sort
- Bubble sort
-
Algorithm X uses O(n) memory and Y uses O(1) memory. Which is more space-efficient?
- Algorithm Y
- Both are equal
- Algorithm X
- Neither algorithm
-
An O(n) algorithm takes 3 seconds on n items. Roughly how long does it take on 2n items?
- 9 seconds
- 6 seconds
- 3 seconds
- 12 seconds
-
An O(n^2) algorithm takes 3 seconds on n items. Roughly how long does it take on 2n items?
- 12 seconds
- 6 seconds
- 24 seconds
- 9 seconds
-
Why are algorithmic growth functions preferred over clock-time measurements?
- Easier calculation
- Code brevity
- Exact execution time
- Machine independence
-
Which algorithm efficiency metric is independent of the hardware used?
- Processor load
- Power consumption
- Number of steps
- Clock time
-
For large n, which complexity function represents a more efficient algorithm?
- n²
- n!
- 5n + 20
- 2ⁿ
-
As input size grows, which rate of growth becomes impractical first?
- Polynomial growth
- Logarithmic growth
- Linear growth
- Exponential growth
-
Roughly how many times more operations does bubble sort need than merge sort for one million items?
- About 20
- About 50,000
- About 2
- About 1,000,000
-
Using extra memory to achieve faster execution time is an example of what trade-off?
- Time-space trade-off
- Input-output trade-off
- Hardware-software trade-off
- Accuracy-speed trade-off
-
What resource advantage might a slower algorithm offer over a faster one?
- Infinite stack size
- Higher asymptotic growth
- Lower time complexity
- Lower memory usage
-
What aspect of algorithm performance does Big-O notation describe?
- Exact execution time
- Long-run growth rate
- Hardware clock speed
- Memory bus width
Related quizzes
- Problem-solving and algorithms Quiz · 4.4.1.1 · 20 questions
- Abstraction Quiz · 4.4.1.3 · 20 questions
- Problem reduction and decomposition Quiz · 4.4.1.8 · 20 questions
- Composition Quiz · 4.4.1.10 · 20 questions
- Automation Quiz · 4.4.1.11 · 20 questions
- Finite state machines Quiz · 4.4.2.1 · 20 questions
- Regular expressions Quiz · 4.4.2.3 · 20 questions
- Backus-Naur Form and syntax diagrams Quiz · 4.4.3.1 · 20 questions
- Order of complexity Quiz · 4.4.4.3 · 20 questions
- Limits of computation and computable problems Quiz · 4.4.4.4 · 20 questions