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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!