Searching Algorithms

Searching Algorithms

University

26 Qs

quiz-placeholder

Similar activities

Machine Learning (Concept Learning)

Machine Learning (Concept Learning)

University

25 Qs

98-365 Study Guide P.5

98-365 Study Guide P.5

KG - Professional Development

25 Qs

3°D_SAV2_R2 3TECBE_ Algoritmos  Estruturas  Dados_17_36 QUIZIZZ

3°D_SAV2_R2 3TECBE_ Algoritmos Estruturas Dados_17_36 QUIZIZZ

11th Grade - University

21 Qs

HTTP and the Web

HTTP and the Web

University

21 Qs

PRA PSPM SC025 ( F01 KML )

PRA PSPM SC025 ( F01 KML )

University

24 Qs

Quiz on Air Pool 1 SH

Quiz on Air Pool 1 SH

University

21 Qs

2023-2024 CAD Prelim

2023-2024 CAD Prelim

University

22 Qs

Technical Quiz - INSIGHT 2K23

Technical Quiz - INSIGHT 2K23

University

23 Qs

Searching Algorithms

Searching Algorithms

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Yomna Elkholy

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Where is linear searching used?

When the list has only a few elements

When performing a single search in an unordered list

Used all the time

When the list has only a few elements and when performing a single search in an unordered list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best case complexity for linear search?

O(nlogn)

O(logn)

O(n)

O(1)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case complexity for linear search?

O(nlogn)

O(logn)

O(n)

O(1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a disadvantage of linear search?

Requires more space

Greater time complexities compared to other searching algorithms

Not easy to understand

Not easy to implement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an application of binary search?

To find the lower/upper bound in an ordered sequence

Searching for a word in a dictionary

Debugging

To search in unordered list

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are doneuntil the element is found using binary search?

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given an array arr = {45,77,89,90,94,99,100} and key = 100; What are the mid values(corresponding array elements) generated in the first and second iterations using binary search?

90 and 99

90 and 100

89 and 94

94 and 99

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?