searching quiz

searching quiz

University

10 Qs

quiz-placeholder

Similar activities

Search & Sorting

Search & Sorting

University

11 Qs

ADAweek0 Intl

ADAweek0 Intl

University

15 Qs

Quiz-1(Div-C)

Quiz-1(Div-C)

University

12 Qs

Quiz-AIML

Quiz-AIML

University

10 Qs

Linear and Binary Search

Linear and Binary Search

University

10 Qs

Data Structures Activity - 1

Data Structures Activity - 1

University

15 Qs

Algorithm Intro

Algorithm Intro

9th Grade - University

14 Qs

Data Structure

Data Structure

University

10 Qs

searching quiz

searching quiz

Assessment

Quiz

Computers

University

Hard

Created by

Asyraf Zulkifli

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

Which of the following is a search algorithm?

Sorting

Merging

Binary search

Hashing

2.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

Which of the following is a disadvantage of sequential search?

It is faster than binary search

It requires the data to be sorted

It is not suitable for large datasets

It always finds the target element

3.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

Which of the following is a requirement for binary search?

The data must be sorted

The data must be unsorted

The data must be in a linked list

The data must be in a hash table

4.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

What is the time complexity of binary search?

O(n)

O(log n)

O(n^2)

O(1)

5.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

Which of the following is a disadvantage of interpolation search?

It requires the data to be sorted

It is not suitable for large datasets

It always finds the target element

It is slower than binary search

6.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

When should you use a binary search?

When the data is sorted and in an array

When the data is unsorted and in an array

When the data is sorted and in a linked chain

When the data is unsorted and in a linked chain

7.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

What method must objects have to be used in a binary search?

equals

compareTo

contains

sort

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?