कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Under the C99 standard, what is printed by printf("%d", 17 % -5);?
सही उत्तर: घ) 2
C99 truncates division toward zero: 17 / -5 = -3, and 17 - (-3)(-5) = 17 - 15 = 2; the remainder takes the sign of the dividend.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The sizeof operator in C returns:
सही उत्तर: ग) the size of a type or object in bytes
sizeof yields the storage size in bytes of its operand type or object; strlen counts characters.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, with int a = 0, b = 5; what is the value of b after evaluating the expression (a && b++)?
सही उत्तर: ग) 5
Because a is 0 (false), && short-circuits and b++ is never evaluated, so b remains 5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is printed by: int a = 10; printf("%d", a > 5 && a < 8);
सही उत्तर: ख) 0
a > 5 is true but a < 8 is false, so the logical AND is false, which C prints as 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is printed by: int x = 5; printf("%d", x++ + 2);
सही उत्तर: घ) 7
Post-increment uses the old value 5 in the expression (5 + 2 = 7) and then x becomes 6.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is the value of the expression (float)7 / 2?
सही उत्तर: ग) 3.5
The cast makes 7 a float, so floating-point division is done: 7.0 / 2 = 3.5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C statement printf("%d", 2 + 3 * 4);?
सही उत्तर: ख) 14
Multiplication has higher precedence than addition: 3 * 4 = 12, then 2 + 12 = 14.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a C string, the escape sequence '\t' produces a:
सही उत्तर: ख) horizontal tab
\t inserts a horizontal tab; \n is newline, \b is backspace and \0 is the null character.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which format specifier should be used with scanf() to read a value into a double variable in C?
सही उत्तर: घ) %lf
scanf() needs %lf for double; %f is for float (printf accepts %f for both).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which format specifier prints an integer in hexadecimal using printf() in C?
सही उत्तर: घ) %x
%x prints an unsigned integer in hexadecimal; %o prints octal and %d prints decimal.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।