C-17-Q123mediumsingle_mcq
Which of the following best describes a flowchart of if...else?
Which of the following best describes a flowchart of if...else?
- aA single arrow with no branches
- bA decision diamond branching into a true path and a false path
- cA loop returning to the start
- dA rectangle that ends the program
ব্যাখ্যা
An if...else is a two-way decision, conventionally drawn as a diamond. The condition is tested at the diamond, and control flows out along one of two paths depending on whether the result is true or false.