A .......... is a container that implements Last-In-First-Out (LIFO) protocol.
यह एक कंटेनर है जो लास्ट-इन-फर्स्ट-आउट (LIFO) प्रोटोकॉल लागू करता है :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. Stack
Explanation
A stack adds (push) and removes (pop) items at the same end, the top, so the last item in is the first out (LIFO). A queue is FIFO.
स्टैक में आइटम एक ही सिरे (टॉप) पर जोड़े (push) और निकाले (pop) जाते हैं, इसलिए आख़िरी डाला गया पहले निकलता है (LIFO)। क्यू FIFO होती है।
More Data Structures questions
- TOLL Plaza simulation is an application of ............. .
- Sum of degrees of all nodes for a graph G(V, E) can be given by ...... .
- 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…
- Which of the following recurrence relation is related to worst case time complexity of quick sort ?
- A queue follows ……….. .
- Process of inserting an element in stack is called :