नमस्ते · Hello

न हि ज्ञानेन सदृशं पवित्रमिह विद्यते।

यस संसारमा ज्ञानजत्तिको पवित्र अरू केही छैन। (गीता ४.३८)

Nothing in this world is as pure as knowledge. (Gita 4.38)

…

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

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

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

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

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

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

  1. In Java, what is printed by: System.out.println('a' + 1); ?

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

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

  2. In Java, what is printed by: System.out.println(1 + 2 + "3" + 4 + 5); ?

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

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

  3. In C++, given void f(int &x) { x *= 2; } and int a = 4;, what is printed by f(a); f(a); cout << a; ?

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

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

  4. In C++, given int add(int a, int b = 4, int c = 1) { return a + b + c; }, what is printed by cout << add(2) << add(2, 3); ?

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

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

  5. In C++, two overloads void f(int) and void f(double) exist. Which one is called by f(3.0f)?

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

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

  6. In C++, class C has static int n = 0 and its constructor does n++. After the declaration C a, b[3]; what is the value of C::n?

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

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

  7. In C++, class A prints "A" in its constructor and "a" in its destructor; class B : public A prints "B" and "b". What is printed when a B object is created and then goes out of scope?

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

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

  8. What is the output of the Python code: print([1, 2, 3] * 2 == [1, 2, 3, 1, 2, 3]) ?

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

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

  9. What is the output of the Python code: print(10 // 3 * 3 + 10 % 3) ?

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

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

  10. What is the output of the Python code: print('Kathmandu'.find('a', 2)) ?

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

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

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