
Data Structures 10th Sep
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Siddharth Amdal
Used 2+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q1. If the size of the stack is 10 and we try to add the 11th element in the stack then the condition is known as___
Underflow
Garbage collection
Overflow
None of the above
Answer explanation
When a stack has a maximum size and we attempt to add an element beyond that limit, it results in 'Overflow'. This occurs because the stack cannot accommodate more elements than its defined capacity.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q2. Which of the following is not the correct statement for a stack data structure?
Arrays can be used to implement the stack
Stack follows FIFO
Elements are stored in a sequential manner
Top of the stack contains the last inserted element
Answer explanation
The statement 'Stack follows FIFO' is incorrect. A stack follows LIFO (Last In, First Out) principle, meaning the last element added is the first one to be removed.
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q3. If the elements '1', '2', '3' and '4' are added in a stack, so what would be the order for the removal?
1234
2134
4321
None of the above
Answer explanation
In a stack, elements are removed in Last In First Out (LIFO) order. Since '4' is added last, it will be the first to be removed, followed by '3', '2', and '1'. Thus, the removal order is 4321.
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q4. Which of the following principles does a Queue use?
LIFO principle
FIFO principle
Linear Tree
Ordered Array
Answer explanation
A Queue uses the FIFO (First In, First Out) principle, meaning the first element added is the first one to be removed. This is different from LIFO (Last In, First Out), which is used by stacks.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Q5. A linear list of elements in which deletion can be done from one end(front) and insertion can take place only at the other end(rear) is known as:
Queue
Stack
Tree
Linked List
Answer explanation
A queue is a linear data structure where insertion occurs at the rear and deletion at the front, following the First In First Out (FIFO) principle. This matches the description given in the question.
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
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
AIML
Quiz
•
University
10 questions
Chapter 11 Quizz
Quiz
•
University
10 questions
FGCT4023 Topic 6 - Interactivity
Quiz
•
University
10 questions
Machine Learning (Introduction)
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
