Back to Dashboard

KC 28: Sorting

Knowledge Check

Test your understanding of Module 28 (Sorting Algorithms). Answer all 10 questions. You need at least 6 correct answers to pass. You can retry as many times as you need.

1. What is the primary goal of a sorting algorithm?

2. Which Computational Thinking concept is most directly related to designing the steps of a sorting algorithm like Bubble Sort or Selection Sort?

3. What is the core operation performed repeatedly in Bubble Sort?

4. Consider the list [5, 1, 4, 2]. After the *first pass* of Bubble Sort (comparing and swapping adjacent elements from left to right), what will the list look like?

5. What is the core operation performed in each pass of Selection Sort?

6. Consider the list [5, 1, 4, 2]. After the *first pass* of Selection Sort (finding the minimum and swapping it with the first element), what will the list look like?

7. How many swaps does Selection Sort perform in the worst case for a list of N elements?

8. Which simple sorting algorithm might finish early if the list becomes sorted during one of its passes?

9. In general, for large, randomly ordered lists, are Bubble Sort and Selection Sort considered highly efficient compared to more advanced algorithms?

10. Why is understanding simple sorting algorithms like Bubble Sort and Selection Sort useful, even if more efficient ones exist?