IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

Functions Overloading

  • Home
  • Computer Science & Engineering
  • C++ Programming Questions and Answers
  • Functions Overloading
1. 

 Which  of the following statement is correct?

A. The order of the default argument will be right to left.
B. The order of the default argument will be left to right.
C. The order of the default argument will be alternate.
D. The order of the default argument will be random.

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

2. 

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

3. 

 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.

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

4. 

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.

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

5. 

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.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

6. 

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.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

7. 

Where the default value of parameter have to be specified?

A. Function call
B. Function definition
C. Function prototype
D. Both B or C

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

8. 

Which of the following statement is incorrect??

A. The default value for an argument can be a global constant.
B. The default arguments are given in the function prototype.
C. Compiler uses the prototype information to build a call, not the function definition.
D. The default arguments are given in the function prototype and should be repeated in the function definition.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

  • 1
  • 2
  • 3

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report