How can we help?

You can also find more resources in our Help Center.

57 terms

Tests for Chapters 1-4

STUDY
PLAY
The ____ used in the pseudocode reflects the logic you can see laid out graphically in the flowchart.
indentation
True or False


A variable name is also called an identifier.
True
The statements that execute when a tested condition in a selection is false are called the ____.
else clause
Every operator follows ____ that dictate the order in which operations in the same statement are carried out.
rules of operation
True or False


Programmers find it easier to modify and maintain unstructured programs as changes are required in the future.
False
True or False

Some professional programmers prefer writing pseudocode to drawing flowcharts because using pseudocode is more similar to writing the final statements in the programming language.
True
When you write software instructions, you are ____.
programming
T/F

In a flowchart, one structure can attach to another at any point in the structure.
False
With a selection structure or ____ structure you ask a question, and, depending on the answer, you take one of two courses of action.
decision
The programmer's job can be broken down into four development steps.
T/F
False
With a(n) ____, you perform an action or task, and then you perform the next action, in order.
sequence structure
A ____ is similar to a variable, except that it can be assigned a value only once.
named constant
Hardware devices that perform output operations include keyboards and mice.
T/F
False
____ is the equipment, or the devices, associated with a computer.
Hardware
Machine language is represented as a series of 0s and 1s, also called decimal form.

T/F
False
Instructions after an endif statement are not dependent on the if statement at all.

T/F
True
Placing a structure within another structure is called ____.
nesting structures
Software developers say that spaghetti code has a longer life than structured code.

T/F
False
Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.
modules
A ____ input is the statement that reads the first input value in a program.
priming
A(n) ____ is a pictorial representation of logical steps it takes to solve a problem.
flowchart
____ is the entire set of actions an organization must take to switch over to using a new program or set of programs.
Conversion
The action or actions that occur within the loop are known as the ____.
loop body
A variable's ____ describes the kind of values the variable can hold, how much memory the value occupies, and the types of operations that can be performed with the data stored there
data type
A sequence can contain any number of tasks, but there is no chance to branch off and skip any of the tasks.

T/F
True
The process of walking through a program's logic on paper before you actually write the program is called ____.
desk-checking
It is more common for uninitialized variables to have an a valid default value assigned to them then for them to contain an unknown or garbage value.

T/F
False
Attaching structures end-to-end is called ____.
stacking structures
If you use an otherwise correct word that does not make any sense in the current context, you commit a ____ error.
semantic
Whether you are drawing a flowchart or writing pseudocode, you must only use Yes and No to represent decision outcomes.

T/F
False
The decision that controls every loop is always based on a ____ comparison.
Boolean
To indicate end-of-file, you use the term ____.
eof
Program logic gets more complicated when you must use loops within loops, creating ____ loops.
nested
The ____ is the location on your computer screen at which you type entries to communicate with the computer's operating system using text.
command prompt
Even if you run the same application a second time, the variables might occupy physical memory locations different from those they occupied during the first run.

T/F
True
Named constants conventionally are created using ____.
all uppercase letters
You might say that the path that can never be traveled is a dead or ____ path,
unreachable
The selection structure where the logic can flow only to one of the two alternatives, never to both is called an if-then-else structure or a(n) ____ selection.
binary
Logically, either selection in an AND decision can come first.

T/F
True
To perform a range check, make comparisons using either the lowest or highest value in each range of values.

T/F
True
You can use any of the four comparison operators to control a loop.

T/F
False
Every decision you make in a computer program involves evaluating a Boolean expression.

T/F
True
Boolean (true/false) expressions are named for George Boole.

T/F
True
A ____ is a displayed statement that advises a user what to do.
prompt
Other loops are controlled by reducing, or ____.
decrementing
A(n) ____ is any numeric variable you use to count the number of times an event has occurred.
counter
When you use a ____, you compare a variable to a series of values that mark the limiting ends of ranges.
range check
The else clause of the decision is the part that executes only when the ____.
tested condition in the decision is false
Within a correctly functioning loop's body, you can change the value of the loop control variable in only one way.

T/F
False
When you first analyze a solution, you might find it easier if you use a flowchart and pseudocode simultaneously to ensure that you have the correct design.

T/F
False
A ____ is one that represents only one of two states, usually expressed as true or false.
Boolean expression
Commonly, you control a loop's repetitions by using either a counter or a ____ value.
sentinel
A ____ of values is every value between low and high limits.
range
You can use a for loop to execute a body of statements continuously as long as some condition continues to be true.

T/F
False
Sometimes you want to take action when one or the other of two conditions is true, this type of compound condition is called a(n) ____ decision.
Or
While making decisions is what makes computers seem intelligent, it's looping that makes computer programming both efficient and worthwhile.

T/F
True
When one loop is nested within another, the loop that is contained is the ____ loop.
inner