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
25 questions
PHP + MySQL

Quiz
•
7th Grade - University
20 questions
DSA Quiz

Quiz
•
University
18 questions
Sorting Algorithms II

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

Quiz
•
11th Grade - University
20 questions
DAA - CSE A

Quiz
•
University
20 questions
Technical Quiz R1

Quiz
•
University
25 questions
Technical quiz(Medium-Level)

Quiz
•
University
20 questions
PHP First Internal Practical Viva

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University