
DAA-QUIZ

Quiz
•
Computers
•
Professional Development
•
Medium
Pratiba D.
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are given a knapsack that can carry a maximum weight of 60. There are 4 items with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items you can carry using the knapsack?
160
200
170
90
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to solve the Knapsack problem?
Brute force algorithm
Recursion
Dynamic programming
Brute force, Recursion and Dynamic Programming
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms is the fastest?
Merge sort
Quick sort
Insertion sort
Shell sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case time complexity of a quick sort algorithm?
O(N)
O(N log N)
O(N2)
O(log N)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average case time complexity of merge sort?
O(n log n)
O(n2)
O(n2 log n)
O(n log n2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the auxiliary space complexity of merge sort?
O(1)
O(log n)
O(n)
O(n log n)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of the best case scenario for quick sort?
O(N)
O(N log N)
O(N^2)
O(log N)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Estructuras de memoria

Quiz
•
Professional Development
17 questions
Data Warehousing

Quiz
•
Professional Development
13 questions
BlackBoard UCV

Quiz
•
KG - Professional Dev...
10 questions
Informatika

Quiz
•
Professional Development
15 questions
unit-5 test-1

Quiz
•
Professional Development
13 questions
Strings and Arrays

Quiz
•
Professional Development
19 questions
Python Basic

Quiz
•
Professional Development
19 questions
JavaScript Básico

Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade