Which of the following is the correct intermediate steps for performing bubble sort on the
data set: 12, 56, 24, 38, 10
G10 CS Bubble Search
Quiz
•
Computers
•
12th Grade
•
Hard
Fritz Bansag
Used 87+ times
FREE Resource
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
10 questions
Python Loops
Quiz
•
9th - 12th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)
Quiz
•
10th - 12th Grade
15 questions
Iteration
Quiz
•
9th - 12th Grade
20 questions
Sorting Algorithms
Quiz
•
12th Grade
10 questions
Sorting Algorithms
Quiz
•
9th - 12th Grade
17 questions
Tracing Loops in Java
Quiz
•
12th Grade
10 questions
GCSE Computer Science 9-1: Sorting Algorithms
Quiz
•
10th Grade - University
20 questions
Python while loops
Quiz
•
12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University