कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Given int f(int n) { if (n <= 1) return n; return f(n / 2) + n; }, what does f(10) return?
सही उत्तर: ग) 18
f(1) = 1, f(2) = f(1) + 2 = 3, f(5) = f(2) + 5 = 8, f(10) = f(5) + 10 = 18.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Given int f(int n) { return n == 0 ? 1 : 2 * f(n - 1); }, what does printf("%d", f(5)); print?
सही उत्तर: क) 32
f(n) doubles the result n times starting from 1, so f(5) = 2^5 = 32.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: char str[] = "abc"; printf("%d", (int)sizeof(str) * 2); ?
सही उत्तर: क) 8
The array holds a, b, c and '\0', so sizeof(str) is 4 and 4 * 2 = 8.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: printf("%c", "COMPUTER"[3] + 1); ?
सही उत्तर: घ) Q
"COMPUTER"[3] is 'P' (indices start at 0) and adding 1 gives 'Q'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
On an ASCII system, what is printed by the C code: printf("%d", toupper('n') - 'A'); ?
सही उत्तर: क) 13
toupper('n') is 'N' (78) and 'A' is 65, so the difference is 13, the position of N counted from A starting at 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: int a[4] = {10, 20, 30, 40}; printf("%d", *(a + 1) * a[2] / 10); ?
सही उत्तर: ग) 60
*(a + 1) is a[1] = 20 and a[2] = 30, so 20 * 30 / 10 = 60.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: int x = 10; if (x > 5) if (x > 20) printf("A"); else printf("B"); ?
सही उत्तर: ग) B
The else belongs to the nearest if (x > 20); x > 5 is true and x > 20 is false, so "B" is printed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: int i, j, c = 0; for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) if (i < j) c++; printf("%d", c); ?
सही उत्तर: ग) 6
The pairs with i < j are 3 + 2 + 1 + 0 = 6 (that is, 4C2).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: int x = 3, y = 4, z; z = x++ + --y; printf("%d %d %d", x, y, z); ?
सही उत्तर: घ) 4 3 6
x++ gives 3 and then x becomes 4; --y makes y 3 first; so z = 3 + 3 = 6.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C code: int n = 7; printf("%d", n % 2 == 0 ? n / 2 : 3 * n + 1); ?
सही उत्तर: ख) 22
7 % 2 is 1, so the condition is false and 3 * 7 + 1 = 22 is printed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।