Advertisements
Advertisements
प्रश्न
Which statement is false?
विकल्प
Bubble sort needs a nested loop.
Selection sort needs a nested loop.
Linear search needs a nested loop.
MCQ
Advertisements
उत्तर
Linear search needs a nested loop.
Explanation:
- Bubble sort and selection sort use nested loops to compare and arrange elements.
- Linear search checks elements one by one using a single loop, so it does not need a nested loop.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Arrays - Sort & Search - Exercises [पृष्ठ १९६]
