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

Quiz
•
Computers
•
University
•
Hard

S Sampath Kumar
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
Similar Resources on Quizizz
18 questions
Sorting Algorithms II

Quiz
•
University
15 questions
Sorting

Quiz
•
University
20 questions
Data Structures

Quiz
•
University
20 questions
Algorithm questions

Quiz
•
12th Grade - University
10 questions
Analysis of Algorithms

Quiz
•
University
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
10 questions
7.5 Standard Methods of Solution Cambridge IGCSE 0478

Quiz
•
10th Grade - University
16 questions
Searching & Sorting Algorithms

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade