Tag: web technology

Questions Related to web technology

  1. for forward the request

  2. for include the content from the another URL

  3. both of these

  4. only for forward the request


Correct Option: C

What details in MANIFEST.MF file

  1. contains which jar file will executed

  2. deployment descriptor file

  3. emty file for future use of servlet

  4. none of these


Correct Option: A

How to maintain session in servlet

  1. http session

  2. cookies

  3. URL rewriting, hiddenform fields

  4. httpsession,hiddenform fields,rewriting,cookies


Correct Option: D

Which type is preferable to maintain session

  1. cookies because user can turn off it

  2. hidden form field because of its performance is moderate

  3. httpsession because no limit for session data and performance is good

  4. Url rewriting becasue its easy


Correct Option: C
  1. yes but then serlvet will not work properly ie can't provide initilization parameters

  2. not possible

  3. sometimes only

  4. none of these


Correct Option: A
  1. GenericServlet normal purpose HttpSerlvet for complex process

  2. both are same but parameters are different

  3. both of above

  4. GenericServlet is protocol independent, HttpServlet is protocol dependent


Correct Option: D

differnce between sendRedirect() and forward()

  1. sendRedirect for redirect request on server side forward process

  2. SendRedirect on client side process and forward on browser side process

  3. sendRedirect for slow and forward for fast

  4. none of these


Correct Option: B
  1. javax.servlet.servletRequest accepts relative path and javax.servlet.servletContext doesn't accepts relative path

  2. both are same

  3. javax.servlet.servletRequest for include and javax.servlet.servletContext for forward

  4. all of above


Correct Option: A

Given the following policy: policy-statementlimit-cust { from { route-filter 10.0.0.0/8 orlonger reject; route-filter 10.0.55.0/24 orlonger; route-filter 10.0.0.0/16 orlonger accept; route-filter 0.0.0.0/0 through 0.0.0.0/32 { metric 5; accept; } } then { metric 10; accept; } } What happens to the route 10.0.56.0/24?

  1. The route is rejected.

  2. The route is accepted

  3. The metric is set to 5 and the route is accepted.

  4. The metric is set to 10 and the route is accepted.


Correct Option: B