Tag: technology

Questions Related to technology

  1. out.println(config.getServletContext().getParameter("app-name")); out.println(config.getInitParameter("app-name"));

  2. out.println(config.getInitParameter("app-name")); out.println(config.getServletContext().getInitParameter("app-name"));

  3. out.println(config.getServletContext().getInitParameter("app-name")); out.println(config.getInitParameter("app-name"));

  4. out.println(config.getServletContext().getInitParameter("app-name")); out.println(config.getParameter("app-name"));


Correct Option: C
  1. ${request.getAttribute()}

  2. ${request.attribute}

  3. ${pageContext.request.getAttribute()}

  4. ${pageContext.request.attribute}


Correct Option: D
  1. Set UseMnemonic property to True

  2. Set DragMode property to 1

  3. Set LinkMode property to 1

  4. Put & in the lebel caption


Correct Option: A,D
  1. Syntax Errors

  2. System Errors

  3. Runtime Errors

  4. Logic Errors


Correct Option: A,C,D
  1. Connection

  2. Line

  3. Shape

  4. Records


Correct Option: B,C
  1. Use the method 'HttpServletRequest.getParameterNames()' which will return an enumeration of parameter names.

  2. Use the method 'HttpServletResponse.getParameterNames()' which will return an enumeration of parameter names.

  3. Use the method 'HttpServletRequest.getAllParameters()' which will return an enumeration of parameter names.

  4. There is no direct support in the Servlet API to retrieve the name of all the parameters sent by the client.


Correct Option: A
  1. ${request.getAttribute()}

  2. ${request.attribute}

  3. ${pageContext.request.getAttribute()}

  4. ${pageContext.request.attribute}


Correct Option: D
  1. The value of the 'test' variable will be 2.

  2. The value of the 'test' variable will be 0.

  3. The value of the 'test' variable will be 1.

  4. The variable 'test' must be declared at global scope, else a run-time error will occur


Correct Option: C