Java: Chapter 20 Exam
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Sundi Tiller
Used 9+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of data can be sorted by the Bubble, Selection, and Insertion sort algorithms?
All of these can be sorted
Numbers
Strings
Other objects
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
Insertion sort
Merge 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?
Bubble sort
Selection sort
Insertion sort
Merge 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?
1
0
N
N / 2
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? { 4, 1, 8, 5 }
5, 1, 4, 8
1, 5, 8, 4
1, 4, 5, 8
8, 1, 4, 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one simple way to understand the efficiency of an algorithm?
All of these will work equally well
Do a rough statement execution count, focusing on the innermost loop
Calculate the amount of memory that will be consumed during the algorithm
Look at the size of the compiled .class file that contains the Java algorithm
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
20 questions
UNIT 3- DATA COMMUNICATION
Quiz
•
12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
17 questions
Traffic Light Project Quiz
Quiz
•
9th Grade
16 questions
Kelas 8 - Bagian Microsoft Excel
Quiz
•
8th Grade - University
19 questions
Hardware and Components
Quiz
•
5th - 11th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
