Search Header Logo

DAA Quiz 1

Authored by shilpi Aggarwal

Computers

University

Used 3+ times

DAA Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is linear searching used?

When the list has only a few elements

When performing a single search in an unordered list

Used all the time

When the list has only a few elements and When performing a single search in an unordered list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case for linear search?

O(nlogn)

O(logn)

O(n)

O(1)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

5

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Merge sort is preferred for arrays over linked lists.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement from the following.

branch and bound is not suitable where a greedy algorithm is not applicable

branch and bound divides a problem into at least 2 new restricted sub problems

backtracking divides a problem into at least 2 new restricted sub problems

branch and bound is more efficient than backtracking

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is false about the Kruskal’s algorithm?

It constructs MST by selecting edges in increasing order of their weights

It is a greedy algorithm

It uses union-find data structure

It can accept cycles in the MST

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose two activities A and B, having start and finish time as SA, FA and SB, FB respectively. Both the activities are said to be compatible, under which of the following condition?

SA = FB

SA > FB

SA >= FB or SB >= FA

SA >= FB and SB = FA

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?