The following is pseudocode for which algorithm?
for each element in array
if element you’re looking for
return true
else
return false
Linear v Binary Search Algorithms
Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Geoffrey Clarion
Used 93+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following is pseudocode for which algorithm?
for each element in array
if element you’re looking for
return true
else
return false
linear
binary
bubble
merge
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following is pseudocode for which algorithm?
Repeat, starting at the first element:
If the first element is what you’re looking for (the target), stop.
Otherwise, move to the next element.
linear
binary
bubble
merge
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following is pseudocode for which algorithm?
look at middle of array
if element you’re looking for
return true
else if element is to left
search left half of array
else if element is to right
search right half of array
else
return false
linear
binary
bubble
merge
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which algorithm must start with an ordered list/array?
linear
binary
bubble
merge
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which search algorithm does this represent?
linear
binary
bubble
merge
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"Look for lost item" is a(n)
process
decision
terminator
data item
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In computer science, an algorithm must be
Finite
Precise
Well-defined
Unambiguous
8.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Pseudo-code is written for
computer to execute
humans to read
9.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which algorithm is more likely to run longer in a search of a list of names?
Linear
Binary
10 questions
CS Python Fundamentals 8.8 Lesson Quiz
Quiz
•
9th - 12th Grade
10 questions
Sorting and searching algorithms
Quiz
•
12th Grade
11 questions
GCSE Computer Science Paper 2: Topic 1
Quiz
•
10th Grade
14 questions
CS Edexcel 1.2d Bubble and Merge Sort
Quiz
•
9th - 10th Grade
12 questions
Search Algorithms
Quiz
•
9th - 11th Grade
12 questions
Sort and Searching Algorithm Assessment
Quiz
•
10th Grade
12 questions
Big O Notation Revision
Quiz
•
12th Grade
10 questions
Algorithm Complexity Quiz
Quiz
•
9th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig
Quiz
•
11th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025
Quiz
•
9th - 12th Grade
10 questions
GPA Lesson
Lesson
•
9th - 12th Grade