Functions Questions and Answers updated daily – C++



13 Functions Questions and answers section with explanation for various online exam preparation, various interviews, C++ Functions online test. Functions Questions with detailed description, explanation will help you to master the topic.

Functions Questions

1. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:Overloaded functions can accept same number of arguments.
Explanation:


2. Which of the following statement is incorrect?



SHOW ANSWER
Correct Ans:We can provide a default value to a particular argument in the middle of an argument list.
Explanation:


3. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:All the parameters of a function can be default parameters.
Explanation:


4. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:C++ does not allow the redefinition of a default parameter.
Explanation:


5. Where the default value of parameter have to be specified?



SHOW ANSWER
Correct Ans:Function prototype
Explanation:


6. Which of the following function declaration is/are incorrect?



SHOW ANSWER
Correct Ans:Both B and C are incorrect.
Explanation:


7. Which of the following function / type of function cannot be overloaded?



SHOW ANSWER
Correct Ans:Virtual function
Explanation:


8. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:Constructors can have default parameters.
Explanation:


9.
Which of the following statement is incorrect?



SHOW ANSWER
Correct Ans:Default argument cannot be provided for pointers to functions.
Explanation:


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



SHOW ANSWER
Correct Ans:The trailing argument will be the default argument.
Explanation:


11. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:A function can be overloaded more than once.
Explanation:


12.
Which of the following statement is correct?



SHOW ANSWER
Correct Ans:All arguments of an overloaded function can be default.
Explanation:


13. Which of the following function prototype is perfectly acceptable?



SHOW ANSWER
Correct Ans:int Function(int Tmp = Show());
Explanation:



FreshersLive - No.1 Job site in India. Here you can find latest 2017 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.