Question: 1.In a function prototype, in addition to the name of thefunction, you are required to furnish a data type for each parameter. the data type

1.In a function prototype, in addition to the name of thefunction, you are required to furnish

a data type for each parameter.

the data type of the return value.

an identifier name for each parameter.

How many times it will be called.

2.

In a function header, in addition to the name of the function,you are required to furnish

the data type of the return value.

a data type for each parameter.

the namespace.

an identifier name for each parameter.

3.When a function is overloaded it meansthat it... (select one or more answers)

has too many parameters.

calls other functions.

does different things depending on who calls it.

has the same name as another function.

attempts to do too much in a single function.

4.

When an argument is passed by reference it means that ... (checkall that apply)

The argument will be converted into a global variable.

The argument will have a default value.

Only the memory location of the variable is passed to thefunction.

The function can change the value of the variable.

5.Which of the following function prototype(s) are correct.

void setValue(int &value); 
void setValue(int &); 
void setValue(int value, int max=100); 
void setValue(int ++value); 

6. T/F Calling an overloaded function can result in multiplevalues being returned to the caller.

7.A ____ function has ____ return value(s), butcan have ____ parameter(s). Otherwise a function can return_____ value(s).

8.T/F Only variables can be passed as reference.

9.T/F When writing a C++ program you must be careful to arrangeall the functions in the order in which they are called.

6

Step by Step Solution

3.28 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below 1 In a function prototype in addition to the name of the function you are required to furnish a data type for each parameter the data type ... View full answer

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 Programming Questions!