
5.4 Sorting Algorithms
Authored by Nancy Read
Computers
10th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
For which of the problems would the bubble sort algorithm provide an appropriate solution. Choose all that apply.
Arranging a deck of cards from the lowest to the highest value cards.
Looking up a name in the phone book.
Sorting a stack of paper money into denominations -- i.e., $1, $5, $10 etc.
Sorting a basket of laundry into socks, shirts, shorts, and sheets.
Arranging books on a bookshelf by author's last name.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you are sorting the following list of numbers inascending order using bubble sort: [16, 5, -1, 4, 12, 17, 3, 10, 5, 9]. After the first pass through the numbers, what value would appear on the right of the list?
16
17
9
-1
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you are sorting the following list of words into alphabetical order using bubble sort: [apple, orange, banana, papaya, lemon, pumpkin, squash, tomato]. After the first pass through the list, what word would appear on the right of the list?
apple
squash
tomato
pumpkin
papaya
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you are sorting the following list of words in alphabetical order using bubble sort: [apple, banana, lemon, tomato, orange, squash, papaya, pumpkin]. Which of the following gives the correct order of the list after two passes through the list?
[apple, banana, lemon, tomato, orange, squash, papaya, pumpkin]
[apple, banana, lemon, squash, tomato, orange, papaya, pumpkin]
[apple, banana, lemon, orange, papaya, pumpkin, tomato, squash]
[apple, banana, lemon, orange, papaya, pumpkin, squash, tomato]
[apple, banana, lemon, orange, papaya, squash, tomato, pumpkin]
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following sorts are comparison sorts?
Radix
Bubble
Merge
Bucket
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Python Loops Quiz (for loop and while loop)
Quiz
•
10th Grade
10 questions
U1_AI-B_Formativo
Quiz
•
12th Grade
10 questions
Pear Deck and Progress Journals
Quiz
•
1st - 12th Grade
10 questions
CSP Unit 3 Assessment
Quiz
•
9th - 12th Grade
10 questions
Animasi 2D dan 3D Ulangan Harian BAB 1
Quiz
•
11th Grade
10 questions
8.3 Data Validation
Quiz
•
10th Grade
10 questions
Mastering Python String Techniques
Quiz
•
9th - 12th Grade
10 questions
Grade 10
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade