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 [पृष्ठ १९६]
