नमस्ते · Hello

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

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

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

…

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

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

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

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

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

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

  1. Given void f(int n) { if (n > 0) { printf("%d", n); f(n - 2); } }, what does the call f(7) print?

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

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

  2. Given int add(int a, int b) { return a + b; } and int mul(int a, int b) { return a * b; }, what is printed by: int (*op[])(int, int) = {add, mul}; printf("%d", op[1](3, op[0](1, 2))); ?

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

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

  3. What is printed by the C code: char s[] = "Pokhara", *p = s; while (*p) p++; printf("%d", (int)(p - s)); ?

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

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

  4. What is printed by the C code: char *names[] = {"Ram", "Sita", "Hari"}; printf("%s", *(names + 1) + 2); ?

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

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

  5. What is printed by the C code: int a = 10, b = 4; printf("%d", a & b ? a | b : a ^ b); ?

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

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

  6. What is printed by the C code: int i = 0; loop: i++; if (i < 5) goto loop; printf("%d", i); ?

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

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

  7. With #define ABS(x) x < 0 ? -x : x in C, what is printed by printf("%d", ABS(2 - 5)); ?

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

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

  8. Given int f(int n) { static int s = 0; s += n; if (n > 0) f(n - 1); return s; }, what does f(4) return when called once?

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

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

  9. What is printed by the C code: char *p = "Kathmandu"; int n = 0; while (*p) { if (strchr("aeiou", *p)) n++; p++; } printf("%d", n); ?

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

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

  10. What is printed by the C code: char s[10] = "ab"; strncat(s, "cdef", 2); printf("%s", s); ?

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

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

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