Deck 11: Menu-Driven Programs

Full screen (f)
exit full mode
Question
What is the method used to make sure that valid selections are processed?

A)Input validation loop
B)Including the Default clause in the case structure
C)Use of an Else clause
D)All of the above
E)None of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
When the user makes a selection from the main menu in a multiple-level menu,a ______ might be displayed next.

A)Menu
B)Main menu
C)Grand menu
D)Submenu
E)None of the above
Question
Usually a submenu is executed by the selection made by the user from the _________.

A)Module
B)Case structure
C)Display
D)Main menu
E)None of the above
Question
Which loop is a posttest loop such that the menu is displayed at least once?

A)Do-While
B)While
C)For
D)Any of the above
E)None of the above
Question
An iteration structure is needed to process the menu selection made by the user.
Question
The acronym GUI stands for _____________.

A)Graphical user instrument
B)Graphics uses interface
C)Graphics uses instrument
D)Graphical user interface
E)None of the above
Question
A list of operations that is displayed on the screen is called a(n)_______________.

A)List
B)Menu
C)Option list
D)Choice list
E)None of the above
Question
A(n)_______ program always starts off by displaying a list of operations the user can select from.

A)Menu-driven
B)Interactive
C)Graphical
D)User-friendly
E)None of the above
Question
What is the term used for a menu that has a main menu and several submenus?

A)Standard menu
B)Single-level menu
C)Multiple-level menu
D)Parent-child menu
E)None of the above
Question
Which statement provides a Default section to validate the user's menu selection?

A)If-Then
B)If-Then-Else
C)If-Then-Else If
D)Case
E)None of the above
Question
Which symbol in flowcharting is appropriate to use to represent the display of each of the selections of the menu?

A)Rectangle
B)Parallelogram
C)Diamond
D)Terminal
E)None of the above
Question
Which of the following decision structures could be used in a menu-driven program?

A)Case structures
B)If-Then-Else If statements
C)If-Then-Else statements
D)All of the above
E)None of the above
Question
What is capable of performing several tasks and allows the user to select the task?

A)Menu-driven programs
B)Interactive programs
C)Graphical programs
D)User-friendly programs
E)None of the above
Question
The If-Then-Else If statement can be used as an alternative for performing the user's menu selection.
Question
Any program that allows the user to select an item from a menu should ____________ the user's selection.

A)store
B)validate
C)hide
D)write
E)All of the above
Question
Menu-driven programs should be broken down into ________ that perform individual tasks.

A)loops
B)functions
C)tasks
D)modules
E)None of the above
Question
The items displayed in a menu are often preceded by a __________.

A)Number
B)Letter
C)Other characters
D)Any of the above
E)None of the above
Question
What is the structure that is needed to process a menu selection?

A)Sequence
B)Decision
C)Iteration
D)Loop
E)None of the above
Question
When the user is ready to stop the program,the user selects an operation such as "__________" from the menu.

A)STOP
B)CTRL + Z
C)CTRL + X
D)CTRL + Q
E)End of Program
Question
What type of menu first displays the main menu and then,based on the user's selection,displays a submenu?

A)Single-level menu
B)Multiple-level menu
C)Step-level menu
D)Sub-level menu
E)None of the above
Question
If the program has only one menu structure,the menu system is termed a__________ menu.
Question
It is a cumbersome process for a user has to make selection from a menu because the user has to type the selection out.
Question
In most cases,menu-driven programs should be broken down into modules that perform individual tasks.
Question
It is not possible to give the user an opportunity to make additional selections from the menu without having to run the program.
Question
When using a While loop to repeatedly process a user's menu selections,the menuSelection variable need to be initialized.
Question
A __________ menu has a main menu and one or more submenus.
Question
In the GUI program,the user can just _________on their choice using a mouse.
Question
When there is an input validation loop,the case structure does not need the Default clause.
Question
A case structure is the only decision structure that can be used in a menu-driven program.
Question
In an If-Then-Else statement the ___________ clause does the validation of the user's menu selections.
Question
The _______________ loop makes sure that the menuSelection variable is set to a value in the correct range of values before the program enters the case statement.
Question
The ______________ program gives the user the option to select the task they would like to perform.
Question
The user's menu selection can be validated using an input validation loop immediately after the Input statements.
Question
Modules cannot be executed from a case statement,so loops have to be used.
Question
A(n)___________ structure can be used to run a menu-driven program again in order to give the user a chance to make another selection.
Question
The _______ selection in the menu causes the loop with the menu to stop and end the program.
Question
It is ideal to have one long menu in the program for users to see and make their selection.
Question
In a menu-driven program the user would have to usually type the word 'end' to stop the program.
Question
Most menu-driven programs use a ________ that redisplays the menu after the user selected action has been performed.
Question
The ____________ statement is the easiest and most straightforward method to process a user's menu selection.
Question
A menu-driven program that uses a multiple-level menu displays the ___________ when it starts.
Question
Menu-driven programs should be broken down into _________ that perform individual tasks.
Question
A series of nested _____________ statements can be used to process the menu selections in lieu of the case statement.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/43
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 11: Menu-Driven Programs
1
What is the method used to make sure that valid selections are processed?

