Overloading Mcqs

Our collections of Multiple choice questions and answers focuses on study of Overloading in OOP. These questions are chosen from a collection of most authoritative and best reference books on OOP. Our aim is to prepare an individual for competitive exams like NTS, Web Developer | IOS Developer | Game Developer | Software House interviews and jobs, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate Overloading in OOP comprehensively.

1.
What are default arguments?

Arguments which are not mandatory to be passed

Arguments with default value that aren’t mandatory to be passed

Arguments which are not passed to functions

Arguments which always take same data value

2.
Which is correct condition for the default arguments?

Those must be declared as last arguments in argument list

Those must be declared first in the argument list

Those can be defined anywhere in the argument list

Those are declared inside the function definition

3.
If a member function have to be made both zero argument and parameterized constructor, which among the following can be the best option?

Two normal and one default argument

At least one default argument

Exactly one default argument

Make all the arguments default

5.
If a function have all the default arguments but still some values are passed to the function then ______________

The function will use the values passed to it

The function will use the default values as those are local

The function can use any value whichever is higher

The function will choose the minimum values

6.
What function will be called with the independent syntax “test(5,6,7);”?

Void test(int x, int y)

Void test(int x=0,int y,int z)

Int test(int x=0,y=0,z=0)

Void test(int x,int y, int z=0)

8.
Default arguments are _________________________

Only allowed in the parameter list of the function declaration

Only allowed in the return type of the function declaration

Only allowed with the class name definition

Only allowed with the integer type values

9.
Which among the following is false for default arguments?

Those are not allowed with declaration of pointer to functions

Those are not allowed with the reference to functions

Those are not allowed with the typedef declarations

Those are allowed with pointer and reference to function declaration

10.
The non-template functions can be added with default arguments to already declared functions ____________________

If and only if the function is declared again in the same scope

If and only if the function is declared only once in the same scope

If and only if the function is declared in different scope

If and only if the function is declared twice in the program

11.
The using declaration __________

Doesn’t carry over the default values

Carries over the known default arguments

Carries over only the normal arguments

Carries over only few default arguments

12.
The names given to the default arguments are only looked up and ________________. And are bound during declaration.

Checked for availability

Checked for random access

Checked for accessibility

Checked for feasibility

13.
The default argument get bound during declaration ________________

And are never executed

And are executed simultaneously

But are executed only if priority is given

But are executed during function call

14.
The virtual function overrides ____________

Do not acquire base class declaration of default arguments

Do acquire base class declaration of default arguments

Do not link with the default arguments of base class

Do link with the default argument but only of derived classes

15.
Which among the following is true for constructors overloading?

Constructors can’t be overloaded

Constructors can be overloaded using different signatures

Constructors can be overloaded with same signatures

Constructors can be overloaded with different return types

0Shares
0
Scroll to Top