Which of the following case does not exist in complexity theory?
Asymptotic Notations Practice Questions

Quiz
•
Computers
•
University
•
Medium
Manas Mishra
Used 97+ times
FREE Resource
58 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
60 questions
Microprocessor & Microcontroller Basics

Quiz
•
University
53 questions
EEP

Quiz
•
University
60 questions
compprog reviewer

Quiz
•
University
60 questions
săn đây CSI104

Quiz
•
University
58 questions
Base de Datos KAI

Quiz
•
University
60 questions
ITEDAT Midterm Exam

Quiz
•
University
60 questions
Introduction to AI and Intelligent Agents

Quiz
•
University
59 questions
Python CH1-3 Review

Quiz
•
8th Grade - Professio...
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade