Selection Sort & Exhaustive Search

Selection Sort & Exhaustive Search

University

15 Qs

quiz-placeholder

Similar activities

Quiz3_DivideConquer_GreedyApproach

Quiz3_DivideConquer_GreedyApproach

University

10 Qs

DS- UNIT-1

DS- UNIT-1

University

20 Qs

PDS - 04225 - Sorting Algorithms - Chapter 11 - Part 2

PDS - 04225 - Sorting Algorithms - Chapter 11 - Part 2

University

10 Qs

XII Samacheer Computer Science

XII Samacheer Computer Science

12th Grade - University

10 Qs

Sorting Algorithms

Sorting Algorithms

University

14 Qs

CCS3101-CS1E

CCS3101-CS1E

University

11 Qs

Sort

Sort

University - Professional Development

15 Qs

DAA_C_MCQ - 1

DAA_C_MCQ - 1

University

12 Qs

Selection Sort & Exhaustive Search

Selection Sort & Exhaustive Search

Assessment

Quiz

Computers

University

Hard

Created by

S Sampath Kumar

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity of the Selection Sort algorithm for sorting an array of N elements?

a. O(N)

b. O(N^2)

c. O(log N)

d. O(N^2 log N)

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How does the Selection Sort algorithm work?

a. It divides the array into subarrays for sorting.

b. It repeatedly selects the smallest element and swaps it with the first unsorted element.

c. It uses a stack to sort the elements.

d. It employs a binary search to find the smallest element.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true about Selection Sort?

a. It is an unstable sorting algorithm.

b. It is an adaptive sorting algorithm.

c. It has a best-case time complexity of O(N log N).

d. It is more efficient than Quick Sort.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Selection Sort, how many comparisons are made to sort an array of N elements?

a. N

b. N-1

c. N^2

d. N/2

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which sorting algorithm is more efficient than Selection Sort on average?

a. Quick Sort

b. Merge Sort

c. Bubble Sort

d. Insertion Sort

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Selection Sort, how many swaps are made to sort an array of N elements?

a. N

b. N-1

c. N^2

d. N/2

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following sorting algorithms is not an in-place sorting algorithm?

a. Selection Sort

b. Quick Sort

c. Merge Sort

d. Bubble Sort

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?