
CS Algorithms Quiz

Quiz
•
Computers
•
12th Grade
•
Hard

Victor Giurgia
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
J277 - 2.1 - Inputs, Outputs and Processes

Quiz
•
10th Grade - University
15 questions
FUNDAMENTALS OF ALGORITHMS - UNIT 3 MCQS

Quiz
•
12th Grade
20 questions
Algorithm questions

Quiz
•
12th Grade - University
15 questions
G10 CS Bubble Search

Quiz
•
12th Grade
16 questions
Unit 2 Problem solving A level computer science

Quiz
•
12th Grade - University
20 questions
ONE 6th FORM A* & Dijkstras and complexities

Quiz
•
12th Grade
17 questions
April Revision APCSP

Quiz
•
12th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade