
Sorting techniques Quiz
Authored by Niranjani Niranjani
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking like this: 2 5 1 7 9 12 11 10. Which statement is correct?
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or minheapify) operations. The array now looks like this: 16 14 15 10 12 27 28. How many heapify operations have been performed on root of heap?
Evaluate responses using AI:
OFF
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms is the fastest for sorting small arrays?
Quick sort
Shell sort
Insertion sort
Heap sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of selection sort over other sorting techniques?
It is faster than any other sorting technique
It is scalable
It works best for inputs which are already sorted
It requires no additional storage space
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Shell sort algorithm is an example of?
Bottom-up sorting
In-place sorting
Internal sorting
External sorting
Answer explanation
Shell sort algorithm is an example of internal sorting as it rearranges elements within the array being sorted.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithm does not use recursion?
bottom up merge sort
merge sort
heap sort
quick sort
Answer explanation
Heap sort is the sorting algorithm that does not use recursion. It is based on the heap data structure and does not require recursive calls.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quick sort uses which of the following method to implement sorting?
partitioning
selection
exchanging
merging
Answer explanation
Quick sort uses partitioning method to implement sorting by dividing the array into smaller sub-arrays based on a pivot element.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Economic Development Quiz
Quiz
•
University
20 questions
Diagnostic Kognitif KKA - Fase E
Quiz
•
10th Grade - University
15 questions
MS Word QUIZ
Quiz
•
University
15 questions
Falsos amigos
Quiz
•
University
20 questions
Quiz PREREQUIS TICE1
Quiz
•
University
15 questions
Object Oriented Programming
Quiz
•
University
21 questions
Bible Quiz on Jacob
Quiz
•
University
20 questions
Warehouse Management
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University