Search Header Logo

DAA 4th Sem

Authored by Heena Arora

Engineering

University

Used 1+ times

DAA 4th Sem
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The best-case complexity of an algorithm refers to:

The time complexity under the least favorable conditions

The time complexity under the most favorable conditions

The average time complexity

The time complexity for recursive algorithms

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a method used for solving recurrence relations?

Substitution method

Recursion tree method

Master's theorem

Divide and conquer method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Big-O notation, the function O(n^2) represents:

Constant time complexity

Linear time complexity

Quadratic time complexity

Exponential time complexity

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary characteristic of the Greedy algorithm?

It always makes the optimal choice at every step

It tries to explore all possibilities before making a choice

It uses dynamic programming

It avoids recursion

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a common application of Dynamic Programming?

Sorting an array of integers

Solving problems like the Knapsack Problem

Searching a tree

Implementing graph algorithms

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithmic technique is used in the Traveling Salesman Problem (TSP) to find the optimal solution by exploring all possible solutions?

Dynamic Programming

Brute-Force

Greedy

Backtracking

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Depth First Search (DFS) is most useful for:

Finding the shortest path between two nodes in a graph

Traversing a tree or graph by visiting each node once

Sorting elements in a graph

Searching in a binary search tree

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?