Question: 1. The statement int main() means that main is a function that takes no arguments and returns an integer A. true B. false ______________________________________________________________________________ 2.
1. The statement int main() means that main is a function that takes no arguments and returns an integer
| A. | true | |
| B. | false |
______________________________________________________________________________
2. A C++ program can have two local variables in two different functions with the same name and same data type.
| A. | true | |
| B. | false |
_____________________________________________________________________________________
3. int main() This function header indicates that main is a function that:
| A. | takes an integer as its argument and returns nothing | |
| B. | takes no arguments and returns nothing | |
| C. | takes an integer as its argument and returns an integer | |
| D. | takes no arguments and returns an integer |
_________________________________________________________________________________________
4. How does a function report its result back to its calling (or boss) function if there is a value to be reported back?
| A. | By storing the result into one of the variables passed as an argument. | |
| B. | By storing the result directly into the caller's variable. | |
| C. | By cout-int the result to the screen. | |
| D. | By asking the user to do it. | |
| E. | By executing a return statement with the result. |
__________________________________________________________________________________________
5. The return type void indicates that the function will return ______.
| A. | the null address | |
| B. | an integer | |
| C. | more than one value | |
| D. | nothing |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
