
Data Structures and Algorithms Quiz
Authored by Anisha SET
Computers
University
Used 2+ 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 finding the median in two sorted arrays of sizes m and n using the optimal binary search approach?
O(m+n)
O(log(min(m,n)))
O(log(max(m,n)))
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is best suited for implementing Dijkstra's Algorithm efficiently?
Stack
Queue
Priority Queue (Min-Heap)
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of QuickSort?
O(n log n)
O(n²)
O(log n)
O(n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Knuth-Morris-Pratt (KMP) string matching algorithm, the LPS array stores:
Longest prefix which is also suffix
Longest palindrome substring
Number of mismatches
Hash value of substring
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems cannot be solved using Dynamic Programming?
Longest Common Subsequence
N-Queens Problem
Matrix Chain Multiplication
Coin Change Problem
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the space complexity of DFS in a graph using adjacency list (excluding recursion stack)?
O(V)
O(V+E)
O(E)
O(V*E)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal method can be used to check if a binary tree is a BST?
Preorder
Inorder
Postorder
Level Order
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
46 questions
Final Repaso INF-1
Quiz
•
University
50 questions
Quiz
Quiz
•
University
50 questions
MS Excel Quiz
Quiz
•
University
53 questions
EEP
Quiz
•
University
50 questions
JavaScript-ITELECTIVE
Quiz
•
University
45 questions
Partes internas del PC
Quiz
•
University
50 questions
Computer System Servicing
Quiz
•
University
50 questions
TN HTML+CSS
Quiz
•
University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade