Linear and Binary Search

Linear and Binary Search

20 Qs

quiz-placeholder

Similar activities

Measures of Position for Ungrouped Data Quiz

Measures of Position for Ungrouped Data Quiz

10th Grade - University

20 Qs

AP Computer Science Principles: Light and Color Assessment

AP Computer Science Principles: Light and Color Assessment

KG - University

22 Qs

Possessive Nouns and Pronouns M7W2D2

Possessive Nouns and Pronouns M7W2D2

4th Grade

20 Qs

Unit#9 (Cyber) REVIEW FOR Test (  )

Unit#9 (Cyber) REVIEW FOR Test ( )

10th Grade - University

21 Qs

 Asia Test

Asia Test

9th Grade

15 Qs

BoR Practice Set 1

BoR Practice Set 1

9th - 12th Grade

22 Qs

Financial Literacy Exam Review

Financial Literacy Exam Review

6th - 8th Grade

20 Qs

Types of ADTs

Types of ADTs

KG - University

20 Qs

Linear and Binary Search

Linear and Binary Search

Assessment

Quiz

others

Hard

Created by

Krishna Sekhar

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linear search?
A method of searching a list where you start at the beginning and check each item until you find what you're looking for or return a message saying not found.
A method of searching a list where you divide the list into two halves and repeatedly narrow down the search range until the item is found or the search range is empty.
A method of sorting data in alphabetical or numerical order.
A notation used to assess the complexity and performance of an algorithm.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary search?
A method of searching a list where you start at the beginning and check each item until you find what you're looking for or return a message saying not found.
A method of searching a list where you divide the list into two halves and repeatedly narrow down the search range until the item is found or the search range is empty.
A method of sorting data in alphabetical or numerical order.
A notation used to assess the complexity and performance of an algorithm.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is bubble sort?
A method of searching a list where you start at the beginning and check each item until you find what you're looking for or return a message saying not found.
A method of searching a list where you divide the list into two halves and repeatedly narrow down the search range until the item is found or the search range is empty.
A method of sorting data in alphabetical or numerical order.
A notation used to assess the complexity and performance of an algorithm.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Big O notation?
A method of searching a list where you start at the beginning and check each item until you find what you're looking for or return a message saying not found.
A method of searching a list where you divide the list into two halves and repeatedly narrow down the search range until the item is found or the search range is empty.
A method of sorting data in alphabetical or numerical order.
A notation used to assess the complexity and performance of an algorithm.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search method is more effective for large lists?
Linear search
Binary search

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between linear and binary searches?
Linear search works on unsorted lists, while binary search requires a sorted list.
Linear search requires more comparisons than binary search.
Binary search works on unsorted lists, while linear search requires a sorted list.
Binary search requires more comparisons than linear search.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search method is more efficient for finding an item in a sorted list?
Linear search
Binary search

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?