Computer Fundamentals — MCQ Practice

Hindi aur English dono mein practice karo — click karo answer check karne ke liye.

📚 2618 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
2618 questions

Question 1996

EN + हिं Medium
GB Python 'with' statement is used for?
IN पायथन 'विथ' स्टेटमेंट का उपयोग किसके लिए किया जाता है?
Conditional logic सशर्त तर्क
Context management — automatically handles resource cleanup (close files) संदर्भ प्रबंधन - स्वचालित रूप से संसाधन सफ़ाई को संभालता है (फ़ाइलें बंद करें)
While loops जबकि लूप्स
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 जरूर पढ़ें।

Question 1997

EN + हिं Easy
GB What does __init__ method do in Python class?
IN पायथन क्लास में __init__ विधि क्या करती है?
Initializes the module मॉड्यूल को प्रारंभ करता है
Constructor — initializes a new object instance's attributes कंस्ट्रक्टर - एक नए ऑब्जेक्ट इंस्टेंस की विशेषताओं को आरंभ करता है
Deletes objects ऑब्जेक्ट हटाता है
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 जरूर पढ़ें।

Question 1998

EN + हिं Medium
GB Inheritance in Python is defined as?
IN पायथन में वंशानुक्रम को किस रूप में परिभाषित किया गया है?
class Child(Parent): कक्षा बच्चा(अभिभावक):
class Child extends Parent: क्लास चाइल्ड माता-पिता का विस्तार करता है:
class Child inherits Parent: कक्षा बच्चे को माता-पिता विरासत में मिलते हैं:
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 दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 1999

EN + हिं Medium
GB Python multiple inheritance is?
IN पायथन मल्टीपल इनहेरिटेंस है?
Not supported समर्थित नहीं
Supported — class C(A, B): inherits from both A and B समर्थित - वर्ग सी(ए, बी): ए और बी दोनों से विरासत में मिला है
Only through interfaces केवल इंटरफ़ेस के माध्यम से
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 न हो।

Question 2000

EN + हिं Medium
GB MRO (Method Resolution Order) in Python?
IN पायथन में एमआरओ (विधि रिज़ॉल्यूशन ऑर्डर)?
Method Running Order विधि संचालन क्रम
Order in which Python searches classes for method/attribute in inheritance वह क्रम जिसमें पायथन इनहेरिटेंस में विधि/विशेषता के लिए कक्षाएं खोजता है
Memory Resource Order मेमोरी संसाधन क्रम
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 समझें।

Question 2001

EN + हिं Medium
GB Python __str__ method is called by?
IN पायथन __str__ विधि को किसके द्वारा कहा जाता है?
Direct call only केवल डायरेक्ट कॉल
print() function and str() conversion प्रिंट() फ़ंक्शन और str() रूपांतरण
__repr__ __repr__
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 जरूर पढ़ें।

Question 2002

EN + हिं Easy
GB What is the output of 5//2 in Python?
IN पायथन में 5//2 का आउटपुट क्या है?
2.5 2.5
2 2
3 3
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 जरूर पढ़ें।

Question 2003

EN + हिं Medium
GB Python operator ** is used for?
IN पायथन ऑपरेटर ** का उपयोग किसके लिए किया जाता है?
String multiplication स्ट्रिंग गुणन
Exponentiation (power) घातांक (शक्ति)
Dictionary unpacking शब्दकोश खोलना
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 जरूर पढ़ें।

Question 2004

EN + हिं Medium
GB Which Python module is used for regular expressions?
IN रेगुलर एक्सप्रेशन के लिए किस पायथन मॉड्यूल का उपयोग किया जाता है?
regex regex
re दोबारा
regexp रेगुलर एक्सप्रेशन
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 दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 2005

EN + हिं Medium
GB os.path.join() in Python is used for?
IN Python में os.path.join() का उपयोग किसके लिए किया जाता है?
Joining lists सूची में शामिल होना
Building file paths in an OS-independent way ओएस-स्वतंत्र तरीके से फ़ाइल पथ बनाना
Joining networks नेटवर्क से जुड़ना
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 न हो।

Question 2006

EN + हिं Medium
GB Which Python library is used for HTTP requests?
IN HTTP अनुरोधों के लिए किस पायथन लाइब्रेरी का उपयोग किया जाता है?
http http
requests अनुरोध
urllib only केवल urllib
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 समझें।

Question 2007

EN + हिं Medium
GB JSON module in Python provides?
IN पायथन में JSON मॉड्यूल क्या प्रदान करता है?
Database access डेटाबेस पहुंच
Encoding/decoding JSON data (json.dumps, json.loads) JSON डेटा एन्कोडिंग/डिकोडिंग (json.dumps, json.loads)
JavaScript execution जावास्क्रिप्ट निष्पादन
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 जरूर पढ़ें।

Question 2008

EN + हिं Medium
GB Python f-strings (f'Hello {name}') provide?
IN पायथन एफ-स्ट्रिंग्स (एफ'हैलो {नाम}') प्रदान करता है?
Fixed formatting निश्चित स्वरूपण
Inline expression evaluation within strings (formatted string literals) स्ट्रिंग्स के भीतर इनलाइन अभिव्यक्ति मूल्यांकन (स्वरूपित स्ट्रिंग अक्षर)
File formatting फ़ाइल स्वरूपण
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 जरूर पढ़ें।

Question 2009

EN + हिं Medium
GB Which Python keyword checks membership in a sequence?
IN कौन सा पायथन कीवर्ड एक क्रम में सदस्यता की जाँच करता है?
has है
in में
contains रोकना
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 जरूर पढ़ें।

Question 2010

EN + हिं Medium
GB enumerate() in Python?
IN पायथन में गणना ()?
Counts elements तत्वों की गणना करता है
Returns index-value pairs when iterating over a sequence अनुक्रम पर पुनरावृत्ति करते समय सूचकांक-मूल्य जोड़े लौटाता है
Enumeration class गणना वर्ग
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 दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।