bottom-testedloop
nounUK /ˈbɒtəm ˈtestɪd luːp/
US /ˈbɑːtəm ˈtestɪd luːp/
A bottom-tested loop is a loop that checks its rule after doing the work once.
The program used a bottom-tested loop to ask for a password at least one time.
RELATED WORDS
OTHER MEANINGS
2. A loop whose stopping condition is checked at the end of each pass.
A bottom-tested loop always runs its body at least once before checking the condition.
3. A repeat-until structure that continues until a condition becomes true.
She wrote a bottom-tested loop that repeats until the user types zero.
4. A control structure that guarantees one execution before any test.
The menu used a bottom-tested loop so the options appeared before the exit check.