Homework Clinic

Science Clinic => Computer Science => Topic started by: cherise1989 on May 6, 2020

Title: Which of the following is a JSP implicit object?
Post 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
Title: Which of the following is a JSP implicit object?
Post by: micaelaswann on May 6, 2020

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