Linear and Binary Search Quiz

Linear and Binary Search Quiz

11th Grade

20 Qs

quiz-placeholder

Similar activities

Big O Notation Quiz

Big O Notation Quiz

11th - 12th Grade

21 Qs

Searching Algorithms

Searching Algorithms

9th - 11th Grade

16 Qs

Algorithms

Algorithms

10th - 11th Grade

20 Qs

AP Sort and Search

AP Sort and Search

9th - 12th Grade

21 Qs

Common Algorithms

Common Algorithms

9th - 12th Grade

25 Qs

Loops, Lists, Traversals test

Loops, Lists, Traversals test

11th Grade

20 Qs

Codehs Unit 6

Codehs Unit 6

9th - 12th Grade

15 Qs

Code.org Unit 10 CSP

Code.org Unit 10 CSP

9th - 12th Grade

15 Qs

Linear and Binary Search Quiz

Linear and Binary Search Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

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?