DAA Quiz 1

DAA Quiz 1

University

10 Qs

quiz-placeholder

Similar activities

Exo-Automatos

Exo-Automatos

University

10 Qs

Algorithms

Algorithms

University

12 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 Qs

OS QUIZ

OS QUIZ

University

15 Qs

Intro - Comp Thinking, Programming

Intro - Comp Thinking, Programming

University

12 Qs

Pemograman 1 (Week 3)

Pemograman 1 (Week 3)

University

10 Qs

Fundamentals of Algorithms - Unit I - Test 2

Fundamentals of Algorithms - Unit I - Test 2

University

10 Qs

Pop Quiz- Abstraction, Algorithm

Pop Quiz- Abstraction, Algorithm

University

14 Qs

DAA Quiz 1

DAA Quiz 1

Assessment

Quiz

Computers

University

Hard

Created by

shilpi Aggarwal

Used 3+ times

FREE Resource

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

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?