Programming - C++ Language

You Are Here :: Home > C++ Language > Functions - General Questions

 
25.

Which of the following statement is correct?                        


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.




26.

Which of the following statement is correct?                        


A. Only one parameter of a function can be a default parameter. B. Minimum one parameter of a function must be a default parameter.
C. All the parameters of a function can be default parameters. D. No parameter of a function can be default.




27.

Which of the following statement is incorrect?                        


A. A default argument is checked for type at the time of declaration and evaluated at the time of call. B. We can provide a default value to a particular argument in the middle of an argument list.
C. We cannot provide a default value to a particular argument in the middle of an argument list. D. Default arguments are useful in situations where some arguments always have the same value.




28.

Which of the following statement is correct?                        


A. Overloaded functions can accept same number of arguments. B. Overloaded functions always return value of same data type.
C. Overloaded functions can accept only same number and same type of arguments. D. Overloaded functions can accept only different number and different type of arguments.




29.

Which of the following function / types of function cannot have default parameters?                        


A. Member function of class B. main()
C. Member function of structure D. Both B and C




« prev

1

2

3

4

5

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on