Design and Analysis of Algorithms MCQs | Page - 3

Dear candidates you will find MCQ questions of Design and Analysis of Algorithms here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 52.61K Points
Coach

Q. Is Coppersmith-Winograd algorithm better than Strassen’s algorithm in terms of time complexity?

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Which of the following statement is true about stack?

(A) pop operation removes the top most element
(B) pop operation removes the bottom most element
(C) push operation adds new element at the bottom
(D) push operation removes the top most element
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the space complexity of program to reverse stack recursively?

(A) o(1)
(B) o(log n)
(C) o(n)
(D) o(n log n)
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Stack can be reversed without using extra space by                            

(A) using recursion
(B) using linked list to implement stack
(C) using an extra stack
(D) it is not possible
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Which of the following is considered as the top of the stack in the linked list implementation of the stack?

(A) last node
(B) first node
(C) random node
(D) middle node
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Tower of hanoi problem can be solved iteratively.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Minimum time required to solve tower of hanoi puzzle with 4 disks assuming one move takes 2 seconds, will be                      

(A) 15 seconds
(B) 30 seconds
(C) 16 seconds
(D) 32 seconds
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Master’s theorem is used for?

(A) solving recurrences
(B) solving iterative relations
(C) analysing loops
(D) calculating the time complexity of any code
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. How many cases are there under Master’s theorem?

(A) 2
(B) 3
(C) 4
(D) 5
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the result of the recurrences which fall under second case of Master’s theorem (let the recurrence be given by T(n)=aT(n/b)+f(n) and f(n)=nc?

(A) none of the below
(B) t(n) = o(nc log n)
(C) t(n) = o(f(n))
(D) t(n) = o(n2)
View Answer Discuss Share

Jump to

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image