Edzy
AI TutorResourcesToolsCompareBuy
SearchDownload AppLogin
Edzy

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • Study Resources
  • Free Study Tools
  • Best Apps for Board Exams
  • Edzy vs ChatGPT
  • About Us
  • Why We Built Edzy
  • Blog
  • CBSE AI Tutor

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 12
Computer Science
Computer Science
Sorting
Question Bank

Question Bank - Sorting

Practice Hub

Question Bank: Sorting

This chapter covers different sorting algorithms, including bubble sort, selection sort, and insertion sort. Understanding these concepts is essential for efficient data organization in computer science.

Structured practice

Question Bank - Sorting

Q1.

What is the primary goal of sorting?

Single Answer MCQ
Q-00094892
View explanation
Q2.

Which sorting method repeatedly compares adjacent elements and swaps them if they are out of order?

Single Answer MCQ
Q-00094893
View explanation
Q3.

In Bubble Sort, how many passes are required to sort a list of n elements?

Single Answer MCQ
Q-00094894
View explanation
Q4.

What is a common use case for sorting algorithms?

Single Answer MCQ
Q-00094895
View explanation
Q5.

Which of the following is NOT a valid sorting order?

Single Answer MCQ
Q-00094896
View explanation
Q6.

In which type of sorting algorithm are elements swapped in each pass regardless of their position?

Single Answer MCQ
Q-00094897
View explanation
Q7.

What is a key disadvantage of Bubble Sort compared to more advanced algorithms?

Single Answer MCQ
Q-00094898
View explanation
Q8.

What happens after each complete pass in Bubble Sort?

Single Answer MCQ
Q-00094899
View explanation
Q9.

When sorting strings, which of the following is a valid method of ordering?

Single Answer MCQ
Q-00094900
View explanation
Q10.

Which sorting algorithm is generally more efficient than Bubble Sort for large datasets?

Single Answer MCQ
Q-00094901
View explanation
Q11.

In the context of data organization, why is sorting important?

Single Answer MCQ
Q-00094902
View explanation
Q12.

Which sorting algorithm builds the final sorted array one item at a time?

Single Answer MCQ
Q-00094903
View explanation
Q13.

When comparing Quick Sort to other algorithms, what is an advantage it has?

Single Answer MCQ
Q-00094904
View explanation
Q14.

What is a key characteristic of the Selection Sort algorithm?

Single Answer MCQ
Q-00094905
View explanation
Q15.

What is the worst-case time complexity of Bubble Sort?

Single Answer MCQ
Q-00094925
View explanation
Q16.

Which of the following statements about Bubble Sort is true?

Single Answer MCQ
Q-00094926
View explanation
Q17.

How does Bubble Sort determine when to stop sorting?

Single Answer MCQ
Q-00094927
View explanation
Q18.

In Bubble Sort, what happens in the 'inner' loop?

Single Answer MCQ
Q-00094928
View explanation
Q19.

What type of data structure is commonly used to implement Bubble Sort?

Single Answer MCQ
Q-00094929
View explanation
Q20.

What is the best-case time complexity of Bubble Sort?

Single Answer MCQ
Q-00094930
View explanation
Q21.

Which of the following is not an advantage of Bubble Sort?

Single Answer MCQ
Q-00094931
View explanation
Q22.

Which modification can improve the efficiency of Bubble Sort?

Single Answer MCQ
Q-00094932
View explanation
Q23.

How does Bubble Sort correctly handle equal elements?

Single Answer MCQ
Q-00094933
View explanation
Q24.

What is the first step in the Selection Sort algorithm?

Single Answer MCQ
Q-00094934
View explanation
Q25.

If the Bubble Sort algorithm is optimized to stop early when no swaps are made in a pass, what is this optimization called?

Single Answer MCQ
Q-00094935
View explanation
Q26.

During which pass of the Selection Sort is the smallest element identified and swapped to the sorted list?

Single Answer MCQ
Q-00094936
View explanation
Q27.

How many total comparisons would be performed in the worst-case scenario for an array of size n using Bubble Sort?

Single Answer MCQ
Q-00094937
View explanation
Q28.

In Selection Sort, how many total passes through the list are required?

Single Answer MCQ
Q-00094938
View explanation
Q29.

If we were to modify Bubble Sort to sort in descending order, what change needs to be made in the conditional statement?

Single Answer MCQ
Q-00094939
View explanation
Q30.

Which of the following statements about Selection Sort is true?

Single Answer MCQ
Q-00094940
View explanation
Q31.

What is the time complexity of the Selection Sort algorithm?

Single Answer MCQ
Q-00094941
View explanation
Q32.

After 3 passes of Selection Sort on the list [64, 25, 12, 22, 11], what will the partially sorted list look like?

Single Answer MCQ
Q-00094942
View explanation
Q33.

If given a list of elements, what is the first value to swap in Selection Sort with the list [9, 4, 6, 2, 5]?

