Sorting Algorithms in Java

Sorting Algorithms in Java

11th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

PPG 25 Feb 2022

PPG 25 Feb 2022

12th Grade

19 Qs

Text and Image representation

Text and Image representation

11th Grade

22 Qs

Warstwa transportowa

Warstwa transportowa

12th Grade

17 Qs

Ôn tập học kì 1-CN7

Ôn tập học kì 1-CN7

1st - 12th Grade

15 Qs

BÀI 7 - TIN 12

BÀI 7 - TIN 12

12th Grade

16 Qs

TIN 12_BÀI 11

TIN 12_BÀI 11

12th Grade

20 Qs

TEST Bài 1_K12_Sách KNTT

TEST Bài 1_K12_Sách KNTT

12th Grade

18 Qs

Quis Grade 5

Quis Grade 5

9th - 12th Grade

15 Qs

Sorting Algorithms in Java

Sorting Algorithms in Java

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Medium

Created by

Nishat Khimani

Used 104+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?