Advertisements
Advertisements
प्रश्न
Which statement is true?
विकल्प
Bubble sort can arrange an array in only ascending order.
Binary search can work on any array.
Linear search does not need the array to be arranged in any order.
MCQ
Advertisements
उत्तर
Linear search does not need the array to be arranged in any order.
Explanation:
- Linear search checks each element one by one, so the array can be sorted or unsorted.
- Bubble sort can sort in ascending or descending order, and binary search works only on a sorted array.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Arrays - Sort & Search - Exercises [पृष्ठ १९६]
