Question 21Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

…………………..data type is used to implement Queue data structure in Python.…………………..डेटा प्रकार का उपयोग पायथन में कतार डेटा संरचना को लागू करने के लिए किया

…………………..डेटा प्रकार का उपयोग पायथन में कतार डेटा संरचना को लागू करने के लिए किया जाता है।
  1. ASetsसेट
  2. BDictionaryशब्दकोष
  3. CTupleटपल
  4. DListलिस्ट
Show answerHide answer

Correct answer: (D) Listलिस्ट

Explanation

A Python list can act as a queue by adding items with append() and removing them from the front with pop(0). Sets and dictionaries have no order suited to FIFO, and tuples cannot be changed.Python की list को queue की तरह इस्तेमाल किया जा सकता है: append() से आइटम जोड़ें और pop(0) से आगे से हटाएँ। Set और dictionary का क्रम FIFO के लिए उपयुक्त नहीं है, और tuple बदला नहीं जा सकता।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 21 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.