
Sorting in Java
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Ryan Goulet
Used 69+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Under what condition will a selection sort execute faster?
If the data is already sorted in ascending order
If the data is already sorted in descending order
It will always take the same time
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sort should be the fastest most of the time?
selection sort
insertion sort
mergesort
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the code return from mystery([90, -30, 50], 50)
-1
50
1
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly shows the iterations of an ascending (from left to right) insertion sort on an array with the following elements: {7,3,8,5,4}?
{3,7,8,5,4},{3,7,8,5,4},{3,5,7,8,4},{3,4,5,7,8}
{3,4,8,5,7},{3,4,5,7,8}
{3,7,8,5,4}{3,5,7,8,4},{3,4,5,7,8}
{4,7,3,8,5},{4,3,7,8,5},{3,4,5,7,8}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly shows the iterations of an ascending (from left to right) selection sort on an array with the following elements: {10, 6, 3, 2, 8}?
{6,10,3,2,8}, {3,6,10,2,8}, {2,3,6,10,8}, {2,3,6,8,10}
{6,10,3,2,8}, {3,6,10,2,8}, {2,3,6,8,10}
{2,6,3,10,8}, {2,3,6,10,8}, {2,3,6,8,10}
{2,6,3,10,8}, {2,3,6,10,8}, {2,3,6,10,8}, {2,3,6,8,10}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Answer correctly
["$ bills", "120 dogs", "Tennis", "alien", "ma", "manners"]
[ "120 dogs", "$ bills",, "Tennis", "alien", "ma", "manners"]
["$ bills", "120 dogs", "alien", "ma", "manners", "Tennis"]
[ "120 dogs", "$ bills", "alien", "ma", "manners", "Tennis"]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
b, p, D, E, y, S
D, E, b, p, y, S
E, b, p, E, y, S
b, p, y, E, D, S
E, E, S, b, p, y
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
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
12 questions
Examen final algoritmo
Quiz
•
11th Grade
10 questions
Inspire - AI Trivia
Quiz
•
11th Grade
14 questions
Archivos Digitales
Quiz
•
9th Grade - University
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
10 questions
Empowerment Technologies Quiz 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
