Programming Logic and Design
Questions and Answers
Making decision - ANSWER-is the act of testing a value.
Decision symbol - ANSWER-is shaped like a diamond and used to represent
decisions in flowcharts.
Dummy value - ANSWER-is a preselected value that stops the execution of a
program.
Sentinel value - ANSWER-is a preselected value that stops the execution of a
program.
EOF - ANSWER-end of file.
Declaration - ANSWER-Is a statement that provides a data type and an identifier for
a variable.
Identifier - ANSWER-is a variable's name.
Data type - ANSWER-is a classification that describes what values can be assigned,
how the variable is stored, and what types of operations can be performed with the
variable.
Making declarations or declaring variables - ANSWER-describes the process of
naming variables and assigning data type to them.
Initializing a variable - ANSWER-Is the act of assigning its first value, often at the
same time the variable is created.
Mnemonic - ANSWER-is a memory device; variable identifiers act as mnemonics for
hard to remember memory addresses.
Camel casing - ANSWER-Is the format for naming variables in which the initial letter
is lowercase, multiple-word variable names are run together and each new word
within the variable name begins with an uppercase letter.
Pascal casing - ANSWER-is the format naming variables in which the initial letter is
uppercase, multiple-word variable names are run together, and each new word
within the variable name begins with an uppercase letter.
Numeric constant - ANSWER-Is a specific numeric value.
String constant - ANSWER-is a specific group of characters enclosed within
quotation marks.
, Unnamed constant - ANSWER-is a literal numeric or string value.
Alphanumeric values - ANSWER-Can contain alphabetic characters, numbers, and
punctuation.
Numeric variable - ANSWER-is one that can hold digits, have mathematical
operations performed on it, and usually can hold a decimal point and a sign
indicating positive or negative.
Integer - ANSWER-Is a whole number.
Floating point - ANSWER-Number is a number with decimal places.
Real numbers - ANSWER-are floating-point numbers.
String variable - ANSWER-can hold text that includes letters, digits, and special
characters such as punctuation marks.
Named constant - ANSWER-Is similar to variable, except that its value cannot
change after the first assignment.
Magic number - ANSWER-is an unnamed constant whose purpose is not
immediately apparent.
Overhead - ANSWER-describes the extra resources a task requires.
Assignment statement - ANSWER-assigns a value from the right of an assignment
operator to the variable or constant on the left of the assignment operator.
Assignment operator - ANSWER-Is the equal sign; it is used to assign a value to
variable or constant on its left.
I-value - ANSWER-is the memory address identifier to left of an assignment
operator.
Modules - ANSWER-are small program units that you can use together to make a
program. Programmers also refer to modules as subroutines, procedures, functions,
or methods.
Modularization - ANSWER-is the process of breaking down a program into modules.
Abstraction - ANSWER-is the process of paying attention to important properties
while ignoring nonessential details.
Reusability - ANSWER-is the feature of modular programs that allows individual
modules to be used in a variety of applications.
Reliability - ANSWER-Is the feature of modular programs that assures you a module
has been tested and proven to function correctly.
Questions and Answers
Making decision - ANSWER-is the act of testing a value.
Decision symbol - ANSWER-is shaped like a diamond and used to represent
decisions in flowcharts.
Dummy value - ANSWER-is a preselected value that stops the execution of a
program.
Sentinel value - ANSWER-is a preselected value that stops the execution of a
program.
EOF - ANSWER-end of file.
Declaration - ANSWER-Is a statement that provides a data type and an identifier for
a variable.
Identifier - ANSWER-is a variable's name.
Data type - ANSWER-is a classification that describes what values can be assigned,
how the variable is stored, and what types of operations can be performed with the
variable.
Making declarations or declaring variables - ANSWER-describes the process of
naming variables and assigning data type to them.
Initializing a variable - ANSWER-Is the act of assigning its first value, often at the
same time the variable is created.
Mnemonic - ANSWER-is a memory device; variable identifiers act as mnemonics for
hard to remember memory addresses.
Camel casing - ANSWER-Is the format for naming variables in which the initial letter
is lowercase, multiple-word variable names are run together and each new word
within the variable name begins with an uppercase letter.
Pascal casing - ANSWER-is the format naming variables in which the initial letter is
uppercase, multiple-word variable names are run together, and each new word
within the variable name begins with an uppercase letter.
Numeric constant - ANSWER-Is a specific numeric value.
String constant - ANSWER-is a specific group of characters enclosed within
quotation marks.
, Unnamed constant - ANSWER-is a literal numeric or string value.
Alphanumeric values - ANSWER-Can contain alphabetic characters, numbers, and
punctuation.
Numeric variable - ANSWER-is one that can hold digits, have mathematical
operations performed on it, and usually can hold a decimal point and a sign
indicating positive or negative.
Integer - ANSWER-Is a whole number.
Floating point - ANSWER-Number is a number with decimal places.
Real numbers - ANSWER-are floating-point numbers.
String variable - ANSWER-can hold text that includes letters, digits, and special
characters such as punctuation marks.
Named constant - ANSWER-Is similar to variable, except that its value cannot
change after the first assignment.
Magic number - ANSWER-is an unnamed constant whose purpose is not
immediately apparent.
Overhead - ANSWER-describes the extra resources a task requires.
Assignment statement - ANSWER-assigns a value from the right of an assignment
operator to the variable or constant on the left of the assignment operator.
Assignment operator - ANSWER-Is the equal sign; it is used to assign a value to
variable or constant on its left.
I-value - ANSWER-is the memory address identifier to left of an assignment
operator.
Modules - ANSWER-are small program units that you can use together to make a
program. Programmers also refer to modules as subroutines, procedures, functions,
or methods.
Modularization - ANSWER-is the process of breaking down a program into modules.
Abstraction - ANSWER-is the process of paying attention to important properties
while ignoring nonessential details.
Reusability - ANSWER-is the feature of modular programs that allows individual
modules to be used in a variety of applications.
Reliability - ANSWER-Is the feature of modular programs that assures you a module
has been tested and proven to function correctly.