192k views
0 votes
Is this statement true , selection statements allow the program to choose different parts of the execution based on the outcome of an expression .



User Spedy
by
8.9k points

1 Answer

2 votes

Answer:

Yes, this statement is true. The use of selection statements, commonly referred to as control flow statements, enables a program to select various execution paths based on the result of an expression. To do this, a condition or expression is tested, and if it is true, one block of code is executed; if it is false, a different block of code is executed. The if statement and the switch statement are the two most common sorts of selection statements.

User Sledge
by
8.4k points

No related questions found