नमस्ते · Hello

विद्याधनं सर्वधनप्रधानम्।

सबै धनमध्ये विद्यारूपी धन नै प्रमुख हो।

Of all wealth, the wealth of learning is the greatest.

…

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

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

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

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

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

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

  1. A nested list comprehension builds a 2-row table in Python: [[i * j for j in range(3)] for i in range(2)]. What is the resulting list?

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

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

  2. What is the output of the Python code: x = [1, 2, 3]; then for i in x: if i == 2: x.remove(i); finally print(x) ?

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

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

  3. In Python, def f(a, b=2, *c): return a + b + len(c). What does print(f(1), f(1, 5, 7, 9)) display?

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

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

  4. A Python dictionary literal uses both 1 and True as keys. What does print({1: 'a', True: 'b'}) display?

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

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

  5. In Python, what is printed by: try: x = int('7') + 'a' / except ValueError: print('V') / except TypeError: print('T') ?

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

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

  6. In Python, class C has a class attribute x = [] . What is printed by: a = C(); b = C(); a.x.append(1); print(b.x) ?

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

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

  7. In Python, class P has __init__(self, n) storing self.n = n and __add__(self, o) returning P(self.n + o.n). What does print((P(2) + P(5)).n) display?

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

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

  8. What is the output of the Python code: g = (i for i in range(3)); print(sum(g), sum(g)) ?

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

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

  9. When max() is applied directly to a dictionary in Python, what does print(max({'a': 3, 'b': 1})) display?

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

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

  10. What is the output of the Python code: print(round(3.14159, 3), round(1234, -2)) ?

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

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

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