Programming logic and design CH.1-3
Review Complete Solutions
Can hold text, such as letters of the alphabet, and other special characters, such as
punctuation marks - ANSWER-String variable
The feature of programming languages that prevents assigning values of an
incorrect data type - ANSWER-Type-safety
The feature of programs that assures you a module has been tested and proven to
function correctly - ANSWER-Reliability
A list of every variable name used in a program, along with its type, size, and
description - ANSWER-Data dictionary
A message that is displayed on a monitor to ask the user for a response and
perhaps explain how that response should be formatted - ANSWER-Prompt
The act of repeating input back to a user either in a subsequent prompt or in output -
ANSWER-Echoing input
____ is where a variable's data type or other information is stored as part of the
name. - ANSWER-Hungarian notation
Programmers generally write programs as one long series of steps. - ANSWER-
False
___________________ tasks include any steps you must perform at the beginning
of a program to get ready for the rest of the program. - ANSWER-Housekeeping
Attaching structures end to end is called ____ structures. - ANSWER-stacking
Pseudocode uses the end-structure statement ____ to clearly show where the
structure ends. - ANSWER-endif
if-else examples can also be called ____ because they contain the action taken
when the tested condition is true and the action taken when it is false. - ANSWER-
dual-alternative selections
No matter how complicated it is, any set of steps can always be reduced to
combinations of the two basic structures of sequence and loop. - ANSWER-False
The priming read is an example of a(n) ____ task. - ANSWER-housekeeping
The following pseudocode is an example of a ____ structure.
if firstNumber is bigger than secondNumber then
, print firstNumber
else
print secondNumber
endigf - ANSWER-decision
The do loop is a variation of the ____ loop. - ANSWER-while
A ____ read is an added statement that gets the first input value in a program. -
ANSWER-priming
The maximum number of entry points that any programming structure can have is
____. - ANSWER-one
Structures can be stacked or connected to one another at their ____. - ANSWER-
entry or exit points
Structured programs can be easily broken down into routines or ____ that can be
assigned to any number of programmers. - ANSWER-modules
Repetition and sequence are alternate names for a loop structure. - ANSWER-False
Because you may stack and nest structures while retaining the overall structure, it
might be difficult to determine whether a flowchart as a whole is structured. -
ANSWER-True
The following pseudocode is an example of ____.
if conditionA is true then
do stepE
else
do stepB
do stepC
do stepD
endif - ANSWER-nesting
You may hear programmers refer to looping as ____. - ANSWER-iteration
With a(n) ____, you perform an action or task, and then you perform the next action,
in order. - ANSWER-sequence structure
Programs that use _____ code logic are unstructured programs that do not follow the
rules of structured logic. - ANSWER-spaghetti
Structured programming is sometimes called ____________________-less
programming. - ANSWER-gotogo or togo-to
The case structure is a variation of the ____ structure. - ANSWER-selection
Review Complete Solutions
Can hold text, such as letters of the alphabet, and other special characters, such as
punctuation marks - ANSWER-String variable
The feature of programming languages that prevents assigning values of an
incorrect data type - ANSWER-Type-safety
The feature of programs that assures you a module has been tested and proven to
function correctly - ANSWER-Reliability
A list of every variable name used in a program, along with its type, size, and
description - ANSWER-Data dictionary
A message that is displayed on a monitor to ask the user for a response and
perhaps explain how that response should be formatted - ANSWER-Prompt
The act of repeating input back to a user either in a subsequent prompt or in output -
ANSWER-Echoing input
____ is where a variable's data type or other information is stored as part of the
name. - ANSWER-Hungarian notation
Programmers generally write programs as one long series of steps. - ANSWER-
False
___________________ tasks include any steps you must perform at the beginning
of a program to get ready for the rest of the program. - ANSWER-Housekeeping
Attaching structures end to end is called ____ structures. - ANSWER-stacking
Pseudocode uses the end-structure statement ____ to clearly show where the
structure ends. - ANSWER-endif
if-else examples can also be called ____ because they contain the action taken
when the tested condition is true and the action taken when it is false. - ANSWER-
dual-alternative selections
No matter how complicated it is, any set of steps can always be reduced to
combinations of the two basic structures of sequence and loop. - ANSWER-False
The priming read is an example of a(n) ____ task. - ANSWER-housekeeping
The following pseudocode is an example of a ____ structure.
if firstNumber is bigger than secondNumber then
, print firstNumber
else
print secondNumber
endigf - ANSWER-decision
The do loop is a variation of the ____ loop. - ANSWER-while
A ____ read is an added statement that gets the first input value in a program. -
ANSWER-priming
The maximum number of entry points that any programming structure can have is
____. - ANSWER-one
Structures can be stacked or connected to one another at their ____. - ANSWER-
entry or exit points
Structured programs can be easily broken down into routines or ____ that can be
assigned to any number of programmers. - ANSWER-modules
Repetition and sequence are alternate names for a loop structure. - ANSWER-False
Because you may stack and nest structures while retaining the overall structure, it
might be difficult to determine whether a flowchart as a whole is structured. -
ANSWER-True
The following pseudocode is an example of ____.
if conditionA is true then
do stepE
else
do stepB
do stepC
do stepD
endif - ANSWER-nesting
You may hear programmers refer to looping as ____. - ANSWER-iteration
With a(n) ____, you perform an action or task, and then you perform the next action,
in order. - ANSWER-sequence structure
Programs that use _____ code logic are unstructured programs that do not follow the
rules of structured logic. - ANSWER-spaghetti
Structured programming is sometimes called ____________________-less
programming. - ANSWER-gotogo or togo-to
The case structure is a variation of the ____ structure. - ANSWER-selection