Design and Analysis of Algorithms MCQs | Page - 2

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. Which of the following methods can be used to find the sum of digits of a number?

(A) recursion
(B) iteration
(C) greedy algorithm
(D) both recursion and iteration
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What can be the maximum sum of digits for a 4 digit number?

(A) 1
(B) 16
(C) 36
(D) 26
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What can be the minimum sum of digits for a 4 digit number?

(A) 0
(B) 1
(C) 16
(D) 36
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the time complexity of the above code used to reverse a string?

(A) copies a string to another string
(B) compares two strings
(C) reverses a string
(D) checks if a string is a palindrome
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Which of the following is the binary representation of 100?

(A) 1010010
(B) 1110000
(C) 1100100
(D) 1010101
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the time complexity of the above recursive implementation used to reverse a string?

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

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the time complexity of matrix multiplied recursively by Divide and Conquer Method?

(A) o(n)
(B) o(n2)
(C) o(n3)
(D) o(n!)
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. How many recursive calls are there in Recursive matrix multiplication by Strassen’s Method?

(A) 5
(B) 7
(C) 8
(D) 4
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Matrix A is of order 3*4 and Matrix B is of order 4*5. How many elements will be there in a matrix A*B multiplied recursively.

(A) 12
(B) 15
(C) 16
(D) 20
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. If Matrix X is of order A*B and Matrix Y is of order C*D, and B=C then the order of the Matrix X*Y is A*D?

(A) true
(B) false
(C) ---
(D) ---
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