Functions - C++ Objective Questions and Answers
| 11. |
In ......... method any change in the formal parameters is not reflected back to the actual parameter? |
| |
- A. call
- B. return
- C. call by reference
- D. call by value
|
| 12. |
The starting point for the execution of a program is ......... |
| |
- A. class
- B. public
- C. main()
- D. void ()
|
| 13. |
Which of the following is NOT true, related to functions? |
| |
- A. The actual parameters can be passed in the form of constants to the formal parameters of value type.
- B. The actual parameters can be passed only as variables to formal parameters of reference type.
- C. The default value for an argument can be given in the form of variable initialization.
- D. The default value for an argument can be given in between the argument list.
|
| 14. |
In call by value method, the flow of data is always from the ........ statement to the function defintion. |
| |
- A. call
- B. function
- C. return
- D. go to
|
| 15. |
A block of code begins and ends with ......... |
| |
|