Sorting algorithms I

Quiz
•
Computers
•
University
•
Hard
Yomna Elkholy
Used 9+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is meant by an in-place sorting algorithm?
The input is already sorted and in-place
It requires additional storage
It needs O(1) memory to create auxiliary locations
It requires additional space
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an in-place sorting algorithm?
Selection sort
Insertion sort
Bubble sort
All
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms is best used when the array is nearly sorted to begin with?
Selection sort
Insertion sort
Bubble sort
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case complexity of selection sort?
O(nlogn)
O(logn)
O(n)
O(𝐧𝟐)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Select the appropriate code that performs selection sort.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average case complexity of selection sort?
O(nlogn)
O(logn)
O(n)
O(𝐧𝟐)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the disadvantage of selection sort?
What is the disadvantage of selection sort?
It is not scalable
It can be used for small keys
It takes linear time to sort the elements
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
SMARTICUS

Quiz
•
University
20 questions
DSA Quiz

Quiz
•
University
20 questions
Quantitative Aptitude Series

Quiz
•
University
18 questions
Sorting Algorithms II

Quiz
•
University
20 questions
java list quiz

Quiz
•
University
21 questions
3°D_SAV2_R2 3TECBE_ Algoritmos Estruturas Dados_17_36 QUIZIZZ

Quiz
•
11th Grade - University
20 questions
Data Structures

Quiz
•
University
16 questions
Searching & Sorting Algorithms

Quiz
•
10th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade