Top 150+ Solved Design and Analysis of Algorithms MCQ Questions Answer

From 1 to 15 of 152

Q. Recursion is similar to which of the following?

a. switch case

b. loop

c. if-else

d. if elif else

  • b. loop

Q. Recursion is a method in which the solution of a problem depends on

a. larger instances of different problems

b. larger instances of the same problem

c. smaller instances of the same problem

d. smaller instances of different problems

  • c. smaller instances of the same problem

Q. Which of the following problems can’t be solved using recursion?

a. factorial of a number

b. nth fibonacci number

c. length of a string

d. problems without base case

  • d. problems without base case

Q. What is the space complexity of Kadane’s algorithm?

a. o(1)

b. o(n)

c. o(n2)

d. none of the mentioned

  • a. o(1)

Q. The dynamic programming implementation of the maximum sum rectangle problem uses which of the following algorithm?

a. hirschberg’s algorithm

b. needleman-wunsch algorithm

c. kadane’s algorithm

d. wagner fischer algorithm

  • c. kadane’s algorithm

Q. In which of the following cases, it is not possible to have two subsets with equal sum?

a. when the number of elements is odd

b. when the number of elements is even

c. when the sum of elements is odd

d. when the sum of elements is even

  • c. when the sum of elements is odd

Q. Find the maximum flow from the following graph.

a. 22

b. 17

c. 15

d. 20

  • c. 15

Q. A simple acyclic path between source and sink which pass through only positive weighted edges is called?

a. augmenting path

b. critical path

c. residual path

d. maximum path

  • a. augmenting path

Q. In a bipartite graph G=(V,U,E), the matching of a free vertex in V to a free vertex in U is called?

a. bipartite matching

b. cardinality matching

c. augmenting

d. weight matching

  • c. augmenting

Q. Which of the following is also known as LCM?

a. lowest common divisor

b. least common multiple

c. lowest common measure

d. highest common multiple

  • a. lowest common divisor

Q. What is the LCM of two coprime numbers?

a. 1

b. 0

c. addition of two coprime numbers

d. multiplication of two coprime numbers

  • d. multiplication of two coprime numbers
Subscribe Now

Get All Updates & News