Which term describes repeating a block of code until a condition is met, with the condition checked after each iteration?

Prepare for the IGCSE Algorithms and Pseudocode Exam. Study with comprehensive questions covering key algorithms and pseudocode techniques. Access hints and explanations to gear up for your exam success!

Multiple Choice

Which term describes repeating a block of code until a condition is met, with the condition checked after each iteration?

Explanation:
Iteration is the idea of repeating a block of code. Saying the condition is checked after each iteration points to a post-test loop (often a do-while style), which runs the block first and then tests the condition to decide whether to continue. The other terms describe specific tasks or loop styles, not the act of repeating itself: counting and totalling are operations inside a loop, and a pre-condition loop checks the condition before running the block, which isn’t what's described here. So the best answer is iteration.

Iteration is the idea of repeating a block of code. Saying the condition is checked after each iteration points to a post-test loop (often a do-while style), which runs the block first and then tests the condition to decide whether to continue. The other terms describe specific tasks or loop styles, not the act of repeating itself: counting and totalling are operations inside a loop, and a pre-condition loop checks the condition before running the block, which isn’t what's described here. So the best answer is iteration.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy