MCQ Answer

What is the problem called in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous?

What is the problem called in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous?

Topic : JAVA Conditional Statements

A. Dangling if

B. Dangling else

C. Both a and b

D. None of these




Correct Answer is :

B. Dangling else



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad