Solved

What Is the Rule for Lining Up, or Matching, Elses

Question 42

Multiple Choice

What is the rule for lining up, or matching, elses?


A) The first else goes with the first if.
B) Else goes with the closest previous if that does not have its own else.
C) The else goes with the one that is indented identically to it.
D) Else matches the closest if that follows it.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents