Programming Logic and Design Exam
Questions with Verified Answers
What symbol is used to mark the beginning and end of a string?
A) Slash
B) Asterisk
C) Quotation
D) Comma
E) Question - ANSWER-C) Quotation
True/False: The expressions (a + b) / c and a + b / c will always yield identical
results.
A) True
B) False - ANSWER-B) False
The ________ is a diagram that graphically depicts the steps that take place in a
program.
A) Program
B) Flowchart
C) Algorithm
D) Code
E) Pseudocode - ANSWER-B) Flowchart
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-E) Design the program
True/False: If you mistakenly write pseudocode into an editor for an actual
programming language, such as Python or Visual Basic, errors will result.
A) True
B) False - ANSWER-A) True
True/False: A sequence of characters that is used as data is called a string in
programming.
A) True
B) False - ANSWER-A) True
The value of the expression 12 - 4 * + 9 is ________.
A) 21
B) 15
C) -6
D) 2.18
E) None of these - ANSWER-B) 15
, 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-B) Assignment
True/False: Programmers use pseudocode to create "mock-ups" of programs
because they do not have to worry about syntax rules.
A) True
B) False - ANSWER-A) True
Modules are commonly called what?
A) Procedures
B) Subroutines
C) Subprograms
D) Methods
E) All of these - ANSWER-E) All of these
True/False: A module can have two variables of the same name because they are
within the same scope.
A) True
B) False - ANSWER-B) False
Which type of variable is not recommended to be used in programs because they
make programs hard to understand and debug?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global
True/False: The arguments in a module call and the parameters listed in the module
header must be of compatible data types.
A) True
B) False - ANSWER-B) False
Which type of variable is visible to every module and the entire program?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global
What phrase is placed in the starting terminal symbol of a module in a flowchart?
A) Start
B) Begin
C) Name of the module
Questions with Verified Answers
What symbol is used to mark the beginning and end of a string?
A) Slash
B) Asterisk
C) Quotation
D) Comma
E) Question - ANSWER-C) Quotation
True/False: The expressions (a + b) / c and a + b / c will always yield identical
results.
A) True
B) False - ANSWER-B) False
The ________ is a diagram that graphically depicts the steps that take place in a
program.
A) Program
B) Flowchart
C) Algorithm
D) Code
E) Pseudocode - ANSWER-B) Flowchart
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-E) Design the program
True/False: If you mistakenly write pseudocode into an editor for an actual
programming language, such as Python or Visual Basic, errors will result.
A) True
B) False - ANSWER-A) True
True/False: A sequence of characters that is used as data is called a string in
programming.
A) True
B) False - ANSWER-A) True
The value of the expression 12 - 4 * + 9 is ________.
A) 21
B) 15
C) -6
D) 2.18
E) None of these - ANSWER-B) 15
, 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-B) Assignment
True/False: Programmers use pseudocode to create "mock-ups" of programs
because they do not have to worry about syntax rules.
A) True
B) False - ANSWER-A) True
Modules are commonly called what?
A) Procedures
B) Subroutines
C) Subprograms
D) Methods
E) All of these - ANSWER-E) All of these
True/False: A module can have two variables of the same name because they are
within the same scope.
A) True
B) False - ANSWER-B) False
Which type of variable is not recommended to be used in programs because they
make programs hard to understand and debug?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global
True/False: The arguments in a module call and the parameters listed in the module
header must be of compatible data types.
A) True
B) False - ANSWER-B) False
Which type of variable is visible to every module and the entire program?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global
What phrase is placed in the starting terminal symbol of a module in a flowchart?
A) Start
B) Begin
C) Name of the module