Single Answer MCQ
Q-00094943
View explanation
Q34.

What is a primary disadvantage of using Selection Sort?

Single Answer MCQ
Q-00094944
View explanation
Q35.

How does the Selection Sort algorithm handle duplicate values?

Single Answer MCQ
Q-00094945
View explanation
Q36.

In Selection Sort, what does the 'flag' variable represent?

Single Answer MCQ
Q-00094946
View explanation
Q37.

What is a common misconception about Selection Sort compared to Bubble Sort?

Single Answer MCQ
Q-00094947
View explanation
Q38.

How can Selection Sort be implemented recursively?

Single Answer MCQ
Q-00094948
View explanation
Q39.

In Selection Sort, if you are sorting in descending order, the largest element is swapped to which position in the first pass?

Single Answer MCQ
Q-00094949
View explanation
Q40.

What is the time complexity of Bubble Sort in the average case?

Single Answer MCQ
Q-00094950
View explanation
Q41.

How does the time complexity of Insertion Sort compare to that of Bubble Sort?

Single Answer MCQ
Q-00094951
View explanation
Q42.

Which of the following algorithms has the best average time complexity?

Single Answer MCQ
Q-00094952
View explanation
Q43.

If an algorithm has a time complexity of O(n^3), what does it imply?

Single Answer MCQ
Q-00094953
View explanation
Q44.

Which statement is true regarding time complexity?

Single Answer MCQ
Q-00094954
View explanation
Q45.

In a nested loop algorithm, how is the time complexity generally determined?

Single Answer MCQ
Q-00094955
View explanation
Q46.

Why is O(1) referred to as constant time complexity?

Single Answer MCQ
Q-00094956
View explanation
Q47.

What is the impact of having a better time complexity on an algorithm?

Single Answer MCQ
Q-00094957
View explanation
Q48.

Which is a characteristic feature of Linear time complexity algorithms?

Single Answer MCQ
Q-00094958
View explanation
Q49.

Selection Sort typically has a time complexity of?

Single Answer MCQ
Q-00094959
View explanation
Q50.

Which algorithm is generally preferred for large datasets due to its logarithmic performance?

Single Answer MCQ
Q-00094960
View explanation
Q51.

The term 'big O notation' is used to describe?

Single Answer MCQ
Q-00094961
View explanation
Q52.

For which of the following scenarios would O(n^2) complexity be acceptable?

Single Answer MCQ
Q-00094962
View explanation
Q53.

Which of the following sorting algorithms uses a divide-and-conquer approach?

Single Answer MCQ
Q-00094963
View explanation
Q54.

What will happen to the time complexity of an algorithm if you halve the input size?

Single Answer MCQ
Q-00094964
View explanation
Q55.

What is the primary purpose of the Insertion Sort algorithm?

Single Answer MCQ
Q-00094965
View explanation
Q56.

In Insertion Sort, which part of the list is considered sorted during the algorithm's execution?

Single Answer MCQ
Q-00094966
View explanation
Q57.

What is the time complexity of the Insertion Sort algorithm in the worst-case scenario?

Single Answer MCQ
Q-00094967
View explanation
Q58.

If the initial list is [5, 2, 4, 6, 1, 3], what will be the list after the first pass of Insertion Sort?

Single Answer MCQ
Q-00094970
View explanation
Q59.

Which of the following best describes the stability of the Insertion Sort algorithm?

Single Answer MCQ
Q-00094973
View explanation
Q60.

What is the best-case scenario for the number of operations in Insertion Sort?

Single Answer MCQ
Q-00094976
View explanation
Q61.

Which data structure best represents a list when implementing the Insertion Sort algorithm?

Single Answer MCQ
Q-00094978
View explanation
Q62.

What element is compared first in the second pass of Insertion Sort for the list [8, 4, 3, 7, 5]?

Single Answer MCQ
Q-00094981
View explanation
Q63.

After how many passes would the list [1, 3, 2] be completely sorted using Insertion Sort?

Single Answer MCQ
Q-00094984
View explanation
Q64.

What is the average time complexity of Insertion Sort?

Single Answer MCQ
Q-00094987
View explanation
Q65.

What is a common application of Insertion Sort in real life?

Single Answer MCQ
Q-00094990
View explanation
Q66.

In which case would Insertion Sort outperform more complex algorithms like Quick Sort?

Single Answer MCQ
Q-00094993
View explanation
Q67.

What happens if an element smaller than all existing elements in the sorted list is placed in Insertion Sort?

Single Answer MCQ
Q-00094996
View explanation
Q68.

Which statement is true regarding the space complexity of Insertion Sort?

Single Answer MCQ
Q-00094999
View explanation
Learn Better On The App
Competitive revision

Challenge Your Friends

Compete in short duels with fast rounds, instant feedback, and zero boredom.

1v1 challenges
Fast recall training

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview