logo
Algorithm - Quiz(MCQ)
A)
A problem
B)
A real life mathematical problem
C)
A procedure for solving a problem
D)
None of the above

Correct Answer : Option (C) :   A procedure for solving a problem

A)
Network lock
B)
Sorting
C)
All pair shortest path
D)
Single source shortest path

Correct Answer : Option (D) :   Single source shortest path


Explanation : Dijkstra’s algorithm is used to solve single source shortest path problems.

A)
Brute Force
B)
Divide and Conquer
C)
GreedyAlgorithm
D)
None of the above

Correct Answer : Option (A) :   Divide and Conquer

A)
Bubble
B)
Merge
C)
Insertion
D)
None of the above

Correct Answer : Option (B) :   Merge

5 .
An unordered list contains n distinct elements. 

The number of comparisons to find an element in this list that is neither maximum nor minimum is :
A)
O(1)
B)
O (n)
C)
O(!n)
D)
O (n log n)

Correct Answer : Option (A) :   O(1)

A)
148
B)
147
C)
146
D)
140

Correct Answer : Option (A) :   148

A)
Selection Sort
B)
Quick Sort
C)
Bubble Sort
D)
Merge Sort

Correct Answer : Option (D) :   Merge Sort

A)
Brute Force
B)
Divide and Conquer
C)
Dynamic programming algorithms
D)
None of the above

Correct Answer : Option (C) :   Dynamic programming algorithms

A)
Time only
B)
Space only
C)
Both (A) and (B)
D)
None of the above

Correct Answer : Option (C) :   Both (A) and (B)