G10 CS Bubble Search

G10 CS Bubble Search

12th Grade

15 Qs

quiz-placeholder

Similar activities

TEST Bài 1_K12_Sách KNTT

TEST Bài 1_K12_Sách KNTT

12th Grade

18 Qs

Aplikom

Aplikom

1st Grade - University

20 Qs

PPG 25 Feb 2022

PPG 25 Feb 2022

12th Grade

19 Qs

Direcciones IP v4

Direcciones IP v4

10th - 12th Grade

13 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

quizz tkinter

quizz tkinter

11th Grade - University

20 Qs

ความรู้เบื้องต้นการเขียนโปรแกรมภาษาซี

ความรู้เบื้องต้นการเขียนโปรแกรมภาษาซี

12th Grade

20 Qs

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

9th Grade - University

10 Qs

G10 CS Bubble Search

G10 CS Bubble Search

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Fritz Bansag

Used 87+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct intermediate steps for performing bubble sort on the

data set: 12, 56, 24, 38, 10

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56;

12, 10, 24, 38, 56 &

10, 12, 24, 38, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56;

12, 10, 24, 38, 56;

10, 12, 24, 38, 56 &

10, 12, 24, 38, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

10, 12, 24, 38, 56 &

10, 12, 24, 38, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56; &

10, 12, 24, 38, 56

None of the choices

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct intermediate steps for performing bubble sort on the

data set: 12, 56, 24, 38, 10

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56;

12, 10, 24, 38, 56 &

10, 12, 24, 38, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56;

12, 10, 24, 38, 56;

24, 12, 24, 38, 56 &

38, 10, 12, 24, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

10, 12, 24, 38, 56 &

10, 12, 24, 38, 56

12, 24, 38, 10, 56;

12, 24, 10, 38, 56;

12, 24, 10, 38, 56; &

10, 12, 24, 38, 56

None of the choices

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many loops do we need for bubble sort algorithm?

1 WHILE loop

1 FOR loop

1 WHILE loop with a nested FOR loop.

Any two separate loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operation is performed using FOR loop in bubble sort algorithm?

Elements are compared with its next element.

check swapflag

Elements are compared with its next element and swapped if necessary

Any two separate loops

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition is checked exactly at WHILE loop in bubble sort algorithm?

Checks swapflag

Checks whether current element is the last element

Checks whether swapping is required or not

None of the choices

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition is checked exactly at WHILE loop in bubble sort algorithm?

Checks if position has incremented next

Checks whether current element is the last element

Checks whether swapping is required or not

None of the choices

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Under which of the following condition, does while loop in bubble sort algorithm ends?

swapflag=true

in the nested for loop

swapflag=false

in the nested for loop

position = length_of_list-2

None of the above

Create a free account and access millions of resources

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?