कम्प्युटर र सूचना प्रविधि (प्राविधिक)
कम्प्युटर र सूचना प्रविधि (प्राविधिक)
Computer & IT (Technical) · ५,०७६ प्रश्न
५,०७६ प्रश्न उपलब्ध। मोड छान्नुहोस्:
कम्प्युटर र IT: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Using a stack, evaluate the reverse Polish expression 6 2 / 3 - 4 2 * + . The result is:
सही उत्तर: ख) 8
6 / 2 = 3, 3 - 3 = 0, 4 * 2 = 8, and 0 + 8 = 8.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which postfix expression corresponds to the infix expression A + B * C - D / E?
सही उत्तर: क) A B C * + D E / -
B * C and D / E are done first because of precedence; then A is added to B*C and D/E is subtracted, giving A B C * + D E / -.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The numbers 1, 2 and 3 are pushed onto an empty stack in that order, and pops may be done at any time between the pushes. Which pop sequence is impossible?
सही उत्तर: घ) 3 1 2
To pop 3 first, 1 and 2 must already be on the stack with 2 on top, so 1 cannot come out before 2.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(repr('Python'[10:]))
सही उत्तर: ग) ''
Slicing beyond the end of a sequence does not raise an error; it simply returns an empty string.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python: try: [1][2] / except IndexError: print('I') / except Exception: print('E'). What is printed?
सही उत्तर: ख) I
Index 2 does not exist, so IndexError is raised; only the first matching except clause runs, printing I.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, class A's __init__ sets self.v = 1. What is printed by: a = A(); a.v += 1; b = A(); print(a.v + b.v) ?
सही उत्तर: क) 3
v is an instance attribute, so each object has its own copy: a.v is 2 and b.v is 1, giving 3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(len(range(0, 20, 5)))
सही उत्तर: घ) 4
range(0, 20, 5) produces 0, 5, 10 and 15 (20 is excluded), which is 4 values.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print('abcdef'[::3])
सही उत्तर: ग) ad
A step of 3 takes the characters at indices 0 and 3, which are 'a' and 'd'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print((1, 2) * 2)
सही उत्तर: ख) (1, 2, 1, 2)
Multiplying a tuple by an integer repeats its elements.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Running this in Python 3 displays which output? print(divmod(-7, 2))
सही उत्तर: क) (-4, 1)
Python's // floors towards minus infinity, so -7 // 2 = -4, and -7 % 2 = 1 because -4 * 2 + 1 = -7.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।