Which data structure uses LIFO (Last In, First Out) principle?
کون سا ڈیٹا اسٹرکچر لیفو اصول پر عمل کرتا ہے؟
- Stack
- Queue
- Linked List
- None of these
Explanation
- A Stack follows the LIFO (Last In, First Out) principle.
- The last element added to the stack is the first one to be removed.
- Elements are inserted using Push and removed using Pop operations.
- Stacks are commonly used in function calls and expression evaluation.
- It is a linear data structure.
Last verified on 10-06-2026
Related MCQs
- 2*4
- 4*4
- 4*8
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سا سرچنگ الگورتھم ڈیٹا کے ترتیب شدہ ہونے کی ضرورت رکھتا ہے؟
- Depth First Search
- Linear Search
- Binary Search
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
- RAM
- ROM
- Cache
- Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں
کون سا پروٹوکول غیر محفوظ نیٹ ورک پر محفوظ مواصلاتی چینل قائم کرنے کے لیے استعمال ہوتا ہے؟
- HTTPS (SSL/TLS)
- DHCP
- FTP
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 11000
- 10000
- 11100
- None of these