नमस्ते · Hello

श्रद्धावान् लभते ज्ञानम्।

श्रद्धा भएकाले ज्ञान प्राप्त गर्छ। (गीता ४.३९)

One who has faith gains knowledge. (Gita 4.39)

…

कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र

कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)

Computer Officer – 7th Level · Computer & IT Posts

२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:

प्राविधिक पत्र: प्रश्न र उत्तर

सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।

  1. In Python, x = 10 is defined at module level, and def f(): global x; x += 5. What does print(x) display after calling f() twice?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  2. What is the output of the Python code: from collections import Counter; print(Counter('banana').most_common(1)) ?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  3. What is the output of the Python code: s = set(); s.add((1, 2)); s.add((2, 1)); s.add((1, 2)); print(len(s)) ?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  4. Testing the truth value of None, a zero float and a one-space string in Python: what does print(bool(None), bool(0.0), bool(' ')) display?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  5. In Python: try: x = [1, 2][2] / except IndexError: x = -1 / finally: x += 10. What does print(x) display afterwards?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  6. In Python, class Bag stores self.items = [1, 2, 3] in __init__ and defines __len__(self) returning len(self.items). What does print(len(Bag()) * 2) display?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  7. In Python, class A defines f() returning 'A', class B(A) defines nothing new, class C(A) overrides f() to return 'C', and class D(B, C) is empty. What does print(D().f()) display?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  8. In Python, class A has __init__ setting self.v = 1 and a method inc(self) that does self.v += 1 and returns self. What does print(A().inc().inc().v) display?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  9. What is the output of the Python code: nums = [1, 2, 3, 4, 5]; print(nums[1::2], nums[::-2]) ?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  10. Python string formatting with the percent presentation type: what does print('{:.1%}'.format(0.256)) display?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।