Lesson T1.2.3
T1.2.3 Comparing the utility of algorithms Quiz: KS3 Computing, Unit 1
20 questions
In partnership with Revision Ninja
Lesson T1.2.3, Comparing the utility of algorithms: 20 multiple choice questions for the KS3 Computing (National Curriculum), Unit 1: Computational thinking and algorithms, 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
-
Why compare two different algorithms that solve the same problem?
- Change the syntax
- Judge efficiency
- Reduce file size
- Increase complexity
-
Which measure is commonly used to judge an algorithm's performance?
- Font style
- Variable names
- Number of steps
- Line count
-
Between binary and linear search on 1000 sorted items, which needs fewer checks worst-case?
- Both are equal
- Linear search
- Neither works
- Binary search
-
Which sorting algorithm makes at most one swap per pass?
- Selection sort
- Merge sort
- Insertion sort
- Bubble sort
-
Algorithm A takes 5 seconds and Algorithm B takes 2 seconds. Which is more efficient?
- Cannot be told
- Algorithm A
- Both are equal
- Algorithm B
-
When two algorithms are both correct, which factors determine the better choice?
- Author and date
- Font and colour
- Speed and memory
- File name length
-
Which factor is irrelevant when comparing the utility of two algorithms?
- Screen display colour
- Memory usage
- Execution time
- Number of steps
-
Linear search on 50 items takes about 25 checks on average. About how many checks does binary search need on 50 sorted items?
- About 6
- About 25
- About 1
- About 50
-
What does worst-case behaviour provide when comparing algorithms?
- Random step count
- Reliable upper limit
- Minimum possible steps
- Average execution time
-
What does the term utility mean when applied to an algorithm?
- Memory address
- Practical usefulness
- Line count
- File extension
-
For sorting five items, which algorithm is more efficient?
- Twenty comparisons
- Ten comparisons
- Fifty comparisons
- Four comparisons
-
For an unsorted list used once, which algorithm type is more useful?
- Sorted-only algorithm
- Unrestricted search algorithm
- Manual sorting step
- Static array lookup
-
Why should logical reasoning be used to compare algorithms?
- To speed up code
- To format text
- To justify choices
- To design graphics
-
Binary search runs on the sorted list [2, 4, 6, 8, 10]. Which item is checked first?
- 6
- 8
- 4
- 2
-
If n equals 10, which algorithm takes fewer steps?
- Three hundred steps
- One thousand steps
- One hundred steps
- Thirty steps
-
Why is bubble sort inefficient for a million items?
- Insufficient RAM
- Network latency
- Excessive comparisons
- Syntax errors
-
How is a correct algorithm that takes a long time described?
- Correct but inefficient
- Incorrect and fast
- Invalid and slow
- Buggy and optimal
-
How many swaps does insertion sort need on an already sorted list?
- Ten
- One
- Zero
- Equal to items
-
How should developers choose between algorithms for a database search?
- Test realistic data
- Pick the shortest
- Use random choice
- Guess the fastest
-
Which search algorithm is best for a million sorted items?
- Bubble search
- Random search
- Linear search
- Binary search
Related quizzes
- Computational abstractions of real-world systems Quiz · T1.1.1 · 20 questions
- Sorting algorithms Quiz · T1.2.1 · 20 questions
- Searching algorithms Quiz · T1.2.2 · 20 questions
- Solving problems with two or more programming languages Quiz · T2.1.1 · 20 questions
- AND, OR and NOT Quiz · T3.1.1 · 20 questions
- Hardware and software components Quiz · T4.1.1 · 20 questions
- Combining applications across devices Quiz · T5.1.1 · 20 questions
- Using technology safely, respectfully and responsibly Quiz · T6.1.1 · 20 questions
- Textual programming languages Quiz · T2.1.2 · 20 questions
- Boolean logic in circuits and programming Quiz · T3.1.2 · 20 questions