Multiple choice

If - else statement is used for

  1. looping

  2. iteration

  3. condition

  4. all of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

If-else statements are control flow structures used to execute code blocks based on the evaluation of a boolean condition. They are not used for looping or iteration directly.