
Data Structures and Algorithms Quiz
Quiz
•
Mathematics
•
University
•
Practice Problem
•
Hard
KARE OSS
Used 1+ times
FREE Resource
Enhance your content in a minute
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
14 questions
12 DE JUNIO SIMULADOR DE INICIO
Quiz
•
University
11 questions
Gráficos
Quiz
•
University
11 questions
Derivadas
Quiz
•
University
10 questions
Bài tập NLKT
Quiz
•
University
15 questions
Áreas e perímetros de Figuras Planas
Quiz
•
5th Grade - University
10 questions
IRD43 TEORÍA DE CONJUNTOS
Quiz
•
University
15 questions
Quiz sobre Poliedros e Sólidos
Quiz
•
12th Grade - University
10 questions
Partial Differential Equations
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
