Here is a small program. Which of the statements about this code is correct?

```
#include
const double NUM = 2.9345358;
double num = 3;
double numTimes(int x);
int main( )
{
using namespace std;
int value;
cout << “Enter a value, I’ll multiply it by “
<< NUM << endl;
cin >> value;
cout << “You entered “ << value
<< “ NUM times this is “ << numTimes(value)
<< endl;
return 0;
}
double numTimes(int x)
{
double d;
d = NUM * x;
return d;
```
a) The variable x is a parameter in function numTimes
b) The variable value is an argument in a call to numTimes.
c) The line double numTimes(int x); is a function definition.
d) The line return d; in the function numTimes is necessary.
e) The lines of code are a function declaration:


a) The variable x is a parameter in function numTimes
b) The variable value is an argument in a call to numTimes.
d) The line return d; in the function numTimes is necessary.

Computer Science & Information Technology

You might also like to view...

David can test his movie by accessing the Bandwidth Profiler from the View menu in the ____ dialog box.

a. Spelling b. Flash Player c. Web Communication d. Test Scene

Computer Science & Information Technology

People who use the computer directly or use the information it provides are called computer users, end users, or sometimes, just users.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following DHCP options is used to exclude IP addresses from being distributed to other computers?

A. Reservations B. Suffixes C. Leases D. Gateways

Computer Science & Information Technology

Stakeholders are a small group of selected users who represent a larger group of users and participate in a needs assessment interview when including every user is impractical.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology