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

Enhance your understanding of IGCSE Algorithms and Pseudocode Foundations. Engage with flashcards and multiple-choice questions, each offering hints and explanations. Prepare thoroughly for your exam!

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