
Data Structures and Algorithms Quiz

Quiz
•
Others
•
University
•
Hard
M. Sudharsan M. Sudharsan
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures can be used to implement a queue?
Stack
Linked List
Array
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity to search an element in a balanced binary search tree?
O(n)
O(log n)
O(n log n)
O(1)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following data structures is the insertion of data elements done at one end, called the rear, and deletion is done from the other end, called the front?
Stack
Queue
Linked List
Array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal technique of binary trees ensures the nodes are processed in ascending order for a Binary Search Tree (BST)?
Preorder
Inorder
Postorder
Level-order
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used in recursion?
Queue
Stack
Tree
Graph
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The time complexity for inserting an element in an array at the beginning is:
O(1)
O(log n)
O(n)
O(n^2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a max-heap, the value of the root node is:
Less than its child nodes
Greater than or equal to its child nodes
Equal to its child nodes
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
The Philippine Constitutions - Quiz 01

Quiz
•
University
15 questions
Quiz despre Proiectarea Bazelor de Date

Quiz
•
University
15 questions
latihan Frais II

Quiz
•
University
20 questions
Breast Anatomy Quiz

Quiz
•
University
15 questions
Nerve Fibers and Myelination Quiz

Quiz
•
University
17 questions
Quiz sobre o Casal Maria Gabriela e Pedro

Quiz
•
1st Grade - University
15 questions
Desafios da Comunicação Eficaz

Quiz
•
6th Grade - University
20 questions
Examen de la especialidad de Cerebro y conducta

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University