Which of the following concept of OOPS refers to the term operator overloading?
Inheritance
Message passing
Encapsulation
Polymorphism
What are overloaded functions?
Very long functions that can hardly run
One function containing another one or more functions inside it.
Two or more functions with the same name but different number of parameters or type.
Function with more than one form
Which operator simply negates the data member of the class?
Operator– ()
Operator+ ()
Operator * ()
Operator =()
In which of the following does the function cannot be overloaded?
Return function
Caller
Called function
None of these
Which of the following contains two functions with same names, parameters and return type?
Function overloading
Function overriding
Operator overloading
Method overloading
Which of the following permits function overloading in C++?
Type
Number of arguments
Both 1) and 2)
Which function must be either member functions or friend functions?
Method function
Operator function
Constructor function
Data function
Which function has the ability to process the message or data in more than one form?
Constructor overloading
Data overloading
Which of the following statement is correct?
Two functions having same number of argument, order and type of argument can be overloaded if both functions do not have any default argument.
Overloaded function must have default arguments.
Overloaded function must have default arguments starting from the left of argument list.
A function can be overloaded more than once.
Which among the following is an advantage of polymorphism?
Reusability of classes
Supports building extensible systems
It can hide instance variables and irrelevant methods of a class from other objects
Easy to maintain the code