
TDS Lec 7&8

Quiz
•
Computers
•
University
•
Hard
Wee Yin
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
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)
2.
MULTIPLE CHOICE QUESTION
1 min • 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)
3.
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
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CC 105 - Quiz No 2 (BSIT2A-G2)

Quiz
•
University
13 questions
time and space complexity

Quiz
•
University
15 questions
Searching and Sorting

Quiz
•
University - Professi...
13 questions
Preliminary Algorithm and Complexities Examination

Quiz
•
University
11 questions
JAVALO3

Quiz
•
University
12 questions
DAA_C_MCQ - 1

Quiz
•
University
12 questions
Quiz-1(Div-C)

Quiz
•
University
15 questions
AlgoMania Quiz

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade