Binary search​

Binary search​

11th Grade

9 Qs

quiz-placeholder

Similar activities

Penilaian Pengetahuan Komputer Akuntansi XII - 1

Penilaian Pengetahuan Komputer Akuntansi XII - 1

11th - 12th Grade

10 Qs

The year 2021

The year 2021

7th Grade - University

11 Qs

General knowledge

General knowledge

3rd Grade - Professional Development

13 Qs

QUIZ Pembekalan Awal Duta Statistik

QUIZ Pembekalan Awal Duta Statistik

7th Grade - University

10 Qs

Cleansing Services (CLS)

Cleansing Services (CLS)

KG - Professional Development

10 Qs

Value Added TAx

Value Added TAx

10th - 11th Grade

13 Qs

Families

Families

9th - 12th Grade

10 Qs

Binary search​

Binary search​

Assessment

Quiz

Other

11th Grade

Practice Problem

Hard

Created by

Yrysjan Shakhimova

Used 385+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In which of the following cases, binary search algorithm is used?​

To search an element in an unordered list.​

To search an element in a list of few elements.

To search an element in any ordered list with large number of elements.​

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How does a binary search algorithm works?​

Dividing the list into halves until the item is matched with one in the list.​

Starts with the first element and checks the next element consecutively until a match is found.

​ None of the above​

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?​

32

16

8

5

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

An array with 32 elements is input to a linear search algorithm. How many maximum number of comparisons are performed?​

32

16

8

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the midpoint of the list calculated?​

midpoint= round ((first_element+last_element)/2)​

midpoint=(lower_bound+upper_bound)/2​

midpoint= round ((lower_bound+upper_bound)/2)​

midpoint= round ((lower_bound+upper_bound))

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Under which of the following conditions, binary search algorithm terminates?​

Item_found=true​

lower_bound <= upper_bound​

lower_bound > upper_bound

​ A or C

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Complete the sentence: The lower half of the list is discarded if the value at midpoint is …………………….. item searched.​

less than​

greater than​

equal to

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?