A)Input validation loop
B)Including the Default clause in the case structure
C)Use of an Else clause
D)All of the above
E)None of the above
D
2
When the user makes a selection from the main menu in a multiple-level menu,a ______ might be displayed next.

A)Menu
B)Main menu
C)Grand menu
D)Submenu
E)None of the above
D
3
Usually a submenu is executed by the selection made by the user from the _________.

A)Module
B)Case structure
C)Display
D)Main menu
E)None of the above
D
4
Which loop is a posttest loop such that the menu is displayed at least once?

A)Do-While
B)While
C)For
D)Any of the above
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
5
An iteration structure is needed to process the menu selection made by the user.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
6
The acronym GUI stands for _____________.

A)Graphical user instrument
B)Graphics uses interface
C)Graphics uses instrument
D)Graphical user interface
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
7
A list of operations that is displayed on the screen is called a(n)_______________.

A)List
B)Menu
C)Option list
D)Choice list
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
8
A(n)_______ program always starts off by displaying a list of operations the user can select from.

A)Menu-driven
B)Interactive
C)Graphical
D)User-friendly
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
9
What is the term used for a menu that has a main menu and several submenus?

A)Standard menu
B)Single-level menu
C)Multiple-level menu
D)Parent-child menu
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
10
Which statement provides a Default section to validate the user's menu selection?

A)If-Then
B)If-Then-Else
C)If-Then-Else If
D)Case
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
11
Which symbol in flowcharting is appropriate to use to represent the display of each of the selections of the menu?

A)Rectangle
B)Parallelogram
C)Diamond
D)Terminal
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following decision structures could be used in a menu-driven program?

A)Case structures
B)If-Then-Else If statements
C)If-Then-Else statements
D)All of the above
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
13
What is capable of performing several tasks and allows the user to select the task?

A)Menu-driven programs
B)Interactive programs
C)Graphical programs
D)User-friendly programs
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
14
The If-Then-Else If statement can be used as an alternative for performing the user's menu selection.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
15
Any program that allows the user to select an item from a menu should ____________ the user's selection.

A)store
B)validate
C)hide
D)write
E)All of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
16
Menu-driven programs should be broken down into ________ that perform individual tasks.

A)loops
B)functions
C)tasks
D)modules
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
17
The items displayed in a menu are often preceded by a __________.

A)Number
B)Letter
C)Other characters
D)Any of the above
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
18
What is the structure that is needed to process a menu selection?

A)Sequence
B)Decision
C)Iteration
D)Loop
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
19
When the user is ready to stop the program,the user selects an operation such as "__________" from the menu.

A)STOP
B)CTRL + Z
C)CTRL + X
D)CTRL + Q
E)End of Program
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
20
What type of menu first displays the main menu and then,based on the user's selection,displays a submenu?

A)Single-level menu
B)Multiple-level menu
C)Step-level menu
D)Sub-level menu
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
21
If the program has only one menu structure,the menu system is termed a__________ menu.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
22
It is a cumbersome process for a user has to make selection from a menu because the user has to type the selection out.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
23
In most cases,menu-driven programs should be broken down into modules that perform individual tasks.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
24
It is not possible to give the user an opportunity to make additional selections from the menu without having to run the program.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
25
When using a While loop to repeatedly process a user's menu selections,the menuSelection variable need to be initialized.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
26
A __________ menu has a main menu and one or more submenus.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
27
In the GUI program,the user can just _________on their choice using a mouse.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
28
When there is an input validation loop,the case structure does not need the Default clause.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
29
A case structure is the only decision structure that can be used in a menu-driven program.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
30
In an If-Then-Else statement the ___________ clause does the validation of the user's menu selections.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
31
The _______________ loop makes sure that the menuSelection variable is set to a value in the correct range of values before the program enters the case statement.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
32
The ______________ program gives the user the option to select the task they would like to perform.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
33
The user's menu selection can be validated using an input validation loop immediately after the Input statements.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
34
Modules cannot be executed from a case statement,so loops have to be used.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
35
A(n)___________ structure can be used to run a menu-driven program again in order to give the user a chance to make another selection.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
36
The _______ selection in the menu causes the loop with the menu to stop and end the program.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
37
It is ideal to have one long menu in the program for users to see and make their selection.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
38
In a menu-driven program the user would have to usually type the word 'end' to stop the program.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
39
Most menu-driven programs use a ________ that redisplays the menu after the user selected action has been performed.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
40
The ____________ statement is the easiest and most straightforward method to process a user's menu selection.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
41
A menu-driven program that uses a multiple-level menu displays the ___________ when it starts.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
42
Menu-driven programs should be broken down into _________ that perform individual tasks.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
43
A series of nested _____________ statements can be used to process the menu selections in lieu of the case statement.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 43 flashcards in this deck.