नमस्ते · Hello

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

विद्याले विनम्रता दिन्छ, विनम्रताबाट योग्यता आउँछ।

Knowledge gives humility, and humility makes one worthy.

…

प्रोग्रामिङ – Programming MCQ

प्रोग्रामिङ – कम्प्युटर र IT

Programming · Computer & IT (Technical) · १,५६५ प्रश्न

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

प्रोग्रामिङ: प्रश्न र उत्तर

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

  1. The inorder traversal of any binary search tree visits the keys in:

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

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

  2. Convert the parenthesised infix expression (A + B) * C into prefix notation, with each operator written before its operands.

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

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

  3. How many swaps does bubble sort perform to sort [4, 1, 3, 2] into ascending order?

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

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

  4. What is the output of the Python code: a, b = 0, 1; then for _ in range(6): a, b = b, a + b; finally print(a) ?

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

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

  5. 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?

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

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

  6. 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) ?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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