Programming Logic and Design
Chapter 2 Exam Questions and
Answers
A(n) _____ is a name that represents a value that cannot be changed during the
program's execution.
A) Uninitialized variable
B) Named variable
C) Named constant
D) Input variable
E) None of these - ANSWER-Named Constant
_____ documentation is a reference guide that describes the features of the
program, designed for the user.
A) Internal
B) External
C) Program
D) Block
E) Line - ANSWER-External
The process where the programmer steps through each of the program's statements
one by one is called _____.
A) Hand tracing
B) Debug
C) Execute
D) Run
E) Checking - ANSWER-Hand Tracing
What is another term used for 'desk checking'? - ANSWER-Hand-tracing
The following is an example of what type of statement:
Set rate = 5.75
A) Declaration
B) Assignment
C) Input
D) Output
E) None of these - ANSWER-Assignment
What symbol is used to mark the beginning and end of a string? - ANSWER-
Quotations
Which of the following is not an actual programming language? - ANSWER-
Pseudocode
Which of the following is not an actual programming language?
, A) C++
B) Visual Basic
C) Java
D) Pseudocode
E) Python - ANSWER-Pseudocode
What is the first step of the program development cycle?
A) Write the code
B) Correct syntax errors
C) Debug the code
D) Test the executable code
E) Design the program - ANSWER-Design the program
What term is used for a string that appears in the actual code of a program?
A) String literal
B) Virtual string
C) Hard copy
D) Strongly typed
E) None of these - ANSWER-String literal
True/False: Programmers start writing code as the first step when they begin a new
project. - ANSWER-false
True/False: The structure of the camelCase naming convention is to write the first
word of the variable name in lowercase letters and then to capitalize the first
character of the second and subsequent words. - ANSWER-True
True/False: The expressions (a + b) / c and a + b / c will always yield identical
results. - ANSWER-false
True/False: An uninitialized variable is a variable that has been declared and
automatically initialized to zero. - ANSWER-false
True/False: A named constant can be assigned a value using a Set statement. -
ANSWER-false
True/False: Ovals are used as terminal symbols marking the starting and end of the
pseudocode. - ANSWER-false
True/False: It has been proven by a group of mathematicians that all programs can
be written using only three structures. - ANSWER-true
True/False: A variable is a storage location in memory that is represented by a name
and can hold different values during the execution of the program. - ANSWER-true
True/False: Most programming languages do not automatically print spaces between
multiple items that are displayed on the screen. - ANSWER-true
Chapter 2 Exam Questions and
Answers
A(n) _____ is a name that represents a value that cannot be changed during the
program's execution.
A) Uninitialized variable
B) Named variable
C) Named constant
D) Input variable
E) None of these - ANSWER-Named Constant
_____ documentation is a reference guide that describes the features of the
program, designed for the user.
A) Internal
B) External
C) Program
D) Block
E) Line - ANSWER-External
The process where the programmer steps through each of the program's statements
one by one is called _____.
A) Hand tracing
B) Debug
C) Execute
D) Run
E) Checking - ANSWER-Hand Tracing
What is another term used for 'desk checking'? - ANSWER-Hand-tracing
The following is an example of what type of statement:
Set rate = 5.75
A) Declaration
B) Assignment
C) Input
D) Output
E) None of these - ANSWER-Assignment
What symbol is used to mark the beginning and end of a string? - ANSWER-
Quotations
Which of the following is not an actual programming language? - ANSWER-
Pseudocode
Which of the following is not an actual programming language?
, A) C++
B) Visual Basic
C) Java
D) Pseudocode
E) Python - ANSWER-Pseudocode
What is the first step of the program development cycle?
A) Write the code
B) Correct syntax errors
C) Debug the code
D) Test the executable code
E) Design the program - ANSWER-Design the program
What term is used for a string that appears in the actual code of a program?
A) String literal
B) Virtual string
C) Hard copy
D) Strongly typed
E) None of these - ANSWER-String literal
True/False: Programmers start writing code as the first step when they begin a new
project. - ANSWER-false
True/False: The structure of the camelCase naming convention is to write the first
word of the variable name in lowercase letters and then to capitalize the first
character of the second and subsequent words. - ANSWER-True
True/False: The expressions (a + b) / c and a + b / c will always yield identical
results. - ANSWER-false
True/False: An uninitialized variable is a variable that has been declared and
automatically initialized to zero. - ANSWER-false
True/False: A named constant can be assigned a value using a Set statement. -
ANSWER-false
True/False: Ovals are used as terminal symbols marking the starting and end of the
pseudocode. - ANSWER-false
True/False: It has been proven by a group of mathematicians that all programs can
be written using only three structures. - ANSWER-true
True/False: A variable is a storage location in memory that is represented by a name
and can hold different values during the execution of the program. - ANSWER-true
True/False: Most programming languages do not automatically print spaces between
multiple items that are displayed on the screen. - ANSWER-true