
5.4 Sorting Algorithms
Quiz
•
Computers
•
10th - 12th Grade
•
Hard

Nancy Read
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Similar Resources on Wayground
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
