Functions - C++ Objective Questions and Answers
| 1. |
Which function does insert the function's code directly into the calling programs? |
| |
- A. Main
- B. Void
- C. Inline
- D. Online
|
| 2. |
The scope of any variable used in the entire program is ........ |
| |
- A. Function
- B. Class
- C. File
- D. Local
|
| 3. |
......... are the building blocks of C++ programs. |
| |
- A. For
- B. Switch
- C. If-else
- D. Functions
|
| 4. |
The functions that return no value is declared as |
| |
- A. void
- B. public
- C. null
- D. static
|
| 5. |
A function can be invoked from another function using its ......... |
| |
- A. name
- B. return
- C. value
- D. variables
|