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
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
11 questions
40. Algorithm - Algorithm Efficiency Quiz
Quiz
•
9th - 12th Grade
10 questions
Sorting Algorithms
Quiz
•
9th - 12th Grade
10 questions
Common Algorithms - Bitesize
Quiz
•
KG - 11th Grade
8 questions
CS Edexcel 1.2e Efficiency of Algorithms
Quiz
•
9th - 10th Grade
6 questions
Sorts and searches
Quiz
•
1st - 12th Grade
10 questions
G10 CS Binary Search
Quiz
•
12th Grade
10 questions
REMEDIAL
Quiz
•
10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University