कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Evaluating [1, 2, 3][5] in Python raises:
सही उत्तर: क) IndexError
Index 5 is outside the valid range 0 to 2 of the list, so Python raises IndexError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Executing 10 + '5' in Python raises which exception?
सही उत्तर: क) TypeError
Python does not automatically convert between int and str, so adding them raises a TypeError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print('a', 'b', sep='-') in Python?
सही उत्तर: घ) a-b
sep sets the string placed between the printed values; its default is a single space.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What does pow(2, 10, 1000) return in Python?
सही उत्तर: ख) 24
The three-argument pow computes (2 ** 10) % 1000 = 1024 % 1000 = 24.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(sorted(['bb', 'a', 'ccc'], key=len)) in Python?
सही उत्तर: घ) ['a', 'bb', 'ccc']
key=len sorts the strings by their lengths 1, 2 and 3 in ascending order.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(list(filter(lambda x: x % 2 == 0, range(6)))) in Python?
सही उत्तर: ख) [0, 2, 4]
range(6) gives 0 to 5, and filter keeps only the values for which x % 2 == 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(list(enumerate('ab'))) in Python?
सही उत्तर: क) [(0, 'a'), (1, 'b')]
enumerate yields (index, item) pairs, starting from index 0 by default.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(list(zip([1, 2, 3], 'ab'))) in Python?
सही उत्तर: क) [(1, 'a'), (2, 'b')]
zip pairs items position by position and stops at the shortest input, so the 3 is left out.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, the operator is (as in a is b) tests whether:
सही उत्तर: घ) a and b refer to the same object
is compares object identity, while == compares values; two equal lists can be different objects.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python 3, the expression 10 / 2 evaluates to:
सही उत्तर: घ) 5.0
In Python 3 the / operator always performs true division and returns a float, so 10 / 2 gives 5.0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।