Which statement about if-then statements is true?
D.
Option A is incorrect because else statements are entirely optional.
Option B is also incorrect.
The target of an if-then statement is not evaluated if the boolean test is false.
Option C is incorrect.
While an if-then statement is often used to test whether an object is of a particular type in order to cast it, it is not required to cast an object.
Option D is correct as an if-then statement may execute a single statement or a block of code {}.