Sorting Algorithms in Java

Sorting Algorithms in Java

11th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

R4.1 Quiz: Algorithms in Digital Analysis

R4.1 Quiz: Algorithms in Digital Analysis

12th Grade

20 Qs

Importance of algorithm

Importance of algorithm

12th Grade

20 Qs

Practice for AP Java Quiz #13 Sorting

Practice for AP Java Quiz #13 Sorting

9th - 12th Grade

20 Qs

8525 AQA GCSE  3.1.3 Searching and 3.1.4 Sorting Algorithms

8525 AQA GCSE 3.1.3 Searching and 3.1.4 Sorting Algorithms

10th - 11th Grade

18 Qs

AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

10th - 12th Grade

15 Qs

Quiz on Standard Algorithms

Quiz on Standard Algorithms

10th Grade - University

20 Qs

Arrays recap

Arrays recap

9th Grade - University

17 Qs

Recursion

Recursion

12th Grade

20 Qs

Sorting Algorithms in Java

Sorting Algorithms in Java

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

Nishat Khimani

Used 103+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm may make multiple swaps per pass?
Bubble Sort
Selection Sort
Insertion Sort

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm shifts elements instead of swapping elements if needed in each pass.
Bubble Sort
Selection Sort
Insertion Sort

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many passes will both the selection and insertion sorts make?
N
N-1
N+1
(N+1)/2

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following lists represent 3 passes of a sorting algorithm. Which algorithm is being used to sort the list?
 
4    5    9    6    2    7

4    5    6    2    7    9 
4    5    2    6    7    9
Bubble Sort
Selection Sort
Insertion Sort

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following lists represent 3 passes of a sorting algorithm. Which algorithm is being used to sort the list?
 
4    8    6    2    5    7 
4    8    6    2    5    7 
4    6    8    2    5    7
Bubble Sort
Selection Sort
Insertion Sort

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The following lists represent 3 passes of a sorting algorithm. Which algorithm is being used to sort the list?
 
4    8    3    9    2    6 
2    8    3    9    4    6
2    3    8    9    4    6
Bubble Sort
Selection Sort
Insertion Sort

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We are sorting the following list in ascending order:
 
1    4    2    9    3    8    5
 
What does the list look like after one pass of the bubble sort algorithm. 
1 2 4 3 8 5 9
1 4 2 5 3 8 9
4 2 9 3 8 5 1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?