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___

Data Structures 10th Sep

Quiz
•
Computers
•
University
•
Medium
Siddharth Amdal
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
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.
Similar Resources on Quizizz
9 questions
Data Structures and Algorithm

Quiz
•
University
10 questions
Sumatif Akhir Informatika

Quiz
•
1st Grade - University
10 questions
Quiz 1 - AK2 Section

Quiz
•
University
10 questions
Quiz on Stacks and Data Structures 2

Quiz
•
University
10 questions
UNIT-2 QUEUE

Quiz
•
University
10 questions
Quiz despre Stiva si Coada - RO - No.2

Quiz
•
University
7 questions
Unit 3 : Addressing Mode

Quiz
•
University
9 questions
DSA Day 3

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade