Q1:

2025: 22 May Shift 1

Sorting

Medium

Computer Science

For a given list= [63, 42, 21, 9, 86]. Using the bubble sort algorithm, arrange the following outputs of each iteration of the first pass in ascending order of iterations.

(A). [63, 42, 21, 9, 86]

(B). [42, 21, 63, 9, 86]

(C). [42, 63, 21, 9, 86]

(D). [42, 21, 9, 63, 86]

Answer options
Option 2
Correct Answer
Explanation for 2025: 22 May Shift 1 CSE question 1

Q2:

2025: 22 May Shift 1

Sorting

Easy

Computer Science

What is the time complexity of a Selection Sort?

Answer options
Option 2
Correct Answer
Explanation for 2025: 22 May Shift 1 CSE question 2

Q3:

2025: 22 May Shift 1

Sorting

Easy

Computer Science

Which of the following data list will be the worst case scenario for Insertion Sort?

Answer options
Option 2
Correct Answer
Explanation for 2025: 22 May Shift 1 CSE question 3

Q4:

2025: 21 May Shift 1

Sorting

Hard

Computer Science

Consider the following list= [8, 7, 13, 1, -9, -14]. Arrange the iterations of the first pass of the Selection Sort algorithm given below in ascending order of the iterations.

(A). [-14, 8, 13, 7, 1, -9]

(B). [-9, 8, 13, 7, 1, -14]

(C). [1, 8, 13, 7, -9, -14]

(D). [7, 8, 13, 1, -9, -14]

Answer options
Option 2
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 4

Q5:

2025: 21 May Shift 1

Sorting

Easy

Computer Science

What is the time complexity of insertion sort in worst case?

Answer options
Option 4
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 5

Q6:

2025: 20 May Shift 1

Sorting

Easy

Computer Science

Arrange the following steps in order for bubble sorting:

(A) Compare the adjacent elements.

(B) List is sorted.

(C) Take an unsorted list.

(D) Swap the elements.

Answer options
Option 2
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 6

Q7:

2025: 20 May Shift 1

Sorting

Medium

Computer Science

Apply bubble sort technique to sort list of elements given below:

numList2 = [2, 7, 5, 8, 4]

In which pass the last swap happens?

Answer options
Option 3
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 7

Q8:

2025: 16 May Shift 1

Sorting

Medium

Computer Science

In insertion sort, if we are given to sort a list of n elements, then how many comparisons will be required?

Answer options
Option 1,2
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 8

Q9:

2025: 16 May Shift 1

Sorting

Easy

Computer Science

The sorting algorithm which sorts the elements by repeatedly comparing the consecutive elements, and swapping them if they are not in proper order is called ___________.

Answer options
Option 1
Correct Answer
Explanation for 2025: 16 May Shift 1 CSE question 9

Q10:

2025: 16 May Shift 1

Sorting

Easy

Computer Science

The number of passes required by the bubble sort algorithm to sort 'n' elements in the list are________ .

Answer options

Q11:

2025: 15 May Shift 2

Sorting

Easy

Computer Science

The process of placing or rearranging a collection of elements into a particular order is known as _____.

Answer options

Q12:

2025: 15 May Shift 2

Sorting

Easy

Computer Science

Unordered list of marks of students is given. ________ compares the adjacent elements and swap them.

Answer options

Q13:

2025: 15 May Shift 2

Sorting

Medium

Computer Science

Given list L=[8, 7, 13, 1, -9, 4]

Perform Insertion sort and identify the correct order of sort.

(A) 7, 8, 13, 1, -9, 4

(B) -9, 1, 7, 8, 13, 4

(C) -9, 1, 4, 7, 8, 13

(D) 1, 7, 8, 13, -9, 4

Answer options

Q14:

2025: 14 May Shift 1

Sorting

Medium

Computer Science

Identify the number of swaps required in the first pass of bubble sort for the following list :-

list= [8, 7, 13, 1, -9, 4]

Answer options

Q15:

2025: 14 May Shift 1

Sorting

Medium

Computer Science

Consider the following list of six elements:

numList= [8, 7, 13, 1, -9, 4]

Arrange the following output after each pass in increasing order of passes after applying insertion sort on the above list.

(A) [1, 7, 8, 13, -9, 4]

(B) [-9, 1, 4, 7, 8, 13]

(C) [7, 8, 13, 1, -9, 4]

(D) [-9, 1, 7, 8, 13, 4]

Answer options

Q17:

2025: 13 May Shift 2

Sorting

Easy

Computer Science

The amount of time an algorithm takes to process a given data can be called its :

Answer options

Q18:

2025: 13 May Shift 2

Sorting

Medium

Computer Science

Arrange the following in order related to bubble sort for a list of elements:

4-9123026

(A).

-94123026

(B).

-94122306

(C).

-94212630

(D).

-94122630
Answer options