कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
The #ifndef ... #define ... #endif pattern in a C header file is used to:
सही उत्तर: क) prevent the header from being included more than once
Such include guards stop duplicate definitions when the same header is included several times.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, #include <stdio.h> and #include "myfile.h" differ in that the quoted form:
सही उत्तर: क) searches the current (source) directory first before the standard include directories
Angle brackets search the system include paths; quotes search the source file's directory first.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A structure in C that contains a pointer to a structure of the same type is called a:
सही उत्तर: ख) self-referential structure
Self-referential structures such as struct node { int data; struct node *next; }; are used to build linked lists.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which operator is used to access a member of a structure variable (not a pointer) in C?
सही उत्तर: ग) . (dot)
For a structure variable s, s.member is used; -> is used with a pointer to a structure.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The C declaration int (*fp)(int); declares fp as:
सही उत्तर: क) a pointer to a function that takes an int and returns an int
The parentheses bind * to fp, making it a pointer to a function with signature int (int).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
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.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।