Selection
A fundamental programming construct using conditional statements (if, if-else, switch) to execute different code blocks based on boolean conditions. Selection enables programs to make decisions and branch execution paths based on data values. Different paths may be executed depending on condition evaluation at runtime. Selection constructs include simple if, if-else, nested if-else, and switch statements.
Real World
Netflix uses selection logic to decide which age-rating warning to display — if the user's profile is under 12, it blocks 15-rated content; otherwise, it plays with a warning banner.
Exam Focus
For 'identify the construct' questions, look for IF/ELSE keywords — state 'selection' explicitly, not just 'decision'.
How well did you know this?