
CS Algorithms Quiz
Authored by Victor Giurgia
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of the best case scenario for the QuickSort algorithm?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a stable sorting algorithm?
Bubble Sort
Merge Sort
QuickSort
Insertion Sort
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search algorithm, what must be true about the collection to be searched?
The collection must be in ascending order.
The collection must be in descending order.
The collection does not need to be sorted.
The collection must be a linked list.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following pseudocode do? ``` function factorial(n): if n == 0: return 1 else: return n * factorial(n-1) ```
Calculates the sum of all numbers up to n
Calculates the nth Fibonacci number
Calculates the factorial of n
Calculates n to the power of n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order?
Selection Sort
Bubble Sort
Merge Sort
QuickSort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of the linear search algorithm in an array of n elements?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of recursion?
It can only solve problems that are inherently iterative.
It breaks down a problem into smaller instances of the same problem.
It is always the most memory-efficient solution.
It cannot be used in sorting algorithms.
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
20 questions
Network topologies
Quiz
•
8th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade