कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
In C++, the handler catch (...) will:
सही उत्तर: क) catch an exception of any type
The ellipsis in catch (...) is a catch-all handler that matches any thrown exception.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
C++ templates mainly support which style of programming?
सही उत्तर: ग) Generic programming
Templates let one function or class be written once and work with many data types.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a UML class diagram, a minus sign (-) placed before an attribute indicates that it is:
सही उत्तर: घ) private
UML visibility symbols are + public, - private, # protected and ~ package.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a UML class diagram, a class is drawn as a rectangle divided into three compartments, which show:
सही उत्तर: ख) the class name, its attributes and its operations
The top part holds the class name, the middle its attributes (fields) and the bottom its operations (methods).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Public getter and setter methods that read and change private data members mainly support which OOP principle?
सही उत्तर: क) Encapsulation
Accessor and mutator methods allow controlled access to hidden data, which is the essence of encapsulation.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The Singleton design pattern ensures that a class:
सही उत्तर: क) has only one instance and provides a global point of access to it
A singleton hides its constructor and returns the same single object each time it is requested.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The Open/Closed Principle in object-oriented design says that software modules should be:
सही उत्तर: घ) open for extension but closed for modification
New behaviour should be added by extending existing code (for example through subclasses) rather than editing tested code.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The Liskov Substitution Principle of object-oriented design states that:
सही उत्तर: क) objects of a subclass should be usable wherever objects of its superclass are expected without breaking the program
A derived class must honour the behaviour promised by its base class so that it can substitute for it safely.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A Department object holds references to Professor objects, but the professors can exist even if the department is closed. This relationship is called:
सही उत्तर: ख) aggregation
Aggregation is a weak has-a relationship in which the part can exist independently of the whole; in composition the part's life depends on the whole.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In object-oriented programming, objects interact with one another mainly by:
सही उत्तर: ख) sending messages, that is, calling each other's methods
Message passing means one object requests a service from another by invoking one of its methods.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।