Question: Which statement about if-else-if-else statements is true?

  1. If the first else-if does not succeed, then no other else-ifs are tested.
  2. If an else-if does not succeed, then none of the remaining else-if statements or elses will be tested.
  3. All else-if statements are tested in all cases.
  4. If an else-if succeeds, then none of the remaining else-if statements or elses will tested.

Answer: The correct answer of the above question is Option D:If an else-if succeeds, then none of the remaining else-if statements or elses will tested.