Computer Fundamentals — MCQ Practice

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

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

Question 2251

EN + हिं Easy
GB What does len([1,2,3,4,5]) return in Python?
IN पायथन में len([1,2,3,4,5]) क्या लौटाता है?
4 4
5 5
6 6
3 3
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) len() returns the number of items in a sequence; [1,2,3,4,5] has 5 elements.
व्याख्या (हिन्दी) लेन() एक क्रम में वस्तुओं की संख्या लौटाता है; [1,2,3,4,5] में 5 तत्व हैं।
🎯 Exam Perspective
Computer Fundamentals से जुड़ा यह सवाल — difficulty level "Easy" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 2252

EN + हिं Medium
GB Python dictionary key must be?
IN पायथन डिक्शनरी कुंजी होनी चाहिए?
String डोरी
Integer पूर्णांक
Immutable (string, int, tuple) अपरिवर्तनीय (स्ट्रिंग, इंट, टुपल)
Any type किसी भी प्रकार का
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Dictionary keys must be hashable (immutable): strings, integers, tuples are valid; lists are not.
व्याख्या (हिन्दी) शब्दकोश कुंजियाँ धोने योग्य (अपरिवर्तनीय) होनी चाहिए: स्ट्रिंग्स, पूर्णांक, टुपल्स मान्य हैं; सूचियाँ नहीं हैं.
🎯 Exam Perspective
SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Computer Fundamentals से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 2253

EN + हिं Medium
GB Which Python keyword is used to handle exceptions?
IN अपवादों को संभालने के लिए किस पायथन कीवर्ड का उपयोग किया जाता है?
catch पकड़ना
except के अलावा
handle सँभालना
error गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Python uses try/except (not try/catch) for exception handling.
व्याख्या (हिन्दी) अपवाद प्रबंधन के लिए पायथन प्रयास/छोड़कर (कोशिश/पकड़ नहीं) का उपयोग करता है।
🎯 Exam Perspective
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Computer Fundamentals का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 2254

EN + हिं Easy
GB What is the output of print(type(3.14)) in Python?
IN पायथन में print(type(3.14)) का आउटपुट क्या है?
<class 'int'> <class 'int'>
<class 'float'> <class 'float'>
<class 'double'> <class 'double'>
<class 'decimal'> <class 'decimal'>
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 3.14 is a floating-point literal, so type() returns .
व्याख्या (हिन्दी) 3.14 एक फ़्लोटिंग-पॉइंट शाब्दिक है, इसलिए type() रिटर्न देता है।
🎯 Exam Perspective
Computer Fundamentals के इस प्रश्न को — difficulty level "Easy" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 2255

EN + हिं Medium
GB Python's 'pass' statement?
IN पायथन का 'पास' कथन?
Exits program प्रोग्राम से बाहर निकलें
Does nothing — placeholder for empty code block कुछ नहीं करता - खाली कोड ब्लॉक के लिए प्लेसहोल्डर
Passes to next function अगले फ़ंक्शन में चला जाता है
Skips iteration पुनरावृत्ति छोड़ देता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 'pass' is a null operation used as a placeholder where code is syntactically required but no action needed.
व्याख्या (हिन्दी) 'पास' एक शून्य ऑपरेशन है जिसका उपयोग प्लेसहोल्डर के रूप में किया जाता है जहां कोड को वाक्यात्मक रूप से आवश्यक है लेकिन किसी कार्रवाई की आवश्यकता नहीं है।
🎯 Exam Perspective
यह सवाल Computer Fundamentals category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 2256

EN + हिं Medium
GB Which Python function converts integer to string?
IN कौन सा पायथन फ़ंक्शन पूर्णांक को स्ट्रिंग में परिवर्तित करता है?
int() int()
float() तैरना()
str() str()
chr() सीएचआर()
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) str() converts its argument to a string representation.
व्याख्या (हिन्दी) str() अपने तर्क को एक स्ट्रिंग प्रतिनिधित्व में परिवर्तित करता है।
🎯 Exam Perspective
यह प्रश्न Computer Fundamentals की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 2257

