कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
What is the value of s after: int s = 0, i; for (i = 1; i <= 10; i++) s += i; ?
सही उत्तर: ग) 55
s = 1 + 2 + ... + 10 = 10 x 11 / 2 = 55.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many times does the body of for (i = 1; i <= 100; i *= 2) execute?
सही उत्तर: घ) 7
i takes the values 1, 2, 4, 8, 16, 32, 64; the next value 128 exceeds 100, so 7 iterations.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many times is "*" printed by: for (i = 0; i < 3; i++) for (j = 0; j < 4; j++) printf("*"); ?
सही उत्तर: ख) 12
The inner loop runs 4 times for each of the 3 outer iterations: 3 x 4 = 12.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which loop header creates an intentional infinite loop in C?
सही उत्तर: ग) for (;;)
A for loop with an empty condition is treated as always true, so for (;;) runs forever.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is the value of (int)-3.99 ?
सही उत्तर: ख) -3
Converting a floating value to int truncates toward zero, so -3.99 becomes -3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
On a two's complement machine, what is the value of the C expression ~0 ?
सही उत्तर: घ) -1
~0 flips every bit to 1; all 1s in two's complement represents -1.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, the logical NOT expression !5 evaluates to:
सही उत्तर: ग) 0
Logical NOT of any non-zero value is 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is printed by: char c = 'A' + 2; printf("%c", c); ?
सही उत्तर: ग) C
'A' has code 65; 65 + 2 = 67, which is the character 'C' when printed with %c.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, after: int a = 5, b; b = ++a * 2; what are the values of a and b?
सही उत्तर: ख) a = 6, b = 12
Pre-increment raises a to 6 before it is used, so b = 6 * 2 = 12.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is the value of x after: int x = (1, 2, 3); ?
सही उत्तर: घ) 3
The comma operator evaluates its operands left to right and yields the value of the last one, 3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।