Computer Science · Data Structures
निम्नलिखित पायथन (Python) सूची S को एक स्टैक (stack) के रूप में लागू किया गया है: S = [10, 12, 0, 4, 6] यदि 10 वह तत्व है जिसे स्टैक S में सबसे अंत में जोड़ा (pushed) गया था, तो स्टैक से शीर्ष तत्व को हटाने (pop) के लिए कौन सा इन-बिल्ट पायथन कमांड उपयुक्त है?
- 1S.remove(0)
- 2S.remove()
- 3S.pop()✓
- 4S.pop(0)
सही उत्तर देखें
S.pop()
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures