This would better sit on the SCWCD forum as it's about a mock exam question.

In JSPs code inside scriptlet expressions (i.e. <%=%>) become the argument to the print method of the JspWriter hence using the option A wouldn't even compile the JSP. You can't use statements inside the print method.