. What kind of data can be sorted by the Bubble, Selection, and Insertion sort algorithms?

21 can u do some

Quiz
•
jamal james
•
Computers
•
4th Grade
•
13 plays
•
Easy
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Other objects
Strings
All of these can be stored
Numbers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm relies on swapping pairs of side-by-side elements that are out of order
Selection Sort
Merge Sort
Insertion Sort
Bubble Sort
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm iterates through the array, starting one element to the right each time. On each iteration, it scans all elements to the right of the starting point for a smaller value, and swaps it with the starting position if found
Bubble sort
Selection Sort
insertion sort
merge sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm makes a single pass through the array, starting at the second element, and moving that element backward while the numbers to the left are greater?
merge sort
bubble selection
insertion sort
selection sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the Bubble Sort algorithm begins working on an array with "N" elements that is already completely sorted, how many loops will it need to complete over the entire array?
N/2
1
0
N
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the starting values below, what will the order become after the first complete pass through the array by the Bubble Sort algorithm?
5,1,4,8
1,4,5,8
1,5,8,4
8,1,4,5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one simple way to understand the efficiency of an algorithm?
Look at the size of the compiled .class file that contains the Java algorithm
Calculate the amount of memory that will be consumed during the algorithm
All of these will work equally well
Do a rough statement execution count, focusing on the innermost loop
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you change an algorithm that uses a simple 1D array to use an ArrayList instead?
Both of these steps should be taken
Replace simple array tasks like getting or setting values or finding the array length with the equivalent methods on the ArrayList
Neither of these steps should be taken
If the simple array contains primitive values, use the corresponding Java wrapper classes in the ArrayList
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
On each pass, when the Selection sort scans the array to the right of the starting position, what is it looking for?
Any of these could be true, depending on how the initial data is stored
The smallest number to the right
the largest number to the right
A number that matches the value at the starting point
10.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the starting values below, what will the order become after the first complete pass through the array by the Selection Sort algorithm? { 4, 1, 8, 5 }
1,4,8,5
1,8,4,5
4,1,5,8
5,1,4,8
Explore all questions with a free account
Similar Resources on Quizizz
20 questions
Programming Quiz

Quiz
•
1st - 10th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
15 questions
Speed Typing Test with Coding Vocabulary

Quiz
•
3rd - 8th Grade
20 questions
Quiz Dasar Fiber Optic

Quiz
•
1st Grade - University
20 questions
ALGORITHMS

Quiz
•
1st - 5th Grade
20 questions
Computer 5

Quiz
•
4th - 6th Grade
20 questions
SLR4 - Scheduling Algorithms

Quiz
•
4th Grade
20 questions
Code.org CSD Unit 3 Lessons 1-12

Quiz
•
3rd - 12th Grade
Popular Resources on Quizizz
17 questions
CAASPP Math Practice 3rd

Quiz
•
3rd Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
13 questions
Cinco de mayo

Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
10 questions
4th Grade Math CAASPP (part 1)

Quiz
•
4th Grade
45 questions
5th Grade CAASPP Math Review

Quiz
•
5th Grade
Discover more resources for Computers
20 questions
math review

Quiz
•
4th Grade
10 questions
4th Grade Math CAASPP (part 1)

Quiz
•
4th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
10 questions
Cinco de Mayo

Quiz
•
4th Grade
10 questions
Factors 4th grade

Quiz
•
4th Grade
16 questions
Academic Olympics: National Parks

Quiz
•
1st - 5th Grade
34 questions
FAST Math Review

Quiz
•
4th Grade
7 questions
Cinco de mayo 2022

Lesson
•
4th - 7th Grade