
Sorting Algorithms: Merge and Quick
Authored by Simon Withey
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the merge sort algorithm?
To find the maximum element in an array
To sort an array by dividing it into halves and merging them in sorted order
To sort an array by selecting the smallest element and swapping it with the first element
To sort an array by repeatedly swapping adjacent elements
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the time complexity of the merge sort algorithm in the worst case?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the quick sort algorithm, what is the role of the pivot element?
To find the median of the array
To divide the array into two parts, one with elements less than the pivot and one with elements greater than the pivot
To swap with the first element of the array
To merge two sorted halves of the array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average time complexity of the quick sort algorithm?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a key difference between merge sort and quick sort?
Merge sort is an in-place sorting algorithm, while quick sort is not
Quick sort is an in-place sorting algorithm, while merge sort is not
Both are in-place sorting algorithms
Neither are in-place sorting algorithms
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best-case time complexity of the quick sort algorithm?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms is considered stable?
Quick sort
Merge sort
Bubble sort
Selection sort
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
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
11 questions
Access
Quiz
•
10th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
16 questions
Digital Icons
Quiz
•
12th Grade - University
10 questions
Review I-PM Ujikom Multimedia
Quiz
•
12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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