नमस्ते · Hello

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

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

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

…

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

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

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

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

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

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

  1. In C++, struct A has static int count, incremented in its constructor and decremented in its destructor (count starts at 0). What is printed by: { A a; { A b; } cout << A::count; } ?

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

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

  2. In C++, with the overloads int f(int a) { return a * 2; } and double f(double a) { return a / 2; }, what is printed by cout << f(4) << " " << f(4.0); ?

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

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

  3. Trace this C++ fragment and give its output: string s = "abc"; s += "de"; cout << s.length();

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

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

  4. Trace this C++ fragment and give its output: int x = 5; int &r = x; r++; cout << x;

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

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

  5. Given int f(void) { static int x = 10; return x--; }, what is printed by: int a = f(); int b = f(); printf("%d %d", a, b); ?

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

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

  6. Given int count(char *s) { return *s ? 1 + count(s + 1) : 0; }, what does count("Nepal") return?

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

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

  7. Given void f(int n) { if (n == 0) return; printf("%d", n % 10); f(n / 10); }, what does the call f(123) print?

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

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

  8. Given int f(int n) { return n < 10 ? n : f(n / 10); }, what does f(9876) return?

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

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

  9. Given int f(int a, int b) { return b ? f(a, b - 1) + a : 0; }, what does f(4, 3) return?

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

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

  10. Trace this C fragment and give its output: int x = 5; while (x --> 0) printf("%d", x);

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

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

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