Intro to Programming and Logic Final
Exam Review Questions with Verified
Answers
After programs are put into production, making necessary changes is called _____. -
ANSWER-Maintenance
Using _____ involves writing down all the steps you will use in a program. -
ANSWER-Pseudocode
In a flowchart, the _____ is used to represent processing. - ANSWER-Rectangle
The _____ is used to represent output in a flowchart. - ANSWER-Parallelogram
The _____ is the standard terminal symbol for a flowchart. - ANSWER-Lozenge
The repetition of a series of steps is called a(n) ______. - ANSWER-Loop
A(n) _____ is a repeating flow of logic with no end. - ANSWER-Infinite loop
You represent a decision in a flowchart by drawing a decision symbol, which is
shaped like a ______. - ANSWER-Diamond
Many programming languages use the term _____ to refer to the marker that is used
to automatically recognize the end of data in a file. - ANSWER-Eof
To enter the program into a computer so you can translate and execute it, you
usually use a keyboard to type program statements into a(n) ______. - ANSWER-
Editor
A(n) ______ is a program that you use to create simple text files. - ANSWER-Text
editor
A(n) _____ is a software package that provides an editor, a compiler, and other
programming tools. - ANSWER-IDE
A(n) _____ is a location on your computer screen where you type text entries to
communicate with the computer's operating system. - ANSWER-Command line
A _____ allows users to interact with a program in a graphical environment. -
ANSWER-GUI
The major difference between the two main programming styles in use today is the
______. - ANSWER-Programmer's focus during the earliest planning stages of a
project
,The _____ dictate the order in which operations in the same statement are carried
out. - ANSWER-Rules of precedence
Depending on the programming language being used, modules are also known as
_____. - ANSWER-Subroutines, procedures, or methods
The process of breaking down a large program into modules is called _____. -
ANSWER-Modularization
_____ is the process of paying attention to important properties while ignoring
nonessential details. - ANSWER-Abstraction
Programmers say the statements that are contained in a module have been _____. -
ANSWER-Encapsulated
Programmers say that variables and constants declared within a module are _____
only within that module. - ANSWER-In scope
_____ variables and constants are known to the entire program. - ANSWER-Global
The mainline logic of almost every procedural computer program consists of these
three distinct parts: _____. - ANSWER-Housekeeping tasks, detail loop tasks, and
end-of-job tasks
When a program has several modules calling other modules, programmers often use
a program _____, ,which operates similarly to an organizational chart, to show the
overall picture of how modules are related to one another. - ANSWER-Hierarchy
chart
As programs become larger and more complicated, the need for good planning and
design _____. - ANSWER-Increases
In a flowchart, an _____ is most often represented by a three-sided box that is
connected to the step it references by a dashed line. - ANSWER-Annotation symbol
Programmers refer to programs that contain meaningful names as ______. -
ANSWER-Self-documenting
A _____ variable is not used for input or output, but instead is just a working variable
that you use during a program's execution. - ANSWER-Temporary
A(n) _____ is similar to a variable, except it can be assigned a value only once. -
ANSWER-Named constant
The assignment operator is the _____ sign. - ANSWER-=
______ is where a variable's data type or other information is stored as part of the
name. - ANSWER-Hungarian notation
, When the first letter of a variable name is uppercase, as in HourlyWage, the format
is known as _____ casing. - ANSWER-Pascal casing
When the variable starts with a lowercase letter and any subsequent word begins
with an uppercase letter, this is called _____. - ANSWER-Camel casing
A variable's unknown value is commonly called ______. - ANSWER-Garbage
Declaring a starting value for a variable is known as _____ the variable. - ANSWER-
Initializing
The process of naming program variables and assigning a type to them is called
_____ variables. - ANSWER-Declaring
In most programming languages, before you can use any variable, you must include
a _____ for it. - ANSWER-Declaration
A specific numeric value is often called a(n) _____. - ANSWER-Numeric constant
Fractional numeric variables that contain a decimal point are known as _____
variables. - ANSWER-Floating-point
When you write programs, you work with data in three different forms: _____. -
ANSWER-Variables, literals (or unnamed constants), and named constants
T/F Most modern programming languages require that program statements be
placed in specific columns. - ANSWER-False
T/F Program comments are a type of internal documentation. - ANSWER-True
T/F Modularization makes it harder for multiple programmers to work on a problem. -
ANSWER-False
T/F Programmers generally write programs as one long series of steps. - ANSWER-
False
T/F A string variable can hold digits such as account numbers and zip codes. -
ANSWER-True
T/F The assignment operator has left-to-right-to-left associativity, which means that
the value of the expression to the left of the assignment operator is evaluated first
and that the result is assigned to the operand on the right. - ANSWER-False
T/F Variable names can be more than one word with blanks between the words. -
ANSWER-False
T/F In many programming languages, if you declare a variable and do not initialize it,
the variable contains an unknown value until it is assigned a value. - ANSWER-True
Exam Review Questions with Verified
Answers
After programs are put into production, making necessary changes is called _____. -
ANSWER-Maintenance
Using _____ involves writing down all the steps you will use in a program. -
ANSWER-Pseudocode
In a flowchart, the _____ is used to represent processing. - ANSWER-Rectangle
The _____ is used to represent output in a flowchart. - ANSWER-Parallelogram
The _____ is the standard terminal symbol for a flowchart. - ANSWER-Lozenge
The repetition of a series of steps is called a(n) ______. - ANSWER-Loop
A(n) _____ is a repeating flow of logic with no end. - ANSWER-Infinite loop
You represent a decision in a flowchart by drawing a decision symbol, which is
shaped like a ______. - ANSWER-Diamond
Many programming languages use the term _____ to refer to the marker that is used
to automatically recognize the end of data in a file. - ANSWER-Eof
To enter the program into a computer so you can translate and execute it, you
usually use a keyboard to type program statements into a(n) ______. - ANSWER-
Editor
A(n) ______ is a program that you use to create simple text files. - ANSWER-Text
editor
A(n) _____ is a software package that provides an editor, a compiler, and other
programming tools. - ANSWER-IDE
A(n) _____ is a location on your computer screen where you type text entries to
communicate with the computer's operating system. - ANSWER-Command line
A _____ allows users to interact with a program in a graphical environment. -
ANSWER-GUI
The major difference between the two main programming styles in use today is the
______. - ANSWER-Programmer's focus during the earliest planning stages of a
project
,The _____ dictate the order in which operations in the same statement are carried
out. - ANSWER-Rules of precedence
Depending on the programming language being used, modules are also known as
_____. - ANSWER-Subroutines, procedures, or methods
The process of breaking down a large program into modules is called _____. -
ANSWER-Modularization
_____ is the process of paying attention to important properties while ignoring
nonessential details. - ANSWER-Abstraction
Programmers say the statements that are contained in a module have been _____. -
ANSWER-Encapsulated
Programmers say that variables and constants declared within a module are _____
only within that module. - ANSWER-In scope
_____ variables and constants are known to the entire program. - ANSWER-Global
The mainline logic of almost every procedural computer program consists of these
three distinct parts: _____. - ANSWER-Housekeeping tasks, detail loop tasks, and
end-of-job tasks
When a program has several modules calling other modules, programmers often use
a program _____, ,which operates similarly to an organizational chart, to show the
overall picture of how modules are related to one another. - ANSWER-Hierarchy
chart
As programs become larger and more complicated, the need for good planning and
design _____. - ANSWER-Increases
In a flowchart, an _____ is most often represented by a three-sided box that is
connected to the step it references by a dashed line. - ANSWER-Annotation symbol
Programmers refer to programs that contain meaningful names as ______. -
ANSWER-Self-documenting
A _____ variable is not used for input or output, but instead is just a working variable
that you use during a program's execution. - ANSWER-Temporary
A(n) _____ is similar to a variable, except it can be assigned a value only once. -
ANSWER-Named constant
The assignment operator is the _____ sign. - ANSWER-=
______ is where a variable's data type or other information is stored as part of the
name. - ANSWER-Hungarian notation
, When the first letter of a variable name is uppercase, as in HourlyWage, the format
is known as _____ casing. - ANSWER-Pascal casing
When the variable starts with a lowercase letter and any subsequent word begins
with an uppercase letter, this is called _____. - ANSWER-Camel casing
A variable's unknown value is commonly called ______. - ANSWER-Garbage
Declaring a starting value for a variable is known as _____ the variable. - ANSWER-
Initializing
The process of naming program variables and assigning a type to them is called
_____ variables. - ANSWER-Declaring
In most programming languages, before you can use any variable, you must include
a _____ for it. - ANSWER-Declaration
A specific numeric value is often called a(n) _____. - ANSWER-Numeric constant
Fractional numeric variables that contain a decimal point are known as _____
variables. - ANSWER-Floating-point
When you write programs, you work with data in three different forms: _____. -
ANSWER-Variables, literals (or unnamed constants), and named constants
T/F Most modern programming languages require that program statements be
placed in specific columns. - ANSWER-False
T/F Program comments are a type of internal documentation. - ANSWER-True
T/F Modularization makes it harder for multiple programmers to work on a problem. -
ANSWER-False
T/F Programmers generally write programs as one long series of steps. - ANSWER-
False
T/F A string variable can hold digits such as account numbers and zip codes. -
ANSWER-True
T/F The assignment operator has left-to-right-to-left associativity, which means that
the value of the expression to the left of the assignment operator is evaluated first
and that the result is assigned to the operand on the right. - ANSWER-False
T/F Variable names can be more than one word with blanks between the words. -
ANSWER-False
T/F In many programming languages, if you declare a variable and do not initialize it,
the variable contains an unknown value until it is assigned a value. - ANSWER-True