
Data Structures and Algorithms Quiz
Authored by KARE OSS
Mathematics
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of accessing an element in an array?
O(n)
O(log n)
O(1)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure uses LIFO (Last In, First Out) principle?
Queue
Stack
Array
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of bubble sort?
O(n)
O(n log n)
O(n^2)
O(n^3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a type of tree?
Binary Tree
AVL Tree
Hash Tree
B-Tree
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a linked list, what is the time complexity to insert a node at the beginning?
O(n)
O(log n)
O(1)
O(n^2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm is used for finding the shortest path in a weighted graph?
Depth-First Search
Dijkstra's Algorithm
Bubble Sort
Prim's Algorithm
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main disadvantage of a linked list over an array?
No dynamic sizing
Slower access time
More memory usage
No flexibility in data types
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
15 questions
Unidad 2 - Probabilidad y Estadística
Quiz
•
University
10 questions
Economía General Aplicada
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
15 questions
GERENCIA ESTRATEGICA MOD 3
Quiz
•
University
10 questions
Toán 6
Quiz
•
University
15 questions
Operaciones con matrices
Quiz
•
University
10 questions
Fourier series -1
Quiz
•
University
15 questions
Sinh hoạt lớp Tuần 7
Quiz
•
1st Grade - 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