
Unit 1 DAA

Quiz
•
Computers, Other
•
•
Hard
Prema Kadam
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the time complexity of this code
int a = 0, i = N;
while (i > 0)
{
a += i;
i /= 2;
}
O(N)
O(Sqrt(N))
O(N / 2)
O(log N)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The complexity of Binary search algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A linear function takes the form
f(n) = an + b
f(n) = an2 +bn + c
f(n) = alog2n
f(n) = a + b
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the slowest algorithm:
O (n)
O (n^2)
O (n!)
O (2^n)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The number of executions grows extremely quickly as the size of the input increases
Exponential Time
Linear Time
Polynomial Time
Constant Time
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does it mean when we say that an algorithm X is asymptotically more efficient than Y?
X will be a better choice for all inputs
X will be a better choice for all inputs except possibly small inputs
X will be a better choice for all inputs except possibly large inputs
Y will be a better choice for small inputs
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Sorting algorithms I

Quiz
•
University
20 questions
data structures1

Quiz
•
University
20 questions
Quantitative Aptitude Series

Quiz
•
University
26 questions
Analysis Algorithms Introduction

Quiz
•
University
25 questions
Common Algorithms

Quiz
•
9th - 12th Grade
20 questions
Algorithm questions

Quiz
•
12th Grade - University
20 questions
Quiz 1_DSA

Quiz
•
University
20 questions
ONE 6th FORM A* & Dijkstras and complexities

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade