
Quiz on Data Structures

Quiz
•
Computers
•
University
•
Medium
Muhammad Rizwan
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a stack and a queue?
Stack uses FIFO and Queue uses LIFO
Stack uses LIFO and Queue uses FIFO
Both use FIFO
Both use LIFO
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal of a binary tree gives sorted output for Binary Search Trees?
Pre-order
Post-order
In-order
Level-order
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many children can a node in a tree have at most?
1
2
3
Infinite
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What property must a binary tree satisfy to be called a Binary Search Tree?
Each node has two children
All leaves are on the same level
Left child < parent < right child
Nodes store only even numbers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which rotation is used to balance an AVL Tree in a Left-Right (LR) imbalance?
Single Right Rotation
Single Left Rotation
Left-Right Rotation
Right-Left Rotation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of insertion in an AVL Tree in the worst case?
O(n)
O(log n)
O(n log n)
O(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a queue, from where is the element added(enqueue operation)?
Front
Rear
Middle
Any position
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Stacks and Queues Quiz

Quiz
•
University
8 questions
Pengenalan Struktur Data

Quiz
•
University
11 questions
Untitled Quiz

Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business

Quiz
•
University - Professi...
15 questions
Data Structure - II BCA B - 21.7.25

Quiz
•
University
10 questions
DS Quiz1

Quiz
•
University
7 questions
Binary Search Tree

Quiz
•
University
10 questions
DSA(UNIT 1) Test 1

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 Computers
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