WGU D278 PRE-ASSESSMENT SCRIPTING
AND PROGRAMMING FOUNDATIONS
CERTIFICATION SCRIPT 2026 FULL
ANSWERS TEST PAPER GRADED A+
⩥ Loops commonly consists of three parts:.
Answer: Loop variable initialized before the loop
A decision statement with the loop expression
Loop variable updated at the end of the loop body
⩥ While loop.
Answer: A loop that repeatedly executes the loop body while the loop's
expression evaluates to true
Generally used when a number of iterations is not known
⩥ For loop.
Answer: A loop consisting of a loop variable initialization, a loop
expression, and a loop variable update that typically describes iterating
for a specific number of times.
, Generally used when a number of iterations is known.
⩥ Nested loop.
Answer: A loop that appears in the body of another loop (commonly
referred to as inner and outer loop)
⩥ Do-while loop.
Answer: Loop that first executes the loop body's statements, then checks
the loop condition.
Useful when the loop should iterate at least once
⩥ Array.
Answer: A special variable having one name, but storing a list of data
items with each item being directly accessible (also called a Vector)
Must be an integer type, cannot be floating-point
⩥ Element.
Answer: Each item in an array
⩥ Index.
AND PROGRAMMING FOUNDATIONS
CERTIFICATION SCRIPT 2026 FULL
ANSWERS TEST PAPER GRADED A+
⩥ Loops commonly consists of three parts:.
Answer: Loop variable initialized before the loop
A decision statement with the loop expression
Loop variable updated at the end of the loop body
⩥ While loop.
Answer: A loop that repeatedly executes the loop body while the loop's
expression evaluates to true
Generally used when a number of iterations is not known
⩥ For loop.
Answer: A loop consisting of a loop variable initialization, a loop
expression, and a loop variable update that typically describes iterating
for a specific number of times.
, Generally used when a number of iterations is known.
⩥ Nested loop.
Answer: A loop that appears in the body of another loop (commonly
referred to as inner and outer loop)
⩥ Do-while loop.
Answer: Loop that first executes the loop body's statements, then checks
the loop condition.
Useful when the loop should iterate at least once
⩥ Array.
Answer: A special variable having one name, but storing a list of data
items with each item being directly accessible (also called a Vector)
Must be an integer type, cannot be floating-point
⩥ Element.
Answer: Each item in an array
⩥ Index.