
Searching & Sorting
Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Used 11+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Using a binary search why will the number 9 never be found in the following list:
11, -8, 13, 9, 7, 3
It does not work on numbers
It only works on letters
The list is not sorted
The binary search does not work if there is a negative number
Binary search requires a minimum of 30 data points
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which type of sort algorithm is this?
Insertion
Merge
Bubble
Selection
Binary
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
After 2 passes - which algorithm was used:
Original : [63, 65, 78, 42, 64, 18]
After 4 passes: [42, 63, 65, 78, 64, 18]
Bubble Sort
Insertion Sort
Merge Sort
Linear Search
Binary Search
4.
MULTIPLE CHOICE QUESTION
2 mins • 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,2}?
{3,7,8,5,2}, {3,7,8,5,2}, {3,5,7,8,2}, {2,3,5,7,8}
{2,3,8,5,7}, {2,3,8,5,7}, {2,3,5,8,7}, {2,3,5,7,8}
{3,7,8,5,2}, {3,5,7,8,2}, {2,3,5,7,8}
{2,3,8,5,7}, {2,3,5,8,7}, {2,3,5,7,8}
{2,7,3,8,5}, {2,3,7,8,5}, {2,3,5,7,8}
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is printed when the following main method is executed?
-1
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
2 mins • 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}
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following could be used to replace // missing code // in the code so that the method always sorts the array elem in ascending order?
int k = j - 1; k >= 0; k--
int k = j + 1; k < elem.length; k++
int k = j; k < elem.length; k++
int k = j; k >= 0; k--
int k = j - 1; k > 0; k--
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
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
10 questions
Интерфейс мобильных приложений
Quiz
•
10th - 11th Grade
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
9 questions
Test Excel
Quiz
•
10th - 12th Grade
15 questions
网络与通讯
Quiz
•
12th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
15 questions
Excel
Quiz
•
12th 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
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
