#111 Selection Sort

#111 Selection Sort

10th Grade

8 Qs

quiz-placeholder

Similar activities

Sort and Searching Algorithm Assessment

Sort and Searching Algorithm Assessment

10th Grade

12 Qs

Sorting Algorithm

Sorting Algorithm

9th - 12th Grade

10 Qs

Selection Sort

Selection Sort

9th - 12th Grade

6 Qs

CS Edexcel 1.2d Bubble and Merge Sort

CS Edexcel 1.2d Bubble and Merge Sort

9th - 10th Grade

14 Qs

Search Algorithms

Search Algorithms

9th - 11th Grade

12 Qs

Merge Sort

Merge Sort

10th Grade

11 Qs

Algorithm Complexity Quiz

Algorithm Complexity Quiz

9th - 12th Grade

10 Qs

CS Python Fundamentals 8.8 Lesson Quiz

CS Python Fundamentals 8.8 Lesson Quiz

9th - 12th Grade

10 Qs

#111 Selection Sort

#111 Selection Sort

Assessment

Interactive Video

Computers

10th Grade

Easy

Created by

Myra Deister

Used 3+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of sorting algorithm is Selection Sort described as?


 An out-of-place non-comparison algorithm


An in-place comparison sorting algorithm


A recursive divide-and-conquer algorithm

A distributed sorting algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the analogy used to explain Selection Sort, what objects represent the array elements?


Flashlights


Numbers


Closed boxes


Attic items


3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During each iteration of Selection Sort, what does the algorithm keep track of?


The maximum value


The average value


The median value


The minimum value


4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What action is performed at the end of each iteration in Selection Sort?

Splitting the array


Merging subarrays


Variable swapping


Reversing the order

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the efficiency of Selection Sort change as the data set size increases?


 It becomes more efficient


It becomes less efficient


Its efficiency remains constant


It becomes logarithmically more efficient


6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the outer loop of the Selection Sort implementation, what is the loop condition?


i < array.length


 i < array.length - 1


 i <= array.length


 i <= array.length - 1


7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What variable is used to keep track of the current minimum index in the implementation?


i

j

min

temp

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can the implementation be modified to sort the array in descending order instead of ascending order?


Change the outer loop condition


Swap the inner and outer loops


Change the greater than sign to a less than sign in the comparison


Reverse the array after sorting