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

1. It is legal to replace the prototype
double totalCost(int numberParam, double priceParam);
with the more terse, alternate form
double totalCost(int, double);

2. In C++ Boolean value are represented only with the int values 0 for false and 1 for true.


1. True
Explanation: The alternate form applies only to function declarations. You will see this form in manuals. It is possible to omit variable names that will not be used in function definitions, but the text does not do this.
2. False
Explanation: In C++ the bool type is a real type, with values true and false, but 0 is interpreted as true and 0 as false, and true and false will be converted to 1 and 0 respectively.

Computer Science & Information Technology

You might also like to view...

Sam would like to install a new application on every computer in his SOHO network. All the computers are currently connected in a workgroup.   What is the easiest way for Sam to install the application on all the computers?

A. Have a USB device for every computer. B. Have multiple copies of the software on a DVD. C. Go to the Windows Store and install the software on each computer. D. Use a network share to share the installation files.

Computer Science & Information Technology

The ________ is the screen display through which a user communicates with the software installed on a drive

Fill in the blank(s) with correct word

Computer Science & Information Technology

____________________ buttons look different when inactive, have a mouse pointer hovering over them, or are clicked.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Use ____ to record ideas, spur-of-the-moment questions, and even words that you would like to recall or use at a later time.

A. notes B. journals C. cards D. shortcuts

Computer Science & Information Technology