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

1. When a loop is nested inside another loop, the inner loop goes through all its iterations for each iteration of the outer loop.
2. You can nest a for loop inside another for loop, but cannot nest a while loop inside another while loop or a do-while loop inside another do-while loop.
3. Before beginning to add value to it, an accumulator should be initialized to 1.
4. A function can have zero to many parameters and either zero or one return value(s).

1. TRUE
2. FALSE
3. FALSE
4. TRUE

Computer Science & Information Technology

You might also like to view...

Every customer has a customer number, arrival time, waiting time, transaction time, and departure time.

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

Computer Science & Information Technology

Which of the following statements about program documentation and data names is false?

A. General documentation occurs at the beginning of the program B. Module documentation occurs within functions C. Intelligent data names cannot be abbreviated D. Data names should match the terminology of the user as closely as possible E. The use of generic names, such as amount, should be avoided

Computer Science & Information Technology