Question 4 When a stack is full and no element can be added, it is called an ____.
(A) Overflow (B) Extraflow (C) Out of range (D) Underflow
Trying to add an element to a stack that is full, leads to a condition called overflow.
Checking the options
(A) Overflow - Trying to add an element to a stack that is full, leads to overflow.
(diagram on google slide)
(B) Extraflow - It is a concept in flow networks.
(C) Out of range - The error “list index out of range” arises in python if you try to access invalid indices of a list.
(D) Underflow - Trying to delete an element from a stack that is empty, leads to underflow.
So, the correct answer is (A)
Made by
Davneet Singh
Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo
Hi, it looks like you're using AdBlock :(
Displaying ads are our only source of revenue. To help Teachoo create more content, and view the ad-free version of Teachooo... please purchase Teachoo Black subscription.
Please login to view more pages. It's free :)
Teachoo gives you a better experience when you're logged in. Please login :)
Solve all your doubts with Teachoo Black!
Teachoo answers all your questions if you are a Black user!