नमस्ते · Hello

उद्यमेन हि सिध्यन्ति कार्याणि न मनोरथैः।

काम परिश्रमले पूरा हुन्छ, इच्छाले मात्र होइन।

Work is done by effort, not by wishing alone.

…

कम्प्युटर र सूचना प्रविधि (प्राविधिक)

कम्प्युटर र सूचना प्रविधि (प्राविधिक)

Computer & IT (Technical) · ५,०७६ प्रश्न

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

कम्प्युटर र IT: प्रश्न र उत्तर

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

  1. In Python, a class P defines def __str__(self): return 'P!'. What does print(P()) display?

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

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

  2. In Python, class A defines hi() returning 'A', and class B(A) overrides hi() to return 'B' + super().hi(). What does print(B().hi()) display?

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

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

  3. In Python: class A: n = 0 (a class attribute). After a = A(); b = A(); a.n = 5, what does print(A.n, b.n) display?

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

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

  4. What is the output of the Python code: fs = [lambda: i for i in range(3)]; print([f() for f in fs]) ?

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

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

  5. A Python function f has a try block containing return 1 and a finally block containing return 2. What does f() return?

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

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

  6. What is the output of the Python code: print('abc' < 'abd', 'Z' < 'a') ?

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

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

  7. What is the output of the Python code: print(1 < 3 > 2) ?

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

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

  8. What is the output of the Python code: print(max(['kiwi', 'apple', 'fig'], key=len)) ?

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

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

  9. What is the output of the Python code: d = {'a': 1, 'b': 2}; d.update({'b': 5, 'c': 3}); print(d) ?

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

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

  10. What is the output of the Python code: print(sorted({1, 2, 3} & {2, 3, 4}), sorted({1, 2} ^ {2, 3})) ?

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

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

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