
Linear and Binary Search Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Christine Ince
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In which of the following cases, linear search algorithm is used?
To search an element in an unordered list.
To search an element in a list of few elements.
Well suited for almost all types of list.
To search an element in unordered list consisting of few elements.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case scenario of searching array students?
All the searches take the same time
Item= Henry
Item=Annabelle
B or C
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best case scenario of searching array students?
Item= Andrew
Item= George
Item=Annabelle
All the searches take the same time
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A linear search algorithm takes two inputs: one is a ordered list and another one is unsorted list. Which of the two will be searched faster?
Sorted list
Unsorted list
Depends on the position of item to be searched
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Under which of the following conditions is a linear search complete?
Item is found
Item is not present in the list
A or B
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is the code inside while loop (position= position + 1) executed if item = 'G'?
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output if item = 'R'?
item found at position 4
item not found
item found at position 3
item found at position 5
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Searching and Evaluating the Internet

Quiz
•
9th - 11th Grade
20 questions
Lists in Python

Quiz
•
11th - 12th Grade
18 questions
Binary and Linear Search

Quiz
•
9th - 12th Grade
20 questions
Principles of Computer Science

Quiz
•
10th - 12th Grade
25 questions
Computer Science True/False Review

Quiz
•
9th - 12th Grade
16 questions
Systematic Approach to Problem Solving

Quiz
•
11th Grade
20 questions
ECS Post Test Review

Quiz
•
9th - 12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade