
introduction to daa

Quiz
•
Computers
•
University
•
Medium

shanthi p
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Stacks and Queues Quiz

Quiz
•
University
10 questions
Dynamic Programming part 1

Quiz
•
University
15 questions
Round 2 Debug-The-Code

Quiz
•
University
10 questions
PDS - 04225 Algorithms - Chapter 3

Quiz
•
University
15 questions
ALGORITHM AND C PROGRAMMING QUIZ

Quiz
•
University
10 questions
G&N Units 5,6

Quiz
•
University
10 questions
Weekly Contest #6 - TechXNinjas

Quiz
•
University
15 questions
Searching and Sorting

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University