कम्प्युटर र सूचना प्रविधि (प्राविधिक)
कम्प्युटर र सूचना प्रविधि (प्राविधिक)
Computer & IT (Technical) · ५,०७६ प्रश्न
५,०७६ प्रश्न उपलब्ध। मोड छान्नुहोस्:
कम्प्युटर र IT: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Running this in Python 3 displays which output? print(set('hello') == set('olleh'))
सही उत्तर: घ) True
Both sets contain the same letters {'h', 'e', 'l', 'o'}, and sets ignore order and duplicates.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print([int(n ** 0.5) for n in (4, 9, 16)])
सही उत्तर: ग) [2, 3, 4]
n ** 0.5 is the square root as a float, and int() converts 2.0, 3.0 and 4.0 to 2, 3 and 4.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(''.join(sorted('cba')))
सही उत्तर: ख) abc
sorted('cba') returns the list ['a', 'b', 'c'], and ''.join() joins it into the string 'abc'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print([c for c in 'banana' if c != 'a'])
सही उत्तर: क) ['b', 'n', 'n']
The comprehension keeps every character except 'a', in order, as a list.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(bool('False'))
सही उत्तर: क) True
Any non-empty string is truthy, so bool('False') is True; only the empty string is False.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print('%d-%s' % (5, 'x'))
सही उत्तर: घ) 5-x
The % operator formats the string, replacing %d with 5 and %s with 'x'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(type({}))
सही उत्तर: ग) <class 'dict'>
Empty braces {} create an empty dictionary; an empty set must be written set().
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(tuple('ab') + (1,))
सही उत्तर: ख) ('a', 'b', 1)
tuple('ab') is ('a', 'b'), and + concatenates it with (1,).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? d = {'x': 1}; d['y'] = d.get('y', 0) + 5; print(d)
सही उत्तर: क) {'x': 1, 'y': 5}
d.get('y', 0) returns the default 0 because 'y' is missing, so d['y'] becomes 5 without any KeyError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print('a b c'.split())
सही उत्तर: घ) ['a', 'b', 'c']
split() with no argument splits on runs of whitespace and discards empty strings.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।