Search Header Logo

Linear and Binary Search Quiz

Authored by Christine Ince

Computers

11th Grade

Used 1+ times

Linear and Binary Search Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?