Start
Q1
Question 1: The life of sub object is dependant on the life of master class in __________.
Separation
Composition
Aggregation
None of the given
Q2
Question 2: How many objects are involved in the N-ary association?
More than 1
More than 2
More than 3
More than 4
Q3
Question 3: In operator overloading, which of the following operator takes one or no argument.
Q4
Question 4: The specialization pattern <T*> after the name says that this specialization is to be used for every __________.
data type
meta type
virtual type
pointer type
Q5
Question 5: Function func1 of class1 is __________ in class2."
public
protected
private
None of the given
Q6
Question 6: Which of the following is TRUE?
Derived class pointer can be used as Base class pointer
Base class pointer can be used as Derived class pointer
Both of these options
None of the given
Q7
Question 7: Which of the following operators operate on one operand?
Binary Operators
Unary Operators
Ternary Operator
All of the given
Q8
Question 8: Polymorphism makes the system:
reusable
flexible
faster
All of the given
Q9
Question 9: In case when we define the function outside the class then we must use the keyword __________ to make the function inline.
requestin
inlineout
inline
defineinline
Q10
Question 10: Consider the call given below of an overloaded operator "+",
Rational_number_1 + Rational_number_2
Where Rational_number_1 and Rational_number_2 are the two objects of Rational_number class (a user defined class). Identify which of the above two objects will be passed as an argument to the overloaded operator function?
Rational_number_1
Rational_number_2
Both Rational_number_1 & Rational_number_2
any of the two objects, randomly