
DAA 2023- 2024 Test 2
Authored by Thiyagu Thiyagu
Other
1st Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
51 questions
TBEUT5.CONSTANTES
Quiz
•
1st Grade
50 questions
Latihan 1
Quiz
•
1st Grade - Professio...
52 questions
QUIZ : OIL PALM PLANTATION OPERATION & SUPERVISION
Quiz
•
KG - Professional Dev...
50 questions
KISI_KISI PAS MANDARIN 7
Quiz
•
1st Grade
45 questions
İntellektual Bilik Oyunu / Əfsanə_Qafarova
Quiz
•
1st - 4th Grade
46 questions
CARDIOVASCULAR
Quiz
•
KG - 5th Grade
55 questions
Quizz révisions E4
Quiz
•
1st - 5th Grade
45 questions
SOAL PAS GANJIL SOSIOLOGI X 2021/2022
Quiz
•
1st - 3rd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Heating / Cooling Matter
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Counting Coins
Quiz
•
1st Grade
10 questions
Identifying Points, Lines, Rays, and Angles
Interactive video
•
1st - 5th Grade
5 questions
Heating and Cooling Pre-Assessment
Quiz
•
1st Grade
20 questions
VOWEL TEAMS: AI and AY
Quiz
•
1st Grade