कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Which C++ function declaration with default arguments is valid?
सही उत्तर: क) void f(int a, int b = 2, int c = 3);
Default arguments must be given from right to left; no parameter without a default may follow one with a default.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C++, a base class destructor should be declared virtual so that:
सही उत्तर: घ) deleting a derived object through a base-class pointer also calls the derived destructor
Without a virtual destructor, delete on a base pointer calls only the base destructor, causing resource leaks.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
When an object of a derived class is created in C++, the constructors are called in which order?
सही उत्तर: क) Base class constructor first, then derived class constructor
Base parts are built first; destructors run in the reverse order (derived first).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C++ and Java, which keyword is used to raise (signal) an exception?
सही उत्तर: क) throw
throw raises an exception; try encloses risky code and catch handles the exception.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C++, the operator >> used with cin is called the:
सही उत्तर: ग) extraction operator
cin >> x extracts input from the stream; << with cout is the insertion operator.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C++, int &r = x; declares r as:
सही उत्तर: घ) a reference (alias) to x
A reference is another name for an existing variable; changes through r affect x.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A constructor that takes no arguments is called a:
सही उत्तर: क) default constructor
The default constructor can be called without arguments, e.g. Student s;.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A variable declared outside all functions in a C file is called a:
सही उत्तर: ग) global variable
Global variables are defined outside functions and can be accessed by any function in the file after the declaration.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which statement about a variable declared with the register storage class in C is correct?
सही उत्तर: ग) Its address cannot be taken with the & operator
register is a request to keep the variable in a CPU register, so taking its address is not allowed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The volatile qualifier in C tells the compiler that:
सही उत्तर: घ) the variable may change at any time outside the program's control, so it must not be optimised away
volatile is used for hardware registers or shared variables so that every access really reads memory.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।