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