Which of the following would be a practical use for a void function?

A. returning the sum of two numbers
B. returning the average of two numbers
C. displaying two numbers
D. calculating the area of a rectangle


Answer: C

Computer Science & Information Technology

You might also like to view...

________ is the final step of the CPU machine cycle

Fill in the blank(s) with correct word

Computer Science & Information Technology

Unmanned aerial vehicle/system are other terms for a(n) ______.

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

Computer Science & Information Technology

Typically, objects in painting programs can be layered so, if you place one object on top of another, you can later separate the two images if desired. _________________________

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

Computer Science & Information Technology

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

1. If you are using the automatic end-of-file facility, you need to include a special record at the end of the input denoting that there is no more data to process. 2. A trailer record must contain special information that differentiates it from the rest of the input. 3. In trailer record logic the number of times the loop will be executed is preset. 4. A line that outputs the average grade for each student can be considered in some cases, both a detail line and a total line. 5. Line count and page count are special types of trailer records.

Computer Science & Information Technology