
Data Structures and Algorithms Quiz
Authored by BALASARASWATHI AI&DS
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures is used to implement recursion?
Queue
Stack
Linked List
Tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm has the best worst-case time complexity?
Bubble Sort
Merge Sort
Quick Sort
Insertion Sort
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of accessing an element in a hash table?
O(1)
O(log n)
O(n)
O(n^2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of searching an element in a Binary Search Tree (BST)?
O(log n)
O(n)
O(n log n)
O(1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a stable sorting algorithm?
Merge Sort
Bubble Sort
Insertion Sort
Quick Sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following algorithms is used for finding the shortest path in a weighted graph?
Dijkstra’s Algorithm
Prim’s Algorithm
Kruskal’s Algorithm
Depth-First Search (DFS)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the best description of a "heap" data structure?
A complete binary tree where each node is greater than or equal to its children (Max-Heap).
A sorted binary tree.
A graph with no cycles.
A linear data structure.
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
20 questions
Administração de Sistemas de Informação
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
19 questions
BLAST
Quiz
•
University
19 questions
INFORMÁTICA 1 3p
Quiz
•
University
20 questions
NANOTECNOLOGIA
Quiz
•
University
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
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