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
Create a free account and access millions of resources
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
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
15 questions
Q1 W1 M1 PRE-TEST
Quiz
•
10th Grade
20 questions
Database&Relation
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
16 questions
Input Device
Quiz
•
9th - 10th Grade
16 questions
Conditions
Quiz
•
8th - 10th Grade
20 questions
مراجعة-علوم الحاسب-نهاية ف2
Quiz
•
11th Grade
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
