MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Tough C Plus Plus Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the scope of the variable declared in the user defined function? |
| A. | whole program |
| B. | only inside the {} block |
| C. | the main function |
| D. | none of the mentioned |
| Answer» C. the main function | |
| 2. |
hai |
| A. | haihai |
| B. | compile time error |
| C. | none of the mentioned |
| Answer» D. | |
| 3. |
Which is more effective while calling the functions? |
| A. | call by value |
| B. | call by reference |
| C. | call by pointer |
| D. | none of the mentioned |
| Answer» E. | |
| 4. |
How many can max number of arguments present in function in the c99 compiler? |
| A. | 99 |
| B. | 90 |
| C. | 102 |
| D. | 127 |
| Answer» D. 127 | |
| 5. |
which of the following is used to terminate the function declaration? |
| A. | : |
| B. | ) |
| C. | ; |
| D. | none of the mentioned |
| Answer» B. ) | |
| 6. |
What are mandatory parts in the function declaration? |
| A. | return type, function name |
| B. | return type, function name, parameters |
| C. | parameters, function name |
| D. | none of the mentioned |
| Answer» C. parameters, function name | |