Algorithms: sorting, searching, and Big-O
Sharpen your fundamentals in sorting, searching, and Big-O analysis with a mixed-difficulty set built for steady improvement. You’ll compare algorithm trade-offs, reason about time/space complexity, a...
Start Quiz
Pick a difficulty and question count to begin.
About this quiz
What this quiz covers
From bubble vs. quicksort to binary search and asymptotic notation, this quiz targets the core ideas behind algorithm performance and correctness.
Each question uses 4 options and there’s no timer, so you can slow down, do the math, and build reliable intuition instead of rushing.
Skills you’ll practice
You’ll practice reading pseudocode-like descriptions, estimating runtime, and choosing the right approach for a given constraint (sorted input, memory limits, duplicates, worst-case behavior).
Common pitfalls include mixing up average vs. worst case, assuming binary search works on unsorted data, and treating Big-O as an exact runtime rather than a growth rate.
Difficulty and how to play
Difficulty is mixed on purpose: easier items reinforce definitions and standard complexities, while harder ones push you to compare trade-offs and reason about edge cases. Choose your question count and difficulty before starting to tailor the session - use shorter runs for quick review or longer runs to build stamina.
- Identify the Big-O (and sometimes Big-Theta) of common loops and recurrences
- Compare sorting algorithms by stability, in-place behavior, and typical performance
- Decide when linear search beats binary search in real constraints
- Spot off-by-one and boundary issues in search logic
- Interpret best/average/worst-case scenarios without conflating them
- Connect problem constraints to an algorithm choice (time vs. space trade-offs)
Tips to score higher
Write down assumptions (sortedness, duplicates, input size) before answering, and sanity-check with small examples. When stuck, eliminate options by growth rate: constants < log n < n < n log n < n² < 2ⁿ.
Sample questions
What is the time complexity of Bubble Sort in the worst case?
- A.O(n^2)
- B.O(n)
- C.O(log n)
- D.O(n log n)
Which of the following algorithms is a comparison sort?
- A.Merge Sort
- B.Counting Sort
- C.Radix Sort
- D.Bucket Sort
What is the best case time complexity of Quick Sort?
- A.O(n log n)
- B.O(n)
- C.O(n^2)
- D.O(log n)
Quiz FAQ
How many questions are in this quiz?
This quiz has 113 questions covering sorting, searching, and Big-O fundamentals.
Is there a timer or time limit?
No. The quiz has no timer, so you can take your time on each question.
What answer format does the quiz use?
Every question is multiple-choice with 4 options.
Can I choose the number of questions and difficulty?
Yes. You can select your preferred question count and difficulty before you start.
What topics are included besides Big-O notation?
You’ll also see sorting and searching concepts like stability, in-place vs. extra memory, and best/average/worst-case behavior.
Play this quiz in another language(7)
Related Quizzes

Programming fundamentals: variables, loops, and functions
Build confidence with core programming building blocks: variables, loops, and functions. This mixed-difficulty quiz checks how well you read code, predict output, and spot logic errors. Choose your preferred question count and difficulty, then answer each multiple-choice question at your own pace - there’s no timer.

Data structures: arrays, lists, and trees
Sharpen your fundamentals of arrays, linked lists, and trees with a mixed-difficulty set built for quick practice. You’ll work through core concepts like indexing, traversal, and complexity, plus common edge cases that trip people up. Pick your preferred question count and difficulty, then learn from each result at your own pace.
Computer Hardware Components And Roles
Match key PC components to what they do and how they affect performance. Covers CPU, GPU, RAM, storage types, motherboards, power supplies, and ports.
Cloud Computing Service Models Explained
Check your understanding of how cloud services are delivered and used. Covers IaaS, PaaS, SaaS, containers vs VMs, regions/availability zones, and shared responsibility basics.
Cybersecurity Threats And Defenses
Identify common cyber threats and the best defensive practices used to reduce risk. Covers phishing, malware, passwords, MFA, encryption basics, and safe browsing habits.
Programming Language Syntax Basics
Test your knowledge of common programming syntax across popular languages. Questions focus on variables, loops, functions, and basic data structures without requiring deep computer science theory.