Question
Using an if/else statement to control the flow of a program is a common in:
sequence structures
selection structures
iteration structures
machine language structures
sequence structures
selection structures
iteration structures
machine language structures
Answers
GPT-4o mini
Using an if/else statement to control the flow of a program is common in **selection structures**.
Selection structures allow the program to choose different paths of execution based on certain conditions, which is exactly what if/else statements do.
Selection structures allow the program to choose different paths of execution based on certain conditions, which is exactly what if/else statements do.