Search Header Logo

searching quiz

Authored by Asyraf Zulkifli

Computers

University

Used 3+ times

searching quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?