Exams
Subjects
Classes
Home
Computer Science
List of top Computer Science Questions on Sorting
What will be the result after pass 2 using Bubble Sort, if we are sorting elements in ascending order?
Initial List: 7 19 18 9 23 51 12 54 73
CUET (UG) - 2024
CUET (UG)
Computer Science
Sorting
__________ compares neighboring elements only and swaps them when necessary?
CUET (UG) - 2024
CUET (UG)
Computer Science
Sorting
If a list contains ’n’ number of elements and all the elements are by default sorted in ascending order, how many comparisons will be required during 1
st
pass of bubble sort to arrange the list in ascending order?
CUET (UG) - 2024
CUET (UG)
Computer Science
Sorting
Consider the following number list [8, 7, 13, 1, -9, 4] After applying selection sort, which of the list is correct after Pass 3 ?
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
Sorting a large number of items can take a substantial amount of time is called ______.
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
Consider a list [8, 7, 13, 1, -5, 4]
After 3rd pass of Bubble Sort, we get
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
In which of the following sorting, the smallest element is selected from the unsorted array and swapped with the leftmost element and that element becomes a part of sorted array ?
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
Yash wrote a program for inserting and deleting data in a file, using Python, One of the functions, he used is incorrect. identify the incorrect function.
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
Which statement is incorrect in relation to searching an element in a list :
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting
What is the number of passes made by bubble sort for a list containing n elements ?
CUET (UG) - 2023
CUET (UG)
Computer Science
Sorting