कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
A function prototype in C informs the compiler about a function's:
सही उत्तर: ग) name, return type and parameter types
A prototype such as int add(int, int); declares the interface so calls can be checked before the definition is seen.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by: int x = 0; if (x = 5) printf("yes"); else printf("no"); ?
सही उत्तर: घ) yes
x = 5 is an assignment whose value is 5 (non-zero, true), so 'yes' is printed; == was probably intended.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by: for (i = 0; i < 5; i++) { if (i == 2) break; printf("%d", i); } ?
सही उत्तर: ख) 01
When i becomes 2 the break ends the loop, so only 0 and 1 are printed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the value of c after: int n = 16, c = 0; while (n > 1) { n /= 2; c++; } ?
सही उत्तर: ग) 4
n goes 16 -> 8 -> 4 -> 2 -> 1, which takes 4 iterations.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many times does the body of the C loop while (0) { printf("x"); } execute?
सही उत्तर: ख) 0
The condition is false at the start, so the body of the while loop never runs.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by: unsigned char c = 255; c = c + 1; printf("%d", c); ?
सही उत्तर: घ) 0
An 8-bit unsigned char wraps around modulo 256, so 255 + 1 stored in c becomes 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Considering operator precedence, printf("%d", 1 || 0 && 0); outputs:
सही उत्तर: ग) 1
&& has higher precedence than ||, so the expression is 1 || (0 && 0) = 1 || 0 = 1.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Shifting the integer 3 left by two bit positions (3 << 2) in C produces:
सही उत्तर: ग) 12
Shifting left by 2 multiplies by 2^2: 3 x 4 = 12.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Applying the bitwise OR operator to 6 and 9 in C (6 | 9) gives:
सही उत्तर: ख) 15
0110 | 1001 = 1111, which is 15.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C (not C++), on a system where int is 4 bytes and char is 1 byte, what is the value of sizeof('A')?
सही उत्तर: घ) 4
In C a character constant such as 'A' has type int, so sizeof('A') equals sizeof(int); in C++ it would be 1.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।