Homework Clinic
Science Clinic => Computer Science => Topic started by: cherise1989 on May 6, 2020
-
Question 1
________ is a JSP declaration.
◦ <%= i %>
◦ <!-- HTML Comment -->
◦ <% for (int i = 0; i <= 10; i++) { %>
◦ <%! private long computeFactorial(int n) { if (n == 0) return 1; else return n * computeFactorial(n - 1); } %>
◦ <%= Math.pow(2, 3) %>
Question 2
Which of the following is a JSP implicit object?
◦ application
◦ session
◦ out
◦ response
◦ request
-
Answer 1
<%! private long computeFactorial(int n) { if (n == 0) return 1; else return n * computeFactorial(n - 1); } %>
Answer 2
▸application
▸session
▸out
▸response
▸request