True or false about sorting
Exercise and reference answers
- Questions
- Statement is true
- Yes
- Statement
- A pass with no swap means the list is sorted.
- Statement is true
- No
- Statement
- Bubble sort makes n passes for n elements.
- Statement is true
- Yes
- Statement
- Selection sort finds the smallest element first.
- Statement is true
- No
- Statement
- Binary search works on an unsorted list.
- Statement is true
- Yes
- Statement
- Insertion sort keeps a sorted and unsorted part.
- Instructions
- Decide whether each statement is true or false.
Explanation
_Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_