1996 Question 1996 EN + हिं Medium GB Python 'with' statement is used for? IN पायथन 'विथ' स्टेटमेंट का उपयोग किसके लिए किया जाता है? A Conditional logic सशर्त तर्क B Context management — automatically handles resource cleanup (close files) संदर्भ प्रबंधन - स्वचालित रूप से संसाधन सफ़ाई को संभालता है (फ़ाइलें बंद करें) C While loops जबकि लूप्स D Function calls फ़ंक्शन कॉल ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 'with' statement ensures proper resource management (opening/closing files) via context managers. व्याख्या (हिन्दी) 'with' कथन संदर्भ प्रबंधकों के माध्यम से उचित संसाधन प्रबंधन (फ़ाइलें खोलना/बंद करना) सुनिश्चित करता है। 🎯 Exam Perspective Computer Fundamentals ("Introduction to Computer" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What does __init__ method do in Python class? os.path.join() in Python is used for? Which Python library is used for HTTP requests? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
1997 Question 1997 EN + हिं Easy GB What does __init__ method do in Python class? IN पायथन क्लास में __init__ विधि क्या करती है? A Initializes the module मॉड्यूल को प्रारंभ करता है B Constructor — initializes a new object instance's attributes कंस्ट्रक्टर - एक नए ऑब्जेक्ट इंस्टेंस की विशेषताओं को आरंभ करता है C Deletes objects ऑब्जेक्ट हटाता है D Imports modules मॉड्यूल आयात करता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) __init__ is the constructor method called automatically when a new class instance is created. व्याख्या (हिन्दी) __init__ कंस्ट्रक्टर विधि है जिसे एक नया क्लास इंस्टेंस बनाते समय स्वचालित रूप से बुलाया जाता है। 🎯 Exam Perspective यह सवाल Computer Fundamentals ("Introduction to Computer" sub-topic) category का है — difficulty level "Easy", और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output of 5//2 in Python? Which Python keyword checks membership in a sequence? Which Python library is used for HTTP requests? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
1998 Question 1998 EN + हिं Medium GB Inheritance in Python is defined as? IN पायथन में वंशानुक्रम को किस रूप में परिभाषित किया गया है? A class Child(Parent): कक्षा बच्चा(अभिभावक): B class Child extends Parent: क्लास चाइल्ड माता-पिता का विस्तार करता है: C class Child inherits Parent: कक्षा बच्चे को माता-पिता विरासत में मिलते हैं: D class Child:Parent: कक्षा बच्चा: अभिभावक: ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Python inheritance syntax: class ChildClass(ParentClass): defines a subclass inheriting from parent. व्याख्या (हिन्दी) पायथन इनहेरिटेंस सिंटैक्स: क्लास चाइल्डक्लास (पेरेंटक्लास): माता-पिता से विरासत में मिले उपवर्ग को परिभाषित करता है। 🎯 Exam Perspective यह प्रश्न Computer Fundamentals ("Introduction to Computer" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions Which Python library is used for HTTP requests? os.path.join() in Python is used for? Python 'with' statement is used for? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
1999 Question 1999 EN + हिं Medium GB Python multiple inheritance is? IN पायथन मल्टीपल इनहेरिटेंस है? A Not supported समर्थित नहीं B Supported — class C(A, B): inherits from both A and B समर्थित - वर्ग सी(ए, बी): ए और बी दोनों से विरासत में मिला है C Only through interfaces केवल इंटरफ़ेस के माध्यम से D Through mixins only केवल मिश्रण के माध्यम से ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Python supports multiple inheritance: class C(A, B) inherits from both A and B. व्याख्या (हिन्दी) पायथन मल्टीपल इनहेरिटेंस का समर्थन करता है: क्लास सी(ए, बी) ए और बी दोनों से इनहेरिट करता है। 🎯 Exam Perspective Computer Fundamentals ("Introduction to Computer" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What does __init__ method do in Python class? Python operator ** is used for? JSON module in Python provides? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2000 Question 2000 EN + हिं Medium GB MRO (Method Resolution Order) in Python? IN पायथन में एमआरओ (विधि रिज़ॉल्यूशन ऑर्डर)? A Method Running Order विधि संचालन क्रम B Order in which Python searches classes for method/attribute in inheritance वह क्रम जिसमें पायथन इनहेरिटेंस में विधि/विशेषता के लिए कक्षाएं खोजता है C Memory Resource Order मेमोरी संसाधन क्रम D Module Reference Order मॉड्यूल संदर्भ आदेश ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) MRO determines the order Python searches through class hierarchy to find a method (C3 linearization algorithm). व्याख्या (हिन्दी) एमआरओ एक विधि (सी3 रैखिकरण एल्गोरिथ्म) खोजने के लिए वर्ग पदानुक्रम के माध्यम से पायथन द्वारा खोजे जाने वाले क्रम को निर्धारित करता है। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Computer Fundamentals ("Introduction to Computer" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions enumerate() in Python? Python multiple inheritance is? Which Python library is used for HTTP requests? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2001 Question 2001 EN + हिं Medium GB Python __str__ method is called by? IN पायथन __str__ विधि को किसके द्वारा कहा जाता है? A Direct call only केवल डायरेक्ट कॉल B print() function and str() conversion प्रिंट() फ़ंक्शन और str() रूपांतरण C __repr__ __repr__ D Input function इनपुट फ़ंक्शन ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) __str__ defines the human-readable string representation of an object, called by print() and str(). व्याख्या (हिन्दी) __str__ किसी ऑब्जेक्ट के मानव-पठनीय स्ट्रिंग प्रतिनिधित्व को परिभाषित करता है, जिसे प्रिंट() और str() द्वारा कहा जाता है। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो Computer Fundamentals ("Introduction to Computer" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions enumerate() in Python? What does __init__ method do in Python class? Which Python library is used for HTTP requests? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2002 Question 2002 EN + हिं Easy GB What is the output of 5//2 in Python? IN पायथन में 5//2 का आउटपुट क्या है? A 2.5 2.5 B 2 2 C 3 3 D 2.0 2.0 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) // is floor division in Python: 5//2 = 2 (integer result, rounds toward negative infinity). व्याख्या (हिन्दी) // पायथन में फर्श विभाजन है: 5//2 = 2 (पूर्णांक परिणाम, नकारात्मक अनंत की ओर चक्कर)। 🎯 Exam Perspective Computer Fundamentals ("Introduction to Computer" sub-topic) के इस प्रश्न को — difficulty level "Easy" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions Which Python library is used for HTTP requests? Python multiple inheritance is? Which Python keyword checks membership in a sequence? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2003 Question 2003 EN + हिं Medium GB Python operator ** is used for? IN पायथन ऑपरेटर ** का उपयोग किसके लिए किया जाता है? A String multiplication स्ट्रिंग गुणन B Exponentiation (power) घातांक (शक्ति) C Dictionary unpacking शब्दकोश खोलना D Keyword args कीवर्ड तर्क ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ** is Python's exponentiation operator: 2**3 = 8 (2 raised to the power 3). व्याख्या (हिन्दी) ** पायथन का घातांक ऑपरेटर है: 2**3 = 8 (2 की घात 3 तक बढ़ाया गया)। 🎯 Exam Perspective यह सवाल Computer Fundamentals ("Introduction to Computer" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions Inheritance in Python is defined as? Which Python module is used for regular expressions? Python multiple inheritance is? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2004 Question 2004 EN + हिं Medium GB Which Python module is used for regular expressions? IN रेगुलर एक्सप्रेशन के लिए किस पायथन मॉड्यूल का उपयोग किया जाता है? A regex regex B re दोबारा C regexp रेगुलर एक्सप्रेशन D pattern नमूना ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Python's 're' module provides regular expression matching operations. व्याख्या (हिन्दी) पायथन का 'री' मॉड्यूल नियमित अभिव्यक्ति मिलान संचालन प्रदान करता है। 🎯 Exam Perspective यह प्रश्न Computer Fundamentals ("Introduction to Computer" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions MRO (Method Resolution Order) in Python? Python operator ** is used for? Python 'with' statement is used for? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2005 Question 2005 EN + हिं Medium GB os.path.join() in Python is used for? IN Python में os.path.join() का उपयोग किसके लिए किया जाता है? A Joining lists सूची में शामिल होना B Building file paths in an OS-independent way ओएस-स्वतंत्र तरीके से फ़ाइल पथ बनाना C Joining networks नेटवर्क से जुड़ना D Concatenating strings संयोजित तार ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) os.path.join() combines path components using the correct OS separator (/ on Unix, \ on Windows). व्याख्या (हिन्दी) os.path.join() सही OS विभाजक (/ यूनिक्स पर, \ विंडोज़ पर) का उपयोग करके पथ घटकों को जोड़ता है। 🎯 Exam Perspective Computer Fundamentals ("Introduction to Computer" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output of 5//2 in Python? enumerate() in Python? Python __str__ method is called by? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2006 Question 2006 EN + हिं Medium GB Which Python library is used for HTTP requests? IN HTTP अनुरोधों के लिए किस पायथन लाइब्रेरी का उपयोग किया जाता है? A http http B requests अनुरोध C urllib only केवल urllib D socket सॉकेट ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) The 'requests' library provides a simple, elegant API for making HTTP requests in Python. व्याख्या (हिन्दी) 'अनुरोध' लाइब्रेरी पायथन में HTTP अनुरोध करने के लिए एक सरल, सुरुचिपूर्ण एपीआई प्रदान करती है। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Computer Fundamentals ("Introduction to Computer" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions enumerate() in Python? Which Python keyword checks membership in a sequence? Python f-strings (f'Hello {name}') provide? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2007 Question 2007 EN + हिं Medium GB JSON module in Python provides? IN पायथन में JSON मॉड्यूल क्या प्रदान करता है? A Database access डेटाबेस पहुंच B Encoding/decoding JSON data (json.dumps, json.loads) JSON डेटा एन्कोडिंग/डिकोडिंग (json.dumps, json.loads) C JavaScript execution जावास्क्रिप्ट निष्पादन D API creation एपीआई निर्माण ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Python's json module serializes Python objects to JSON (json.dumps) and parses JSON to Python (json.loads). व्याख्या (हिन्दी) पायथन का json मॉड्यूल, Python ऑब्जेक्ट को JSON (json.dumps) में क्रमबद्ध करता है और JSON को Python (json.loads) में पार्स करता है। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Computer Fundamentals ("Introduction to Computer" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions os.path.join() in Python is used for? Python multiple inheritance is? enumerate() in Python? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2008 Question 2008 EN + हिं Medium GB Python f-strings (f'Hello {name}') provide? IN पायथन एफ-स्ट्रिंग्स (एफ'हैलो {नाम}') प्रदान करता है? A Fixed formatting निश्चित स्वरूपण B Inline expression evaluation within strings (formatted string literals) स्ट्रिंग्स के भीतर इनलाइन अभिव्यक्ति मूल्यांकन (स्वरूपित स्ट्रिंग अक्षर) C File formatting फ़ाइल स्वरूपण D Function strings फ़ंक्शन स्ट्रिंग्स ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) F-strings allow embedding Python expressions directly in string literals using {expression} syntax. व्याख्या (हिन्दी) एफ-स्ट्रिंग्स, {अभिव्यक्ति} सिंटैक्स का उपयोग करके पायथन अभिव्यक्तियों को सीधे स्ट्रिंग शाब्दिक में एम्बेड करने की अनुमति देते हैं। 🎯 Exam Perspective Computer Fundamentals ("Introduction to Computer" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions Which Python keyword checks membership in a sequence? Python multiple inheritance is? Python 'with' statement is used for? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2009 Question 2009 EN + हिं Medium GB Which Python keyword checks membership in a sequence? IN कौन सा पायथन कीवर्ड एक क्रम में सदस्यता की जाँच करता है? A has है B in में C contains रोकना D includes शामिल ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) The 'in' operator checks if an element exists in a sequence (list, tuple, string, dict). व्याख्या (हिन्दी) 'इन' ऑपरेटर जाँचता है कि कोई तत्व अनुक्रम (सूची, टुपल, स्ट्रिंग, डिक्ट) में मौजूद है या नहीं। 🎯 Exam Perspective यह सवाल Computer Fundamentals ("Introduction to Computer" sub-topic) category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions os.path.join() in Python is used for? Python operator ** is used for? JSON module in Python provides? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)
2010 Question 2010 EN + हिं Medium GB enumerate() in Python? IN पायथन में गणना ()? A Counts elements तत्वों की गणना करता है B Returns index-value pairs when iterating over a sequence अनुक्रम पर पुनरावृत्ति करते समय सूचकांक-मूल्य जोड़े लौटाता है C Enumeration class गणना वर्ग D Named constants नामित स्थिरांक ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) enumerate(iterable) yields (index, value) pairs, eliminating the need for separate counter variables. व्याख्या (हिन्दी) अलग-अलग काउंटर वेरिएबल्स की आवश्यकता को समाप्त करते हुए, गणना (पुनरावर्तनीय) पैदावार (सूचकांक, मूल्य) जोड़े। 🎯 Exam Perspective यह प्रश्न Computer Fundamentals ("Introduction to Computer" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output of 5//2 in Python? Python __str__ method is called by? Which Python keyword checks membership in a sequence? 📚 Related Topic Generations of Computer (21) Input Devices (36) Output Devices (35)