Which term describes selecting among alternatives based on a condition?

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 selecting among alternatives based on a condition?

Explanation:
When an algorithm needs to decide between different actions based on a condition, you use a selection construct. It evaluates a condition and follows one path if it's true, another path if it's false. This idea is captured by the term selection, which underpins if/else (and similar) structures. It differs from iteration (repeating steps), counting (tallying occurrences), and string (a data type for text). So the best term for selecting among alternatives based on a condition is selection.

When an algorithm needs to decide between different actions based on a condition, you use a selection construct. It evaluates a condition and follows one path if it's true, another path if it's false. This idea is captured by the term selection, which underpins if/else (and similar) structures. It differs from iteration (repeating steps), counting (tallying occurrences), and string (a data type for text). So the best term for selecting among alternatives based on a condition is selection.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy