Title: Module 8 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 8 - Menu-Driven Programs

Q: What is the term used for a menu that has a main menu and several submenus?
- Standard menu
- Single-level menu
- Multiple-level menu
- Parent-child menu
- None of these
A: Multiple-level menu

Q: Any program that allows the user to select an item from a menu should ________ the user's selection.
- store
- validate
- hide
- write
- All of these
A: validate

Q: Usually a submenu is executed by the selection made by the user from the ________.
- Module
- Case structure
- Display
- Main menu
- None of these
A: Main menu

Q: Which of the following decision structures could be used in a menu-driven program?
- Case structures
- If-Then-Else If statements
- If-Then-Else statements
- All of these
- None of these
A: All of these

Q: When the user is ready to stop the program, the user selects an operation such as "________" from the menu.
- STOP
- CTRL + Z
- CTRL + X
- CTRL + Q
- End of Program
A: End of Program

Q: Which symbol in flowcharting is appropriate to use to represent the display of each of the selections of the menu?
- Rectangle
- Parallelogram
- Diamond
- Terminal
- None of these
A: Parallelogram

Q: The items displayed in a menu are often preceded by ________.
- a number
- a letter
- other characters
- Any of these
- None of these
A: Any of these

Q: When the user makes a selection from the main menu in a multiple-level menu, a ________ might be displayed next.
- Menu
- Main menu
- Grand menu
- Submenu
- None of these
A: Submenu

Q: What is capable of performing several tasks and allows the user to select the task?
- Menu-driven programs
- Interactive programs
- Graphical programs
- User-friendly programs
- None of these
A: Menu-driven programs

Q: What is the method used to make sure that valid selections are processed?
- Input validation loop
- Including the Default clause in the case structure
- Use of an Else clause
- All of these
- None of these
A: All of these

Q: What type of menu first displays the main menu and then, based on the user's selection, displays a submenu?
- Single-level menu
- Multiple-level menu
- Step-level menu
- Sub-level menu
- None of these
A: Multiple-level menu

Q: Menu-driven programs should be broken down into ________ that perform individual tasks.
- loops
- functions
- tasks
- modules
- None of these
A: modules

Q: A(n) ________ program always starts off by displaying a list of operations the user can select from.
- Menu-driven
- Interactive
- Graphical
- User-friendly
- None of these
A: Menu-driven

Q: Which loop is a posttest loop such that the menu is displayed at least once?
- Do-While
- While
- For
- Any of these
- None of these
A: Do-While

Q: Which statement provides a Default section to validate the user's menu selection?
- If-Then
- If-Then-Else
- If-Then-Else If
- Case
- None of these
A: Case

Q: True/False: An iteration structure is needed to process the menu selection made by the user.
- True
- False
A: False

Q: True/False: The If-Then-Else If statement can be used as an alternative for performing the user's menu selection.
- True
- False
A: True

Q: True/False: The user's menu selection can be validated using an input validation loop immediately after the Input statements.
- True
- False
A: True

Q: True/False: It is not possible to give the user an opportunity to make additional selections from the menu without having to run the program.
- True
- False
A: False

Q: True/False: When using a While loop to repeatedly process a user's menu selections, the menuSelection variables need to be initialized.
- True
- False
A: True