What is an Algorithm?
Algorithm - Complexity

Quiz
•
Computers
•
University - Professional Development
•
Hard
Ritu aggrawal
Used 22+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A set of instructions that, when executed, completes a defined task that solves a problem.
The process of breaking apart a problem.
The process of removing unnecessary detail.
A sequence of instructions.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Time Complexity of this program:
def f():
a = 0
for i = 1 to n:
a += i;
b = 0
for i = 1 to m:
b += i;
O(n)
O(m)
O(n+m)
O(n*m)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If for an algorithm time complexity is given by O(1) then complexityof it is:
constant
polynomial
exponential
none of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If for an algorithm time complexity is given by O(n) then complexityof it is:
A. constant
B. linear
C. exponential
D. none of the mentioned
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
What is the time complexity of following code:
int a = 0;
for (i = 0; i < N; i++) {
for (j = N; j > i; j--) {
a = a + i + j;
}
}
O(N)
O(N*log(N))
O(N * Sqrt(N))
O(N*N)
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
COCAT - DAA

Quiz
•
University - Professi...
30 questions
Data Structures and Its Applications

Quiz
•
University
26 questions
Searching Algorithms

Quiz
•
University
31 questions
Chapt 14

Quiz
•
University
25 questions
Technical quiz(Medium-Level)

Quiz
•
University
28 questions
Computer Science quiz

Quiz
•
11th Grade - University
25 questions
Takeshi's Castle Code bingo

Quiz
•
University
26 questions
Analysis Algorithms Introduction

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade