Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting Information Systems basic concepts and current issues

Authors: Robert Hurt

3rd edition

130855849X, 978-1308558493, 78025338, 978-0078025334

More Books

Students also viewed these Programming questions