Spot the false statement
Exercise and reference answers
- Questions
- False statement
- Binary search works on any order
- Statements
- Bubble sort swaps adjacent elements
- Selection sort makes n-1 passes
- Binary search works on any order
- False statement
- Hashing slows searching down
- Statements
- Linear search compares every element
- Hashing slows searching down
- A hash function gives an index
- False statement
- Only numbers can be sorted
- Statements
- Sorting can be ascending or descending
- Strings can be sorted alphabetically
- Only numbers can be sorted
- False statement
- Neither sort splits the list
- Statements
- Insertion sort splits the list in two
- Selection sort splits the list in two
- Neither sort splits the list
- Instructions
- Two statements are true and one is false. Tap the false one.
Explanation
_Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_