
ADA Assignment1

Quiz
•
Computers
•
University
•
Medium
shama s
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1 Quick sort is an example of a sorting algorithm based on which strategy?
a. Dynamic programming
b. Greedy approach
c. Divide and conquer
d. Backtracking
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2 What is the average time complexity of the bubble sort algorithm?
a. O(n^2)
b. O(n)
c. O(log n)
d. O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3 What is the time complexity of merge sort in all cases?
a. O(n)
b. O(n log n)
c. O(n^2)
d. O(log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4 Strassen`s matrix multiplication is an algorithm that multiplies two matrices using which approach?
a. Brute force
b. Greedy approach
c. Dynamic programming
d. Divide and conquer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5 What is the objective of the 0/1 Knapsack Problem?
a. To maximize the total weight of the knapsack.
b. To maximize the total value of the knapsack.
c. To minimize the total weight of the knapsack.
d. minimize the total value of the knapsack.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6 Which approach is commonly used to solve the 0/1 Knapsack Problem?
a. Greedy algorithm
b. Dynamic programming
c. Depth-first search
d. Breadth-first search
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7 What is the time complexity of the dynamic programming solution for the 0/1 Knapsack Problem?
a. O(n)
b. O(n + W)
c. O(nW)
d. O(W^2)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz2

Quiz
•
University
10 questions
Dynamic Programming Basic Quiz

Quiz
•
University
11 questions
nivel de programación Js

Quiz
•
University
15 questions
Interactivity with JavaScript

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
8 questions
Revisando a Aula 4 Estrutura de Dados

Quiz
•
University
10 questions
AdvancedProgramming_intro

Quiz
•
University
10 questions
Kuis 3 - ASD (B)

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University