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

1. When using a While loop to repeatedly process a user's menu selections, the menuSelection variable must be initialized.
2. The best way to write a menu-driven program is to have a single long menu with all possible selections shown.
3. Since modules cannot be executed from a case statement, loops must be used if a module needs to be called.
4. In a menu-driven program the user normally must type the word end to stop the program.


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

Computer Science & Information Technology

You might also like to view...

Assume you have a USB printer with a manufacturer-supplied PostScript printer definition file named newprinter.ppd. Which command would you use to add this printer to the system on the first USB port with the name USBPrinter?

What will be an ideal response?

Computer Science & Information Technology

Virtual machines store sensitive applications and data on a remote server that is accessed through a smartphone.

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

Computer Science & Information Technology

____ is an example of a web crawler.

A. Googlebot B. Alta Vista C. Bing D. DMOZ

Computer Science & Information Technology

Which of the following statements about memory allocation is false?

A. C supports both static and dynamic memory allocation. B. Heap memory is a pool of unused memory available to be assigned during program execution. C. Dynamic memory allocation requires that the declaration and definition of memory specify the amount of memory to be allocated when the program is written. D. Dynamic memory allocation has no identifier associated with the allocated memory. E. Dynamic memory can be allocated for blocks of memory or for arrays of memory.

Computer Science & Information Technology