Sorting Algorithms

Quiz
•
Computers
•
University
•
Hard
Pavan Jakkepalli
Used 64+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is not a stable sorting algorithm?
Bubble sort
Selection sort
Quick sort
None of these
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following is/are in-place sorting algorithm(s)?
Selection sort
Bubble sort
Quick sort
Merge sort
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The worst-case time complexity of a quick sort algorithm?
O(nlogn)
O(logn)
O(n^2)
O(n^2logn)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The no.of comparisons in first pass in bubble sort to sort n numbers is....?
n
n(n-1)/2
n-1
n^2
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The maximum no.of swappings in first pass of selection sort to sort n numbers is....?
1
n(n-1)/2
n-1
n^2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In quick sort, based on key or pivot element position, the list is partitioned into how many sub-lists?
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If the list is almost sorted, then which of the following algorithm gives the better performance?
Bubble sort
Selection sort
Quick sort
All of these
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Searching & Sorting Algorithms

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

Quiz
•
10th Grade - University
10 questions
ASK (F3) BAB 3. PEMBANGUNAN ALGORITMA

Quiz
•
3rd Grade - University
10 questions
Quiz Sorting

Quiz
•
University
15 questions
Sorting

Quiz
•
University
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
18 questions
Sorting Algorithms II

Quiz
•
University
10 questions
Kuis 3 - ASD - A

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