Asked by Drishana Pillay on May 11, 2024

verifed

Verified

In a(n) ____ loop the condition is tested at the end of the repeating section of code.

A) pretest
B) posttest
C) fixed-count
D) condition-controlled

Posttest Loop

A control flow structure where the condition is evaluated after the loop's body has been executed, ensuring the body runs at least once.

Pretest Loop

A Pretest Loop is a control structure which evaluates its condition before executing the loop's body, e.g., a 'for' or 'while' loop in programming.

Fixed-Count

Refers to a situation or a loop where the number of iterations is predetermined and does not change during its execution.

  • Distinguish and recognize the differences between pretest and posttest loops.
verifed

Verified Answer

LR
Latrice RobertsMay 16, 2024
Final Answer :
B
Explanation :
In a posttest loop, the condition is evaluated after the body of the loop has executed, which means the loop runs at least once regardless of the condition's truth value at the start.