
Sorting
Quiz
•
others
•
1st Grade
•
Practice Problem
•
Medium
Velsherd Ana
Used 4+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have the following array:
[9,1,3,5,8,4]
What would the array look like after the first three iterations of the selection sort algorithm?
[1,3,4,5,8,9]
[1,9,3,5,8,4]
[1,3,9,5,8,4]
[1,3,9,4,8,5]
[1,3,5,9,4,8]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have the following array:
[9,1,3,5,8,4]
What would the array look like after the first three iterations of the insertion sort algorithm (starting from the second element)?
[1,9,3,5,8,4]
[1,3,9,5,8,4]
[1,3,5,8,9,4]
[1,3,5,9,8,4]
[1,3,4,5,8,9]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have the following array:
[9,1,3,5,8,4]
What would the array look like after the first five (actual) swaps of the bubble sort algorithm?
[1,9,3,5,8,4]
[1,3,5,9,8,4]
[1,3,5,8,4,9]
[1,3,9,5,8,4]
[1,3,5,4,8,9]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the time complexity of using merge sort to order an array with a length of n?
O(n^2)
O(n)
O(n log n)
O(n^3/2)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you want to use merge sort to order an array with a length of . As you already know, one of the phases of merge sort is the merging of two previously sorted subarrays. How would you estimate the number of "merging" steps in which a particular element participates?
O(1)
O(n)
O(log n)
O(n log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of using the heap sort algorithm to order an array with a length of n ?
O(n)
O(n^2)
It depends on whether you need to order the elements in ascending or descending order.
O(n log n)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have a heap with minimum priority. What is the time complexity of removing the minimum element from it?
O(1)
O(log n)
O(n)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
21 questions
FRIDAY: Language Quiz
Quiz
•
1st - 5th Grade
23 questions
Diagnostic Exam - English 2
Quiz
•
1st - 5th Grade
17 questions
Atividade de Revisão - 1º BImestre
Quiz
•
1st Grade
20 questions
Plumbing Science Quiz 1
Quiz
•
1st Grade
15 questions
EU 4 U4 Lesson 4
Quiz
•
1st - 5th Grade
20 questions
Modern ignition systems (DIS)
Quiz
•
1st - 5th Grade
14 questions
SS Weeks 27 & 28
Quiz
•
1st - 5th Grade
20 questions
Exercise 2
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for others
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
14 questions
States of Matter
Lesson
•
KG - 3rd Grade
13 questions
Veterans' Day
Quiz
•
1st - 3rd Grade
20 questions
Multiplication Mastery Checkpoint
Quiz
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
16 questions
natural resources
Quiz
•
1st Grade
20 questions
Identify Coins and Coin Value
Quiz
•
1st Grade
24 questions
Addition
Quiz
•
1st Grade
