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

Quiz No. 69

Quiz No. 69

KG - Professional Development

20 Qs

(23rd Feb, 2021) Daily Live Quiz Game No. 93, Paul-ish

(23rd Feb, 2021) Daily Live Quiz Game No. 93, Paul-ish

KG - Professional Development

15 Qs

joy

joy

9th Grade - Professional Development

12 Qs

20 dec 2023 SRMIST TRP CPS    AN

20 dec 2023 SRMIST TRP CPS AN

Professional Development

15 Qs

SASI -1st year -DAY5-FN (22.12.23)

SASI -1st year -DAY5-FN (22.12.23)

Professional Development

15 Qs

causative have get

causative have get

University - Professional Development

10 Qs

All About Nouns

All About Nouns

Professional Development

12 Qs

IPA - Session 6 - Review /b/ /p/ ;  /s/ /z/ /ʃ/

IPA - Session 6 - Review /b/ /p/ ; /s/ /z/ /ʃ/

KG - 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

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?