
Sorting Algorithms: Merge and Quick

Quiz
•
Computers
•
12th Grade
•
Hard
Simon Withey
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
IT English Essentials: Unit 13 - Quiz 1

Quiz
•
12th Grade
12 questions
Bubble Sorts

Quiz
•
12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
17 questions
Arrays recap

Quiz
•
9th Grade - University
11 questions
DASAR KOMPUTER - FAOZAN AFANDI

Quiz
•
12th Grade
20 questions
Recursion

Quiz
•
12th Grade
15 questions
Searching and Sorting Algorithms Quiz

Quiz
•
12th Grade
10 questions
Sorting Algorithms Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade