Start learning →

What name is given to the ambiguity of pairing an else with an if?

ADeadlock dependency
BDangling else problem
CFalling through trap
DOff-by-one deviation
Answer & Solution
Correct answer: B. Dangling else problem
Ambiguity in pairing an else clause with nested if clauses is the dangling else problem.
Practise this question with Quill — ICSE Class 8 →

Keep practising Conditional Statements in Java

Browse all Conditional Statements in Java questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Conditional Statements in Java lesson →