Selection structures that can select from many alternatives are known as . . . . . . . .

Selection structures
Multiple-alternative selection structures
Multiway selection structures
Multipath selection structures

The correct answer is: C. Multiway selection structures

A selection structure is a control flow statement that allows the program to execute different statements based on a condition. A multiple-alternative selection structure is a selection structure that can select from many alternatives. A multiway selection structure is another name for a multiple-alternative selection structure.

Option A is incorrect because selection structures can only select from one alternative. Option B is incorrect because multiple-alternative selection structures can select from many alternatives. Option D is incorrect because multipath selection structures is not a term used in computer science.

Here is an example of a multiple-alternative selection structure:

if (condition1) {
statement1;
} else if (condition2) {
statement2;
} else if (condition3) {
statement3;
} else {
statement4;
}

In this example, the program will execute statement1 if condition1 is true. If condition1 is false, the program will execute statement2 if condition2 is true. If condition2 is false, the program will execute statement3 if condition3 is true. If condition3 is false, the program will execute statement4.

Exit mobile version