View Count: 0
Duration: 26 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 36 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 29 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 22 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 11
Which of the following is true about service() method of Servlet? 
Options:
  1. The servlet container (i.e. web server) calls the service() method to handle requests coming from the clien
  2. Each time the server receives a request for a servlet, the server spawns a new thread and calls service.
  3. The service() method checks the HTTP request type (GET, POST, PUT, DELETE, etc.) and calls doGet, doPost, doPut, doDelete, etc. methods as appropriate.
  4. All of the above
View Answer/Explanation:
d
Explanation:

Question No: 2 of 11
Which of the following method can be used to get the value of form parameter? 
Options:
  1. request.getParameter()
  2. request.getParameterValues()
  3. request.getParameterNames()
  4. None of the above
View Answer/Explanation:
a
Explanation:

Question No: 3 of 11
Which of the following code is used to get names of the attributes in Servlet? 
Options:
  1. response.getAttributeNames()
  2. request.getAttributeNames()
  3. Header.getAttributeNames()
  4. None of the above.
View Answer/Explanation:
b
Explanation:

Question No: 4 of 11
Which of the following code encodes the specified URL for use in the sendRedirect method? 
Options:
  1. response.encodeRedirectURL(url)
  2. request.encodeRedirectURL(url)
  3. Header.encodeRedirectURL(url)
  4. None of the above.
View Answer/Explanation:
a
Explanation:

Question No: 5 of 11
Which of the following code can be used to write a cookie? 
Options:
  1. request.addCookie(cookie)
  2. response.addCookie(cookie)
  3. Header.addCookie(cookie)
  4. None of the above.
View Answer/Explanation:
b
Explanation:

Question No: 6 of 11
Which of the following code is used to add an attribute in a HTTP Session object in Servlet? 
Options:
  1. session.addAttribute(name,value)
  2. session.setAttribute(name,value)
  3. session.createAttribute(name,value)
  4. None of the above
View Answer/Explanation:
b
Explanation:

Question No: 7 of 11
Which of the following code is used to set auto refresh of a page after 5 seconds? 
Options:
  1. session.setIntHeader("Refresh", 5);
  2. response.setIntHeader("Refresh", 5);
  3. request.setIntHeader("Refresh", 5);
  4. None of the above.
View Answer/Explanation:
b
Explanation:

Question No: 8 of 11
Which of the following is true about javax.servlet.error.message? 
Options:
  1. This attribute gives exact error message which can be stored and analysed after storing in a java.lang.String data type.
  2. This attribute gives information about exception type which can be stored and analysed after storing in a java.lang.Class data type.
  3. This attribute gives status code which can be stored and analysed after storing in a java.lang.Integer data type.
  4. This attribute gives information about URL calling the servlet and it can be stored and analysed after storing in a java.lang.String data type.
View Answer/Explanation:
a
Explanation:

Question No: 9 of 11
request is instance of which class? 
Options:
  1. Request
  2. HttpRequest
  3. HttpServletRequest
  4. ServletRequest
View Answer/Explanation:
c
Explanation:

Question No: 10 of 11
Which of the following method can be used to read parameters names? 
Options:
  1. request.getParameter()
  2. response.getParameter()
  3. request.getParameterNames()
  4. response.getParameterNames()
View Answer/Explanation:
c
Explanation:

  1