RMP MCA-22.01.24-searching and sorting-FN

RMP MCA-22.01.24-searching and sorting-FN

Professional Development

15 Qs

quiz-placeholder

Similar activities

REVIEW (STRUCTURE)

REVIEW (STRUCTURE)

Professional Development

13 Qs

Media Vocab

Media Vocab

Professional Development

10 Qs

房屋與修繕 Day 22 Pt. 2

房屋與修繕 Day 22 Pt. 2

10th Grade - Professional Development

20 Qs

表演與展覽 Day 20 Pt. 1

表演與展覽 Day 20 Pt. 1

10th Grade - Professional Development

20 Qs

餐飲與住宿 Day 18 Pt. 2

餐飲與住宿 Day 18 Pt. 2

10th Grade - Professional Development

20 Qs

VRESEC-24.01.2024-AN-1-3

VRESEC-24.01.2024-AN-1-3

Professional Development

15 Qs

Cycle 4 - Vocabulary Activity Session 1

Cycle 4 - Vocabulary Activity Session 1

Professional Development

10 Qs

maths

maths

3rd Grade - Professional Development

11 Qs

RMP MCA-22.01.24-searching and sorting-FN

RMP MCA-22.01.24-searching and sorting-FN

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is correct recurrence for worst case of Binary Search?
T(n) = 2T(n/2) + O(1) and T(1) = T(0) = O(1)
T(n) = T(n-1) + O(1) and T(1) = T(0) = O(1)
T(n) = T(n/2) + O(1) and T(1) = T(0) = O(1)
T(n) = T(n-2) + O(1) and T(1) = T(0) = O(1)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of binary search with iteration?
O(nlogn)
O(logn)
O(n)
O(n2)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are done until the element is found using Binary Search?
1
3
4
2

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given an input arr = {2,5,7,99,899}; key = 899; What is the level of recursion using Binary Search?
5
2
3
4

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the worst case complexity of binary search using recursion?
O(n log n)
O(log n)
O(n)
O(n2)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a limitation of binary search algorithm?
must use a sorted array
requirement of sorted array is expensive when a lot of insertion and deletions are needed
there must be a mechanism to access middle element directly
binary search algorithm is not efficient when the data elements are more than 1500

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Average case occurs in linear search algorithm _____________
when item is somewhere in the middle of the array
when item is not the array at all
when item is the last element in the array
Item is the last element in the array or item is not there at all

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?