
DAA 2023- 2024 Test 2
Quiz
•
Other
•
1st Grade
•
Hard
Thiyagu Thiyagu
Used 17+ times
FREE Resource
Enhance your content
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 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
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
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)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of following code:
int i, j, k = 0;
for (i = n / 2; i <= n; i++) {
for (j = 2; j <= n; j = j * 2) {
k = k + n / 2;
}
}
O(n)
O(nLogn)
O(n^2)
O(n^2Logn)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the problems cannot be solved by backtracking method?
n-queen problem
subset sum problem
Hamiltonian circuit problem
travelling salesman problem
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Backtracking algorithm is implemented by constructing a tree of choices called as?
State-space tree
state chart tree
node tree
Backtracking tree
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems is similar to that of a Hamiltonian path problem?
Knapsack problem
closest pair problem
travelling salesman problem
assignment problem
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
47 questions
Biblia
Quiz
•
1st - 6th Grade
50 questions
MapleStory
Quiz
•
KG - University
50 questions
PH PPKN Kelas 9 Kurtilas
Quiz
•
KG - 12th Grade
46 questions
Zastawa stołowa
Quiz
•
1st Grade
51 questions
Resumen Modulo 1, 2 y 3 Banking
Quiz
•
1st Grade - Professio...
50 questions
TRY OUT BAHASA INDONESIA IX 01
Quiz
•
1st Grade
53 questions
Révision 1STMG Economie
Quiz
•
1st Grade
45 questions
vocabulaire latin 4ème 2022
Quiz
•
1st - 4th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Other
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
6 questions
Gravity
Quiz
•
1st Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
16 questions
American Revolution
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
18 questions
Pushes & Pulls
Quiz
•
1st - 4th Grade
25 questions
Week 1 Memory Builder 1 (2-3-4 times tables) Term 2
Quiz
•
1st - 5th Grade
10 questions
Exploring Common and Proper Nouns
Interactive video
•
1st - 5th Grade
