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
No correction required
B
any
C more
D some
E got
Share : |
A Yes
B No
Share : |
A The middle argument will be the default argument.
B The trailing argument will be the default argument.
C The first 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 default argument cannot be redefined in later declaration.
C Default argument cannot be provided for pointers to functions.
D A function can have all its arguments as default.
Share : |
A Constructors cannot have more than one default parameter.
B Constructors can have default parameters.
C Constructors cannot have default parameters.
D Constructors can have at most five default parameters.
Share : |
A Member function
B Both B and C
C Virtual function
D Static function
Share : |
A int Sum(int a = 0, int b, int c = 3);
B int Sum(int a = 5, int b);
C int Sum(int a, int b = 2, int c = 3);
D All are correct.
E Both B and C are incorrect.
Share : |
A The default arguments are given in the function prototype and should be repeated in the function definition.
B The default value for an argument can be a global constant.
C Compiler uses the prototype information to build a call, not the function definition.
D The default arguments are given in the function prototype.
Share : |
A Function definition
B Both B or C
C Function call
D Function prototype
Share : |
A Both A and B.
B The default value for an argument cannot be function call.
C C++ does not allow the redefinition of a default parameter.
D C++ allows the redefinition of a default parameter.
Share : |
