
Algorithm questions
Authored by Toby Adams
Computers
12th Grade - University
Used 78+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider this list of numbers: 9 3 6 8 4 7. An algorithm compares 9 and 3 followed by 9 and 6 followed by 9 and 8. Which algorithm is being described?
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Comparing a bubble sort to the insertion sort, which is the better algorithm in terms of time complexity on average?
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider this list of numbers: 3 4 6 7 8 9. If the number 9 was to be found using a linear search, how many comparisons need to be made?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the main disadvantage of a binary search compared to a linear search?
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
An advantage of pseudocode is that:
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The recursive algorithm to perform a post-order traversal of a binary tree can be described simply as:
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The recursive algorithm to perform a pre-order traversal of a binary tree can be described simply as:
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?