
CS19341 - Design and Analysis of Algorithms Lab-MCQ-viva
Authored by LE156 Sorna D
others

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While using the step count method to find the time complexity of an algorithm, how many time the counter variable gets incremented when the for loop condition is false?
2
0
1
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Order the below-stated efficiency classes in a descending manner, n,nlogn,n^2logn,n!
n,nlogn,n^2logn,n!
n^2logn,n!,n,nlogn
n!,n^2logn,nlogn,n
n!,n^2logn,n,nlogn
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Identify the characteristics of an algorithm
Well defined Inputs
Finiteness
Correctness
Ambiguous
Space Complexity
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Say true or false for the given assertions
false,true,false
false,true,true
false,false,true
true,true,true
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider an array A = [20, 31, 45, 56, 67, 78, 89, 91]. If key = 91, what will be the value of mid at the third recursion?
89
78
67
91
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider two subarrays A1 = [1,2,10] and A2 = [7,8,9,12]. During the process of merging in Merge Sort how many comparisons are required to get a Sorted Array?
4
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider an array [5,6,1,2,9,8]. Apply quicksort. After bringing the 1st pivot element to its correct position in the sorted List, how many elements will be present in the left subarray (Assume first element as Pivot)
1
2
3
4
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?