The instruction “If it’s raining outside, then take an umbrella to work” is an example of the _____ structure, A. Control B. Repetition C. Selection D. Sequence E. Switching

Control
Repetition
Selection
Sequence E. Switching

The correct answer is C. Selection.

A selection structure is a type of control flow structure that allows a program to choose between two or more possible courses of action based on a condition. In the instruction “If it’s raining outside, then take an umbrella to work,” the condition is “it’s raining outside.” If the condition is true, then the program will take the action “take an umbrella to work.” If the condition is false, then the program will take some other action, such as “go to work without an umbrella.”

A control structure is a way of organizing the instructions in a program so that they are executed in the correct order. There are four main types of control structures: sequence, selection, repetition, and switching.

A sequence structure is a simple way of organizing instructions. The instructions are executed one after the other, in the order in which they appear in the program.

A selection structure allows a program to choose between two or more possible courses of action based on a condition.

A repetition structure allows a program to repeat a group of instructions a specified number of times or until a condition is met.

A switching structure allows a program to choose between two or more possible courses of action based on the value of a variable.