Programming - C++ Language

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

 
13.

Which of the following is correct about function overloading?                        


A. The types of arguments are different. B. The order of argument is different.
C. The number of argument is same. D. Both A and B.




14.

Which of the following statements regarding inline functions is correct?                        


A. It speeds up execution. B. It slows down execution.
C. It increases the code size. D. Both A and C.




15.

Which one of the following is the correct way to declare a pure virtual function?                        


A. virtual void Display(void){0}; B. virtual void Display = 0;
C. virtual void Display(void) = 0; D. void Display(void) = 0;




16.

Which of the following statement is correct?                        


A. Overloaded functions can have at most one default argument. B. An overloaded function cannot have default argument.
C. All arguments of an overloaded function can be default. D. A function if overloaded more than once cannot have default argument.




17.

Which of the following statement is correct?                        


A. Two functions having same number of argument, order and type of argument can be overloaded if both functions do not have any default argument. B. Overloaded function must have default arguments.
C. Overloaded function must have default arguments starting from the left of argument list. D. A function can be overloaded more than once.




18.

Which of the following statement will be correct if the function has three arguments passed to it?                        


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.




« prev

1

2

3

4

5

next »

 
 



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