Programming Logic & Design Final
Exam Chapters 1-6 Questions and
Correct Answers. Newest 2026-2027
Rated A
A _____ expression has one of two values, often expressed as true or
false.
Select one:
a. Selection
b. Georgian
c. Caesarian
d. Boolean - Ansd. Boolean
A _________is a variable that can be set to indicate whether some event
has occurred.
Select one:
a. counter
b. subscript
c. banner
d. flag - Ansd. flag
A counter keeps track of _______________.
Select one:
a. the number of machine cycles required by a segment of a program
b. the number of times software has been revised
1
,c. the number of times an event has occurred
d. the number of loop structures within a program - Ansc. the number of
times an event has occurred
A do-while loop _______________.
Select one:
a. is a type of pretest loop
b. is not structured, and therefore obsolete
c. can be replaced by a sequence and a while loop
d. has a body that might never execute - Ansc. can be replaced by a
sequence and a while loop
A group of statements that executes as a unit is a _____________.
Select one:
a. cohort
b. family
c. chunk
d. block - Ansd. block
A hierarchy chart tells you ___________.
Select one:
a. which modules call other modules
b. what tasks are to be performed within each program module
c. when a module executes
d. all of the above - Ansa. which modules call other modules
A message that asks a user for input is a(n) ___________.
2
,Select one:
a. prompt
b. declaration
c. comment
d. echo - Ansa. prompt
A program contains a seven-element array that holds the names of the
days of the week. At the start of the program, you display the day names
using a subscript named dayNum. You display the same array values again
at the end of the program, where you ________ as a subscript to the array.
Select one:
a. must not use dayNum
b. can use dayNum, but can also use another numeric value
c. must use a numeric constant instead of a variable
d. must use dayNum - Ansb. can use dayNum, but can also use another
numeric value
A programmer's most important task before planning the logic of a program
is to __________________.
Select one:
a. code the problem
b. train the users of the program
c. understand the problem
d. decide which programming language to use - Ansc. understand the
problem
3
, A programming language's rules are its ____________.
Select one:
a. logic
b. syntax
c. format
d. options - Ansb. syntax
A report that lists only totals, with no details about individual records, is a(n)
_______________ report.
Select one:
a. accumulator
b. final
c. summary
d. group - Ansc. summary
A sequence structure can contain _____________.
Select one:
a. any number of tasks
b. exactly three tasks
c. only one task
d. no more than three tasks - Ansa. any number of tasks
A subscript is a(n) _________.
Select one:
a. number that represents the highest value stored within an array
b. alternate name for an array
c. element in an array
4
Exam Chapters 1-6 Questions and
Correct Answers. Newest 2026-2027
Rated A
A _____ expression has one of two values, often expressed as true or
false.
Select one:
a. Selection
b. Georgian
c. Caesarian
d. Boolean - Ansd. Boolean
A _________is a variable that can be set to indicate whether some event
has occurred.
Select one:
a. counter
b. subscript
c. banner
d. flag - Ansd. flag
A counter keeps track of _______________.
Select one:
a. the number of machine cycles required by a segment of a program
b. the number of times software has been revised
1
,c. the number of times an event has occurred
d. the number of loop structures within a program - Ansc. the number of
times an event has occurred
A do-while loop _______________.
Select one:
a. is a type of pretest loop
b. is not structured, and therefore obsolete
c. can be replaced by a sequence and a while loop
d. has a body that might never execute - Ansc. can be replaced by a
sequence and a while loop
A group of statements that executes as a unit is a _____________.
Select one:
a. cohort
b. family
c. chunk
d. block - Ansd. block
A hierarchy chart tells you ___________.
Select one:
a. which modules call other modules
b. what tasks are to be performed within each program module
c. when a module executes
d. all of the above - Ansa. which modules call other modules
A message that asks a user for input is a(n) ___________.
2
,Select one:
a. prompt
b. declaration
c. comment
d. echo - Ansa. prompt
A program contains a seven-element array that holds the names of the
days of the week. At the start of the program, you display the day names
using a subscript named dayNum. You display the same array values again
at the end of the program, where you ________ as a subscript to the array.
Select one:
a. must not use dayNum
b. can use dayNum, but can also use another numeric value
c. must use a numeric constant instead of a variable
d. must use dayNum - Ansb. can use dayNum, but can also use another
numeric value
A programmer's most important task before planning the logic of a program
is to __________________.
Select one:
a. code the problem
b. train the users of the program
c. understand the problem
d. decide which programming language to use - Ansc. understand the
problem
3
, A programming language's rules are its ____________.
Select one:
a. logic
b. syntax
c. format
d. options - Ansb. syntax
A report that lists only totals, with no details about individual records, is a(n)
_______________ report.
Select one:
a. accumulator
b. final
c. summary
d. group - Ansc. summary
A sequence structure can contain _____________.
Select one:
a. any number of tasks
b. exactly three tasks
c. only one task
d. no more than three tasks - Ansa. any number of tasks
A subscript is a(n) _________.
Select one:
a. number that represents the highest value stored within an array
b. alternate name for an array
c. element in an array
4