Which one of these is used for evaluating multiple conditions?
A) if......else
B) if
C) else
D) None of these
Answers
Answered by
6
Answer:
if ........................................ else
Answered by
0
For evaluating multiple conditions a) if.....else is used. It is used because:
- In programming if...else is used in decision making. When a condition is given and if it is true , the code which is written inside the if block is executed.
- If the condition given is false then the code written in the else block is executed.
- The flow of the program of the program depends completely on the if-else statement so, it is also called Control Flow statement.
- In programming if the given values are non-zero or non-null they are assumed to be true whereas if the values are zero or null they are automatically assumed to be false.
#SPJ3
Similar questions