In a stack, if a user tries to remove an element from an empty stack, it is called :
एक स्टैक में, यदि कोई उपयोगकर्ता (यूजर) किसी खाली स्टैक से किसी एलिमेंट (तत्त्व) को हटाने का प्रयास करता है, तो उसे क्या कहा जाता है ?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. Underflowअंडरफ्लो
Explanation
Popping from an empty stack is underflow; pushing onto a full one is overflow.
खाली स्टैक से पॉप करना अंडरफ्लो है; भरे स्टैक में पुश करना ओवरफ्लो।
More Data Structures questions
- 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…
- If the elements 'A', 'B', 'C' and 'D' are placed in a queue and are deleted one at a time, in what order will these elements be removed ?
- Process of inserting an element in stack is called :
- A queue follows ……….. .
- Which of the following recurrence relation is related to worst case time complexity of quick sort ?
- In directed graph G(V, E) where V = {P, Q, R, S, T} and E = {PQ, RS, TP, PS, QR, PT, ST, QP, RQ, TS}, the vertex with maximum in- degree is…