WGU D681 TASK 2 MURISON SCRIPT
FINAL REVIEW QUESTIONS VERIFIED
COMPLETE ANSWERS 100 PERCENT
CORRECT
◉ Epsilon
Answer: The difference threshold indicating that floating-point
numbers are equal.
◉ if-else statement
Answer: An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.
◉ if statement
Answer: An if expression followed by sub-statements, with no else
part.
◉ if-elseif statement
Answer: Starts with an if expression, followed by elseif
expressions, and ending with else; when a program reaches the
statement, exactly one of those branches will execute. When the
else branch has no statements, the else part is omitted.
◉ Loop
, Answer: A program construct that repeatedly executes the loop's
statements (known as the loop body) while the loop's expression
is true; when false, execution proceeds past the loop. Each time
through a loop's statements is called an iteration.
◉ Infinite loop
Answer: A loop that never stops iterating. A common error is to
accidentally create an infinite loop, often by forgetting to update a
variable in the body, or by creating a loop expression whose
evaluation to false isn't always reachable.
◉ Sentinel value
Answer: A special value indicating the end of a list, such as a list of
positive integers ending with 0, as in 1 0 1 6 3 0.
◉ While loop
Answer: A loop that repeatedly executes the loop body *while* the
loop's expression evaluates to true.
◉ 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.
◉ Nested loop
FINAL REVIEW QUESTIONS VERIFIED
COMPLETE ANSWERS 100 PERCENT
CORRECT
◉ Epsilon
Answer: The difference threshold indicating that floating-point
numbers are equal.
◉ if-else statement
Answer: An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.
◉ if statement
Answer: An if expression followed by sub-statements, with no else
part.
◉ if-elseif statement
Answer: Starts with an if expression, followed by elseif
expressions, and ending with else; when a program reaches the
statement, exactly one of those branches will execute. When the
else branch has no statements, the else part is omitted.
◉ Loop
, Answer: A program construct that repeatedly executes the loop's
statements (known as the loop body) while the loop's expression
is true; when false, execution proceeds past the loop. Each time
through a loop's statements is called an iteration.
◉ Infinite loop
Answer: A loop that never stops iterating. A common error is to
accidentally create an infinite loop, often by forgetting to update a
variable in the body, or by creating a loop expression whose
evaluation to false isn't always reachable.
◉ Sentinel value
Answer: A special value indicating the end of a list, such as a list of
positive integers ending with 0, as in 1 0 1 6 3 0.
◉ While loop
Answer: A loop that repeatedly executes the loop body *while* the
loop's expression evaluates to true.
◉ 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.
◉ Nested loop