searching quiz

searching quiz

University

10 Qs

quiz-placeholder

Similar activities

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

University - Professional Development

10 Qs

Final Practice

Final Practice

University

7 Qs

7.5 Standard Methods of Solution Cambridge IGCSE 0478

7.5 Standard Methods of Solution Cambridge IGCSE 0478

10th Grade - University

10 Qs

C++ Searches and Sorts

C++ Searches and Sorts

University - Professional Development

15 Qs

Sort

Sort

University - Professional Development

15 Qs

AP CSA Binary Search and Merge Sort

AP CSA Binary Search and Merge Sort

University

11 Qs

Data Struct: Quiz 3

Data Struct: Quiz 3

University

10 Qs

Common Algorithms Quiz

Common Algorithms Quiz

KG - Professional Development

11 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?