EN + हिं Medium
GB Python range(1,10,2) generates?
IN पायथन रेंज(1,10,2) उत्पन्न करता है?
[1,3,5,7,9] [1,3,5,7,9]
[1,2,3,4,5,6,7,8,9] [1,2,3,4,5,6,7,8,9]
[2,4,6,8,10] [2,4,6,8,10]
[1,10,2] [1,10,2]
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) range(start=1, stop=10, step=2) generates: 1,3,5,7,9 (starts at 1, steps by 2, stops before 10).
व्याख्या (हिन्दी) रेंज (प्रारंभ = 1, स्टॉप = 10, चरण = 2) उत्पन्न करता है: 1,3,5,7,9 (1 से शुरू होता है, चरण 2 से, 10 से पहले रुकता है)।
🎯 Exam Perspective
Computer Fundamentals से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 2258

EN + हिं Medium
GB Lambda in Python is?
IN पायथन में लैम्ब्डा है?
A for loop लूप के लिए ए
An anonymous function defined in one line एक अनाम फ़ंक्शन को एक पंक्ति में परिभाषित किया गया है
A class एक वर्ग
An import statement एक आयात विवरण
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Lambda creates small anonymous functions: lambda x: x*2 is equivalent to def f(x): return x*2.
व्याख्या (हिन्दी) लैम्ब्डा छोटे अज्ञात फ़ंक्शन बनाता है: लैम्ब्डा x: x*2 def f(x): रिटर्न x*2 के बराबर है।
🎯 Exam Perspective
UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Computer Fundamentals से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 2259

EN + हिं Easy
GB What does *args in Python function mean?
IN पायथन फ़ंक्शन में *args का क्या अर्थ है?
Keyword arguments खोजशब्द तर्क
Variable number of positional arguments as tuple टपल के रूप में स्थितीय तर्कों की परिवर्तनीय संख्या
Array argument सरणी तर्क
All required args सभी आवश्यक तर्क
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) *args allows a function to accept any number of positional arguments, collected into a tuple.
व्याख्या (हिन्दी) *args किसी फ़ंक्शन को टपल में एकत्रित किसी भी संख्या में स्थितीय तर्कों को स्वीकार करने की अनुमति देता है।
🎯 Exam Perspective
अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Computer Fundamentals का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Easy"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 2260

EN + हिं Medium
GB **kwargs in Python?
IN **पायथन में क्वार्ग्स?
Double multiplication दोहरा गुणा
Variable number of keyword arguments as dictionary शब्दकोश के रूप में कीवर्ड तर्कों की परिवर्तनीय संख्या
Key-value function कुंजी-मूल्य फ़ंक्शन
Two argument arrays दो तर्क सारणी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) **kwargs allows a function to accept any number of keyword arguments, collected into a dictionary.
व्याख्या (हिन्दी) **kwargs किसी फ़ंक्शन को शब्दकोश में एकत्रित किसी भी संख्या में कीवर्ड तर्कों को स्वीकार करने की अनुमति देता है।
🎯 Exam Perspective
Computer Fundamentals के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 2261

EN + हिं Medium
GB Python decorator is used to?
IN पायथन डेकोरेटर का उपयोग किया जाता है?
Decorate output आउटपुट को सजाएं
Wrap a function to modify or extend its behavior without changing its code किसी फ़ंक्शन का कोड बदले बिना उसके व्यवहार को संशोधित या विस्तारित करने के लिए उसे लपेटें
Create classes कक्षाएं बनाएं
Format strings स्ट्रिंग्स को प्रारूपित करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Decorators wrap functions with additional behavior using @decorator syntax before function definition.
व्याख्या (हिन्दी) डेकोरेटर फ़ंक्शन परिभाषा से पहले @decorator सिंटैक्स का उपयोग करके अतिरिक्त व्यवहार के साथ फ़ंक्शन को लपेटते हैं।
🎯 Exam Perspective
यह सवाल Computer Fundamentals category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 2262

EN + हिं Medium
GB Generator in Python uses which keyword?
IN पायथन में जेनरेटर किस कीवर्ड का उपयोग करता है?
return वापस करना
yield उपज
generate उत्पन्न
produce उत्पादन करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) yield makes a function a generator — it produces values lazily without storing all in memory.
व्याख्या (हिन्दी) यील्ड एक फ़ंक्शन को जनरेटर बनाता है - यह मेमोरी में सभी को संग्रहीत किए बिना आलस्य से मान उत्पन्न करता है।
🎯 Exam Perspective
यह प्रश्न Computer Fundamentals की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 2263

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 से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 2264

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
SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Computer Fundamentals से सवाल अक्सर पूछे जाते हैं — difficulty level "Easy"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 2265

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
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Computer Fundamentals का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।