Consider the sorted array: {4, 9, 15, 22, 30, 41, 56, 63, 72, 88} You perform a binary search for 88. Which index will be checked second?

Sorting Algorithms Quiz

Quiz
•
Other
•
9th - 12th Grade
•
Medium
Mouna Boutemine
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4
5
6
7
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{4, 9, 15, 22, 30, 41, 56, 63, 72, 88}
which indexes are checked after the first pass in binary search for 88?
{9}
{8, 9}
{5, 6}
{2, 3, 4}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the sorted array: {-2, 8, 13, 22, 25, 25, 38, 42, 51, 103} You perform a binary search for 30. Which index will be checked last?
4
5
6
7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the array {42, 20, 8, 31, 19}. What does the array look like after the first pass of selection sort?
{8, 31, 42, 20, 42}
{ 8, 20, 42, 31, 19}
{8, 20, 42, 19, 31}
{8, 20, 19, 31, 42}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After the second pass of selection sort on {42, 20, 8, 31, 19}, what does the array look like?
{8, 19, 42, 31, 20}
{8, 19, 42, 20, 31}
{8,20, 42, 31, 19}
{8, 20, 19, 31, 42}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many passes does selection sort make for an array of 6 elements?
3
4
5
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the array {6, 2, 9, 3, 7}. What does the array look like after the first pass of insertion sort?
{2, 3, 6, 7, 9}
{6, 2, 3, 9, 7}
{6, 9, 2, 3, 7}
{2, 6, 9, 3, 7}
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Sorting Laundry

Quiz
•
KG - 12th Grade
15 questions
bài tập mảng tiết 1

Quiz
•
11th Grade
10 questions
Math Facts- Multiplication

Quiz
•
3rd Grade - University
13 questions
Intro to Arithmetic Sequences

Quiz
•
9th - 11th Grade
10 questions
Order of Operations

Quiz
•
7th - 12th Grade
15 questions
Programming basics

Quiz
•
12th Grade
10 questions
Soal Psikotes Logika Aritmatika

Quiz
•
9th - 12th Grade
13 questions
Microsoft Word 2016 Tables

Quiz
•
8th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Other
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade