True/False Indicate whether the
statement is true or false.
|
|
|
1.
|
Many times the next instruction processed depends on the result of a decision
that must be made.
|
|
|
2.
|
A programmer determines whether a problem’s solution requires a selection
structure by studying the problem specification.
|
|
|
3.
|
Items in square brackets are required in the syntax of an algorithm.
|
|
|
4.
|
Arithmetic operators are evaluated after any comparison operators in an
expression.
|
|
|
5.
|
The oval in a flowchart is called the selection/repetition symbol.
|
|
|
6.
|
The two flowlines leading out of a diamond should be marked so that anyone
reading the flowchart can distinguish the true path from the false path.
|
|
|
7.
|
You can select a check box by double-clicking it.
|
|
|
8.
|
When a check box is selected, clicking it again deselects it.
|
|
|
9.
|
Unlike the variables declared at the beginning of a procedure, variables
declared within a statement block in a selection structure remain in memory until the procedure
ends.
|
|
|
10.
|
Unlike variables declared at the beginning of a procedure, variables declared
within a statement block have block scope rather than procedure scope.
|
|
|
11.
|
Although there is nothing wrong with declaring all variables at the beginning of
a procedure, many programmers would prefer to create a variable only if it is necessary to do
so.
|
|
|
12.
|
More unintentional errors occur in applications when the variables are declared
using the minimum scope needed.
|
Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
|
13.
|
The ____ structure makes a decision and then takes an appropriate action based
on that decision.
a. | loop | c. | selection | b. | condition | d. | case |
|
|
|
14.
|
In the If…Then…Else statement, the programmer must supply the ____
that the computer needs to evaluate before further processing can occur.
a. | condition | c. | order | b. | execution | d. | path |
|
|
|
15.
|
In the If…Then…Else statement, the condition must be a(n) ____
expression.
a. | arithmetic | c. | constant | b. | conditional | d. | Boolean |
|
|
|
16.
|
Operators are called ____ operators because they are used to compare
values.
a. | test | c. | change | b. | comparison | d. | binary |
|
|
|
17.
|
The set of statements contained in the true path, as well as the set of
statements contained in the false path, is referred to as a(n) ____.
a. | statement block | c. | executable code block | b. | conditional
block | d. | path
block |
|
|
|
18.
|
The ____ in a flowchart is the start/stop symbol.
a. | parallelogram | c. | diamond | b. | rectangle | d. | oval |
|
|
|
19.
|
The ____ in a flowchart is the process symbol.
a. | parallelogram | c. | diamond | b. | rectangle | d. | oval |
|
|
|
20.
|
The ____ in a clowchart is the input/output symbol.
a. | parallelogram | c. | diamond | b. | rectangle | d. | oval |
|
|
|
21.
|
The Text property of a check box should be entered using ____.
a. | all lowercase letters | c. | sentence capitalization | b. | all uppercase
letters | d. | book
capitalization |
|
|
|
22.
|
In the flowchart a(n) ____ represents the condition in a selection
structure.
a. | parallelogram | c. | diamond | b. | rectangle | d. | oval |
|
|
|
23.
|
A variable that has ____ scope can be used anywhere within the procedure.
a. | mobile | c. | internal | b. | procedure | d. | block |
|
|
|
24.
|
A variable that has ____ scope can be used only within the statement block in
which it is declared.
a. | mobile | c. | internal | b. | procedure | d. | block |
|
|
|
25.
|
A variable declared within a statement block is called a ____.
a. | block variable | c. | contained variable | b. | restricted variable | d. | simple variable |
|