CUET-UG SERIES
Computer-science

Sorting Algorithms

11 previous year questions.

Volume: 11 Ques
Yield: Medium

High-Yield Trend

5
2025
6
2023

Chapter Questions
11 MCQs

01
PYQ 2023
medium
computer-science ID: cuet-ug-
For best case, linear search, searches
1
The whole list
2
Half of the list
3
Just one element in the list
4
One fourth of the list
02
PYQ 2023
medium
computer-science ID: cuet-ug-
Which of the following statement(s) is/are true?

A. When two elements map to the same slot in hash table, it is called hashing.
B. Linear search takes a sorted list and divides it in the middle.
C. Modulo division method is a Hashing method.
D. Traversing specifies whether the key is present in the list or not.
E. Binary search takes a sorted/ordered list and divides it in the middle.
1
A and B only
2
A, B, and C only
3
B and D only
4
C and E only
03
PYQ 2023
medium
computer-science ID: cuet-ug-
The number of swaps made in pass 1 for the following list using Insertion sort is:
1
0
2
1
3
2
4
3
04
PYQ 2023
medium
computer-science ID: cuet-ug-
What will be the status of the list (given below) after pass 2 using Bubble sort?
1
7, 8, 1, -9, 4, 13
2
7, 1, -9, 4, 8, 13
3
1, -9, 4, 7, 8, 13
4
-9, 1, 4, 7, 8, 13
05
PYQ 2023
medium
computer-science ID: cuet-ug-
To sort a list having n elements, the Selection sort makes .......... number of passes through the list.
1
2
3
4
06
PYQ 2023
medium
computer-science ID: cuet-ug-
............. sorts a given list of elements by repeatedly comparing the adjacent elements and swapping them if they are unordered.
1
Selection Sort
2
Insertion Sort
3
Bubble Sort
4
Merge Sort
07
PYQ 2025
medium
computer-science ID: cuet-ug-
Arrange the following in order related to bubble sort for a list of elements: Initial list: (A)
(B)
(C)
(D)
1
(A), (B), (D), (C)
2
(A), (C), (B), (D)
3
(B), (A), (D), (C)
4
(C), (B), (D), (A)
08
PYQ 2025
medium
computer-science ID: cuet-ug-
The amount of time an algorithm takes to process a given data can be called its:
1
Process time
2
Time period
3
Time complexity
4
Time bound
09
PYQ 2025
medium
computer-science ID: cuet-ug-
In binary search, after every pass of the algorithm, the search area:
1
gets doubled
2
gets reduced by half
3
remains same
4
gets reduced by one third
10
PYQ 2025
medium
computer-science ID: cuet-ug-
To perform enqueue and dequeue efficiently on a queue, which of the following operations are required?
A) isEmpty
B) peek
C) isFull
D) update
1
(A), (B) and (D) only
2
(A), (B) and (C) only
3
(B), (C) and (D) only
4
(A), (C) and (D) only
11
PYQ 2025
medium
computer-science ID: cuet-ug-

Given a list numList of n elements and key value K, arrange the following steps for finding the position of the key K in the numList using the binary search algorithm i.e. BinarySearch(numList, key).

  1. (A) Calculate mid = (first + last) // 2
  2. (B) SET first = 0, last = n - 1
  3. (C) PRINT "Search unsuccessful"
  4. (D) WHILE first <= last REPEAT
    • IF numList[mid] = key,
      PRINT "Element found at position", mid+1
      STOP
    • ELSE
      • IF numList[mid] > key, THEN last = mid - 1
      • ELSE first = mid + 1
1
(A), (B), (D), (C)
2
(D), (B), (A), (C)
3
(B), (A), (D), (C)
4
(D), (A), (B), (C)