
Data Structures: Stack,Queue and Binary Tree
Quiz
•
Professional Development
•
University
•
Practice Problem
•
Hard
Shaik Imam
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a Stack data structure?
A linear data structure with FIFO (First-In-First-Out) access
A linear data structure with LIFO (Last-In-First-Out) access
A hierarchical data structure with parent-child relationships
A data structure that represents a collection of elements with key-value pairs
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of the push and pop operations in a stack implemented using an array?
O(1) for both push and pop
O(1) for push and O(n) for pop
O(n) for push and O(1) for pop
O(n) for both push and pop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure can be used to implement a stack efficiently?
Array
Linked List
Tree
Hash Table
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a Queue data structure?
A linear data structure with FIFO (First-In-First-Out) access
A linear data structure with LIFO (Last-In-First-Out) access
A hierarchical data structure with parent-child relationships
A data structure that represents a collection of elements with key-value pairs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of the enqueue and dequeue operations in a queue implemented using an array?
O(1) for both enqueue and dequeue
O(1) for enqueue and O(n) for dequeue
O(n) for enqueue and O(1) for dequeue
O(n) for both enqueue and dequeue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a Binary Tree data structure?
A linear data structure with FIFO (First-In-First-Out) access
A hierarchical data structure with parent-child relationships and at most two children per node
A linear data structure with LIFO (Last-In-First-Out) access
A data structure that represents a collection of elements with key-value pairs
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of nodes at level 'L' in a binary tree?
2L
L2
L / 2
2 * L
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
BCS Systems & Architecture Quiz 1
Quiz
•
University - Professi...
20 questions
NHT day 1
Quiz
•
University
20 questions
NHT day 3
Quiz
•
University
20 questions
Digital Transformation Quiz
Quiz
•
University
20 questions
Digital Electronics
Quiz
•
University
20 questions
Awareness : Keamanan Informasi (Remidial)
Quiz
•
University
20 questions
Eye Quiz: Anatomy 1
Quiz
•
University
20 questions
Understanding Police Leadership
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
Discover more resources for Professional Development
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
