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

Gamma-AN-01.05.2024

Gamma-AN-01.05.2024

Professional Development

15 Qs

coding skills (ISCP 02) Tuesday slot1 (9am - 11:00am) CSE A & C

coding skills (ISCP 02) Tuesday slot1 (9am - 11:00am) CSE A & C

Professional Development

20 Qs

coding skills(ISCP 02) Tuesday slot3 (2.00pm - 4:00pm) CSE X & Z

coding skills(ISCP 02) Tuesday slot3 (2.00pm - 4:00pm) CSE X & Z

Professional Development

20 Qs

KTR-CTECH-AN -18.04.2024

KTR-CTECH-AN -18.04.2024

Professional Development

15 Qs

DSBS-AN-31.01.2024

DSBS-AN-31.01.2024

Professional Development

15 Qs

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G

Professional Development

20 Qs

SASI -1st year -DAY4-FN (21.12.23)

SASI -1st year -DAY4-FN (21.12.23)

Professional Development

15 Qs

091223    SASI AN

091223 SASI AN

Professional Development

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