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

Question No: 1 of 21
1.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 client.
  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 21
2.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 21
3.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 21
4.Which of the following code retrieves name and version of the protocol? 
Options:
  1. Header.getProtocol()
  2. response.getProtocol()
  3. request.getProtocol()
  4. None of the above.
View Answer/Explanation:
c
Explanation:

Question No: 5 of 21
5.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: 6 of 21
6. 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: 7 of 21
7.Which of the following are valid servlet filters? 
Options:
  1. Authentication Filters.
  2. Data compression Filters.
  3. Encryption Filters.
  4. All of the above.
View Answer/Explanation:
d
Explanation:

Question No: 8 of 21
8.Which of the following request attributes that an error-handling servlet can access to analyse the nature of error/exception? 
Options:
  1. javax.servlet.error.status_code
  2. javax.servlet.error.exception_type
  3. javax.servlet.error.message
  4. All of the above.
View Answer/Explanation:
d
Explanation:

Question No: 9 of 21
9.Which of the following code delete a cookie in servlet? 
Options:
  1. response.deleteCookie(cookie);
  2. cookie.setMaxAge(0);
  3. request.deleteCookie(cookie);
  4. None of the above
View Answer/Explanation:
b
Explanation:

Question No: 10 of 21
10.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:

  1