
introduction to daa
Authored by shanthi p
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of following code:
int a = 0, i = N; while (i > 0) { a += i; i /= 2; }
O(N)
B. O(Sqrt(N))
C. O(N / 2)
D. O(log N)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The complexity of Binary search algorithm is
A. O(n)
B. O(log )
C. O(n2)
D. O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The complexity of merge sort algorithm is
A. O(n)
B. O(log n)
C. O(n2)
D. O(n log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The worst case complexity for insertion sort is
A. O(n)
B. O(log n)
C. O(n2)
D. O(n log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To measure Time complexity of an algorithm Big O notation is used which:
A. describes limiting behaviour of the function
B. characterises a function based on growth of function
C. upper bound on growth rate of the function
D. all of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If for an algorithm time complexity is given by O(1) then complexityof it is:
A. constant
B. polynomial
C. exponential
D. none of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If for an algorithm time complexity is given by O(log2n) then complexity will:
A. constant
B. polynomial
C. exponential
D. none of the mentioned
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?