मराठी

Which statement is false? (a) Bubble sort needs a nested looр. (b) Selection sort needs a nested looр. (c) Linear search needs a nested loop.

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

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 8 Arrays - Sort & Search
Exercises | Q 1. (ii) | पृष्ठ १९६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×