All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Data Structures HTET 2024 PGT Computer Science · 30 July 2025

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