In a standard program flowchart, the decision symbol (a diamond) represents a Yes/No or True/False test. How many outgoing flow lines (arrows) does this symbol typically have?
One - control continues along a single path
Two - one for Yes/True and one for No/False
It can have an unlimited number because each branch is drawn from the same diamond
Three - one for Yes, one for No, and one for Maybe
The purpose of a decision symbol is to split the control flow based on the result of a binary test, so two arrows leave the diamond-one labeled Yes/True and the other No/False. If a problem requires more than two possible outcomes, the flow should generally be decomposed into additional decision symbols rather than adding extra exits to a single diamond.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.