C++ Programming - Functions

Why C++ Programming Functions?

In this section you can learn and practice C++ Programming Questions based on "Functions" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

Where can I get C++ Programming Functions questions and answers with explanation?

IndiaBIX provides you lots of fully solved C++ Programming (Functions) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C++ Programming Functions quiz questions with answers as PDF files and eBooks.

Where can I get C++ Programming Functions Interview Questions and Answers (objective type, multiple choice)?

Here you can find objective type C++ Programming Functions questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.

How to solve C++ Programming Functions problems?

You can easily solve all kind of C++ Programming questions based on Functions by practicing the objective type exercises given below, also get shortcut methods to solve C++ Programming Functions problems.

Exercise :: Functions - General Questions

1. 

Which of the following function prototype is perfectly acceptable?

A. int Function(int Tmp = Show());
B. float Function(int Tmp = Show(int, float));
C. Both A and B.
D. float = Show(int, float) Function(Tmp);

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

2. 

Which of the following statement is correct?

A. C++ enables to define functions that take constants as an argument.
B. We cannot change the argument of the function that that are declared as constant.
C. Both A and B.
D. We cannot use the constant while defining the function.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

3. 

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.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

4. 

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.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

5. 

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.

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.