कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Placing a block of C code between #if 0 and #endif:
सही उत्तर: घ) excludes that code from compilation
Since the condition 0 is false, the preprocessor removes the enclosed code, which is a common way to disable code temporarily.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a C macro definition, the single # operator placed before a parameter (as in #define STR(x) #x):
सही उत्तर: ग) converts the argument into a string literal
The # (stringizing) operator turns the macro argument into a quoted string, so STR(abc) becomes "abc".
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, the preprocessor directive #undef is used to:
सही उत्तर: क) remove a previously defined macro
#undef NAME cancels an earlier #define of NAME so it can be redefined or left undefined.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which C standard library function deletes a file by name?
सही उत्तर: क) remove()
remove(filename), declared in <stdio.h>, deletes the named file and returns 0 on success.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The fopen() mode "rb" opens a file for:
सही उत्तर: ख) reading in binary mode
"r" means read and the b means binary, so no newline translation is done on systems that distinguish text and binary.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a C program, which standard stream is intended for error and diagnostic messages?
सही उत्तर: घ) stderr
C opens stdin, stdout and stderr automatically; stderr is used for error messages and is normally unbuffered.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which pair of C functions is normally used to read and write blocks of binary data, such as whole structures, to a file?
सही उत्तर: क) fread() and fwrite()
fread and fwrite copy a given number of items of a given size directly between memory and the file.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, the function rewind(fp):
सही उत्तर: घ) moves the file position indicator back to the beginning of the file
rewind(fp) is equivalent to fseek(fp, 0L, SEEK_SET) and also clears the error indicator.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which C function returns the current position of the file position indicator of an open file?
सही उत्तर: ख) ftell()
ftell(fp) returns the current offset in bytes from the beginning of the file.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A structure variable e has a member d, which is itself a structure with a member day. The member day is accessed as:
सही उत्तर: ग) e.d.day
For nested structure variables the dot operator is applied twice: first to reach d, then day.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।