Directions to Solve Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer. A some
B got
C more
D
any
E
No correction required
Share : |
A Yes
B No
Share : |
A The trailing argument will be the default argument.
B The first argument will be the default argument.
C The middle argument will be the default argument.
D All the argument will be the default argument.
Share : |
A Default arguments can be provided for pointers to functions.
B A function can have all its arguments as default.
C Default argument cannot be provided for pointers to functions.
D A default argument cannot be redefined in later declaration.
Share : |
A Constructors can have default parameters.
B Constructors cannot have default parameters.
C Constructors cannot have more than one default parameter.
D Constructors can have at most five default parameters.
Share : |
A Member function
B Static function
C Virtual function
D Both B and C
Share : |
A int Sum(int a, int b = 2, int c = 3);
B int Sum(int a = 5, int b);
C int Sum(int a = 0, int b, int c = 3);
D Both B and C are incorrect.
E All are correct.
Share : |
A The default value for an argument can be a global constant.
B The default arguments are given in the function prototype.
C Compiler uses the prototype information to build a call, not the function definition.
D The default arguments are given in the function prototype and should be repeated in the function definition.
Share : |
A Function call
B Function definition
C Function prototype
D Both B or C
Share : |
A The default value for an argument cannot be function call.
B C++ allows the redefinition of a default parameter.
C Both A and B.
D C++ does not allow the redefinition of a default parameter.
Share : |