Why does the ORDER of conditions matter in a cascading \(if\)-\(else\ if\) chain that assigns letter grades from highest to lowest threshold (90, 80, 70, ...)?
- **A)** Conditions must always be listed in alphabetical order
- **B)** Because only the FIRST true condition's block runs -- if the conditions were instead ordered from LOWEST to HIGHEST threshold, a high score like 95 would incorrectly match the first (lowest) condition it satisfies rather than the intended highest grade
- **C)** The order of conditions in a cascading if-else-if chain never affects the outcome
- **D)** Reordering the conditions would cause a compile-time error
Answer & Explanation:
**Answer: B)**
This is a classic, frequently tested bug: writing grade-threshold conditions from low to high causes every score to match the first, lowest thresh'd condition instead of the correct one.