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
1981
EN + हिं Medium
GB Which NoSQL type stores data as key-value pairs?
IN कौन सा NoSQL प्रकार डेटा को कुंजी-मूल्य जोड़े के रूप में संग्रहीत करता है?
A
Document store दस्तावेज़ भंडार
B
Column family स्तम्भ परिवार
C
Key-value store कुंजी-मूल्य भंडार
D
Graph database ग्राफ़ डेटाबेस
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Key-value stores (Redis, DynamoDB, Memcached) store data as simple key-value pairs for fast retrieval.
व्याख्या (हिन्दी) कुंजी-मूल्य भंडार (रेडिस, डायनेमोडीबी, मेम्केच्ड) तेजी से पुनर्प्राप्ति के लिए डेटा को सरल कुंजी-मूल्य जोड़े के रूप में संग्रहीत करते हैं।
1982
EN + हिं Medium
GB Which data type in Python is immutable?
IN पायथन में कौन सा डेटा प्रकार अपरिवर्तनीय है?
A
List सूची
B
Dictionary शब्दकोष
C
Tuple टपल
D
Set तय करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Python tuples are immutable — their elements cannot be changed after creation, unlike lists.
व्याख्या (हिन्दी) पायथन टुपल्स अपरिवर्तनीय हैं - सूचियों के विपरीत, उनके तत्वों को निर्माण के बाद नहीं बदला जा सकता है।
1983
EN + हिं Medium
GB Python list comprehension [x*2 for x in range(5)] produces?
IN पायथन सूची समझ [x*2 for x in रेंज(5)] उत्पन्न करती है?
A
[0,2,4,6,8] [0,2,4,6,8]
B
[2,4,6,8,10] [2,4,6,8,10]
C
[1,2,3,4,5] [1,2,3,4,5]
D
[0,1,2,3,4] [0,1,2,3,4]
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) range(5) gives 0-4; [x*2 for x in range(5)] = [0*2, 1*2, 2*2, 3*2, 4*2] = [0,2,4,6,8].
व्याख्या (हिन्दी) रेंज(5) 0-4 देता है; [x*2 for x in रेंज(5)] = [0*2, 1*2, 2*2, 3*2, 4*2] = [0,2,4,6,8]।
1984
EN + हिं Easy
GB What does len([1,2,3,4,5]) return in Python?
IN पायथन में len([1,2,3,4,5]) क्या लौटाता है?
A
4 4
B
5 5
C
6 6
D
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 तत्व हैं।
1985
EN + हिं Medium
GB Python dictionary key must be?
IN पायथन डिक्शनरी कुंजी होनी चाहिए?
A
String डोरी
B
Integer पूर्णांक
C
Immutable (string, int, tuple) अपरिवर्तनीय (स्ट्रिंग, इंट, टुपल)
D
Any type किसी भी प्रकार का
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Dictionary keys must be hashable (immutable): strings, integers, tuples are valid; lists are not.
व्याख्या (हिन्दी) शब्दकोश कुंजियाँ धोने योग्य (अपरिवर्तनीय) होनी चाहिए: स्ट्रिंग्स, पूर्णांक, टुपल्स मान्य हैं; सूचियाँ नहीं हैं.
1986
EN + हिं Medium
GB Which Python keyword is used to handle exceptions?
IN अपवादों को संभालने के लिए किस पायथन कीवर्ड का उपयोग किया जाता है?
A
catch पकड़ना
B
except के अलावा
C
handle सँभालना
D
error गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Python uses try/except (not try/catch) for exception handling.
व्याख्या (हिन्दी) अपवाद प्रबंधन के लिए पायथन प्रयास/छोड़कर (कोशिश/पकड़ नहीं) का उपयोग करता है।
1987
EN + हिं Easy
GB What is the output of print(type(3.14)) in Python?
IN पायथन में print(type(3.14)) का आउटपुट क्या है?
A
<class 'int'> <class 'int'>
B
<class 'float'> <class 'float'>
C
<class 'double'> <class 'double'>
D
<class 'decimal'> <class 'decimal'>
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 3.14 is a floating-point literal, so type() returns .
व्याख्या (हिन्दी) 3.14 एक फ़्लोटिंग-पॉइंट शाब्दिक है, इसलिए type() रिटर्न देता है।
1988
EN + हिं Medium
GB Python's 'pass' statement?
IN पायथन का 'पास' कथन?
A
Exits program प्रोग्राम से बाहर निकलें
B
Does nothing — placeholder for empty code block कुछ नहीं करता - खाली कोड ब्लॉक के लिए प्लेसहोल्डर
C
Passes to next function अगले फ़ंक्शन में चला जाता है
D
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.
व्याख्या (हिन्दी) 'पास' एक शून्य ऑपरेशन है जिसका उपयोग प्लेसहोल्डर के रूप में किया जाता है जहां कोड को वाक्यात्मक रूप से आवश्यक है लेकिन किसी कार्रवाई की आवश्यकता नहीं है।
1989
EN + हिं Medium
GB Which Python function converts integer to string?
IN कौन सा पायथन फ़ंक्शन पूर्णांक को स्ट्रिंग में परिवर्तित करता है?
A
int() int()
B
float() तैरना()
C
str() str()
D
chr() सीएचआर()
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) str() converts its argument to a string representation.
व्याख्या (हिन्दी) str() अपने तर्क को एक स्ट्रिंग प्रतिनिधित्व में परिवर्तित करता है।
1990
EN + हिं Medium
GB Python range(1,10,2) generates?
IN पायथन रेंज(1,10,2) उत्पन्न करता है?
A
[1,3,5,7,9] [1,3,5,7,9]
B
[1,2,3,4,5,6,7,8,9] [1,2,3,4,5,6,7,8,9]
C
[2,4,6,8,10] [2,4,6,8,10]
D
[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 से पहले रुकता है)।
1991
EN + हिं Medium
GB Lambda in Python is?
IN पायथन में लैम्ब्डा है?
A
A for loop लूप के लिए ए
B
An anonymous function defined in one line एक अनाम फ़ंक्शन को एक पंक्ति में परिभाषित किया गया है
C
A class एक वर्ग
D
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 के बराबर है।
1992
EN + हिं Easy
GB What does *args in Python function mean?
IN पायथन फ़ंक्शन में *args का क्या अर्थ है?
A
Keyword arguments खोजशब्द तर्क
B
Variable number of positional arguments as tuple टपल के रूप में स्थितीय तर्कों की परिवर्तनीय संख्या
C
Array argument सरणी तर्क
D
All required args सभी आवश्यक तर्क
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) *args allows a function to accept any number of positional arguments, collected into a tuple.
व्याख्या (हिन्दी) *args किसी फ़ंक्शन को टपल में एकत्रित किसी भी संख्या में स्थितीय तर्कों को स्वीकार करने की अनुमति देता है।
1993
EN + हिं Medium
GB **kwargs in Python?
IN **पायथन में क्वार्ग्स?
A
Double multiplication दोहरा गुणा
B
Variable number of keyword arguments as dictionary शब्दकोश के रूप में कीवर्ड तर्कों की परिवर्तनीय संख्या
C
Key-value function कुंजी-मूल्य फ़ंक्शन
D
Two argument arrays दो तर्क सारणी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) **kwargs allows a function to accept any number of keyword arguments, collected into a dictionary.
व्याख्या (हिन्दी) **kwargs किसी फ़ंक्शन को शब्दकोश में एकत्रित किसी भी संख्या में कीवर्ड तर्कों को स्वीकार करने की अनुमति देता है।
1994
EN + हिं Medium
GB Python decorator is used to?
IN पायथन डेकोरेटर का उपयोग किया जाता है?
A
Decorate output आउटपुट को सजाएं
B
Wrap a function to modify or extend its behavior without changing its code किसी फ़ंक्शन का कोड बदले बिना उसके व्यवहार को संशोधित या विस्तारित करने के लिए उसे लपेटें
C
Create classes कक्षाएं बनाएं
D
Format strings स्ट्रिंग्स को प्रारूपित करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Decorators wrap functions with additional behavior using @decorator syntax before function definition.
व्याख्या (हिन्दी) डेकोरेटर फ़ंक्शन परिभाषा से पहले @decorator सिंटैक्स का उपयोग करके अतिरिक्त व्यवहार के साथ फ़ंक्शन को लपेटते हैं।
1995
EN + हिं Medium
GB Generator in Python uses which keyword?
IN पायथन में जेनरेटर किस कीवर्ड का उपयोग करता है?
A
return वापस करना
B
yield उपज
C
generate उत्पन्न
D
produce उत्पादन करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) yield makes a function a generator — it produces values lazily without storing all in memory.
व्याख्या (हिन्दी) यील्ड एक फ़ंक्शन को जनरेटर बनाता है - यह मेमोरी में सभी को संग्रहीत किए बिना आलस्य से मान उत्पन्न करता है।
1981–1995 of 2618