कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
The C declaration const int *p; means that:
सही उत्तर: ग) the int pointed to cannot be modified through p, but p itself can be changed
const before int makes the pointed-to value read-only through p; int * const p would make the pointer constant.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
For int a[10];, what is the value of the expression &a[7] - &a[2] ?
सही उत्तर: क) 5
Subtracting two pointers into the same array gives the number of elements between them: 7 - 2 = 5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The C function gets() was removed in the C11 standard mainly because:
सही उत्तर: ख) it cannot limit the input length, which can cause buffer overflow
gets() has no size parameter; fgets(), which takes a buffer size, is the safe alternative.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which C library function copies one string into another?
सही उत्तर: क) strcpy()
strcpy(dest, src) copies src, including the terminating '\0', into dest.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, after int a[5] = {1, 2}; what is the value of a[3]?
सही उत्तर: ग) 0
When an array is partially initialised, the remaining elements are set to 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A C function declared with return type void:
सही उत्तर: क) does not return any value
void as the return type means the function returns no value to the caller.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Given int f(int n) { return n == 0 ? 0 : n % 10 + f(n / 10); } what does f(1234) return?
सही उत्तर: घ) 10
The function adds the digits: 4 + 3 + 2 + 1 = 10.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Given int fib(int n) { return n < 2 ? n : fib(n-1) + fib(n-2); } what does fib(6) return?
सही उत्तर: ग) 8
The sequence is 0, 1, 1, 2, 3, 5, 8, so fib(6) = 8.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C: void f(int x) { x = 10; } int a = 5; f(a); printf("%d", a); What is printed?
सही उत्तर: ग) 5
C passes arguments by value; f changes only its own copy x, so a remains 5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many times is "x" printed by: int i = 3; while (i--) printf("x"); ?
सही उत्तर: ख) 3
i-- tests 3, 2, 1 (true) and then 0 (false), so the body runs 3 times.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।