AL_lecture_search_algorithm

AL_lecture_search_algorithm

1st - 3rd Grade

13 Qs

quiz-placeholder

Similar activities

Al_prac_1

Al_prac_1

1st - 3rd Grade

10 Qs

SEARCH DAN SORT

SEARCH DAN SORT

1st Grade

14 Qs

ASK Tingkatan 3

ASK Tingkatan 3

1st - 5th Grade

10 Qs

kuiz ask pkp3

kuiz ask pkp3

3rd Grade

17 Qs

Kuiz PKP ASK T3

Kuiz PKP ASK T3

3rd Grade

10 Qs

AL_pract_search

AL_pract_search

1st Grade

16 Qs

6-sinf Dasturlashni o'rganish

6-sinf Dasturlashni o'rganish

1st - 5th Grade

14 Qs

AL_TQ(Regression)

AL_TQ(Regression)

1st Grade - University

14 Qs

AL_lecture_search_algorithm

AL_lecture_search_algorithm

Assessment

Quiz

Computers

1st - 3rd Grade

Medium

Created by

Dilmurod Tuxtanazarov

Used 15+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binarysearch algoritmi qanday arraydan qidiradi

tartiblangan

Tartiblanmagan

2.

MULTIPLE CHOICE QUESTION

30 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

30 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

30 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

What is the disadvantage of binary search algorithm?​

It takes longer time when compared to linear search algorithm​

It works only on sorted lists​

It is very complex to understand​

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case runtime of lookUp/get in a binary search tree?

O(n)

O(logn)

O(1)

O(n2)

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?