Asymptotic Notations Practice Questions
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Manas Mishra
Used 99+ times
FREE Resource
Enhance your content in a minute
58 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following case does not exist in complexity theory?
Best case
•Worst case
•Average case
Null case
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
•The worst case complexity for insertion sort is _________
•
O(n)
•
O(log n)
•O(n2)
•O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int fun(int n)
•{
•int count = 0;
•for (int i = 0; i < n; i++)
•for (int j = i; j > 0; j--)
count = count + 1;
•return count;
•}
Theta (n)
Theta (n^2)
•Theta (n*Logn)
•Theta (nLognLogn)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean when we say that an algorithm X is asymptotically more efficient than Y?
X will always be a better choice for small inputs
•X will always be a better choice for large inputs
•Y will always be a better choice for small inputs
•X will always be a better choice for all inputs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
•What is the time complexity of following code:
•int a = 0, b = 0;
•for (i = 0; i < N; i++) {
•a = a + rand();
•}
•for (j = 0; j < M; j++) {
•b = b + rand();
•}
•O(N * M) time,
•O(N + M) time,
None of these
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
•To measure Time complexity of an algorithm Big O notation is used which:
describes limiting behaviour of the function
•characterises a function based on growth of function
•upper bound on growth rate of the function
•all of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
•If for an algorithm time complexity is given by O(n) then complexity of it is:
•constant
•linear
•exponential
•none of the mentioned
Create a free account and access millions of resources
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?
Similar Resources on Wayground
53 questions
Scratch Programming
Quiz
•
9th Grade - University
60 questions
Network Models
Quiz
•
University
62 questions
Network Media
Quiz
•
University
60 questions
Salesforce
Quiz
•
University
54 questions
Unit 4 Study Guide
Quiz
•
9th Grade - University
57 questions
IMD222 Memory Module
Quiz
•
University
60 questions
PL-900
Quiz
•
University
60 questions
TIN6_ÔN TẬP HKI_2425
Quiz
•
6th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
