Java Web Technologies & Spring Framework

Test your knowledge of Java web development including servlets, HTTP protocols, JavaScript, and Spring framework concepts including AOP, IOC, and MVC.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

____________ feature of Spring manges the life cycle and configuration of application objects ?

  1. IOC
  2. Container
  3. AOP
  4. MVC Framework
Question 2 Multiple Choice (Single Answer)

___________ includes enterprise service such as JNDI, EJB, e-mail, internalization, validation and scheduling functionality.

  1. Spring Context
  2. Core Container
  3. Spring AOP
  4. Spring DAO
Question 3 Multiple Choice (Multiple Answers)

Select Spring Modules among following.

  1. Core Container
  2. Bean Factory
  3. Spring ORM
  4. Spring MVC Framework
Question 4 Multiple Choice (Single Answer)

The process of applying aspects to a target object to create a new proxy object is called _______ ?

  1. Advice
  2. Pointcut
  3. Weaving
  4. Jointpoint
Question 5 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 99 in the text field ?

  1. 0
  2. 9
  3. 99
  4. Error On Page
Question 6 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 08 in the text field ?

  1. 8
  2. 0
  3. NaN
  4. 08
Question 7 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 012 in the text field ?

  1. 12
  2. 0
  3. 10
  4. NaN
  5. None Of These
Question 8 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 0XAB in the text field ?

  1. 171
  2. NaN
  3. Error On Page
  4. 0
  5. ab
Question 9 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value,10)); What is The Output When The User Enters 0XAB in the text field ?

  1. Nan
  2. ab
  3. 0
  4. Error
Question 10 Multiple Choice (Single Answer)

HTML: javascript: alert(parseInt(name.value,10)); What is The Output When The User Enters 08 in the text field ?

  1. Nan
  2. 08
  3. 0
  4. 8
Question 11 Multiple Choice (Single Answer)

Name the class that includes the getSession method that is used to get the HttpSession object.

  1. SessionContext
  2. SessionConfig
  3. HttpServletRequest
  4. HttpServletResponse
Question 12 Multiple Choice (Single Answer)

When using HTML forms which of the folowing is true for POST method? Select the one correct answer.

  1. POST allows users to bookmark URLs with parameters.
  2. The POST method should not be used when large amount of data needs to be transferred.
  3. POST allows secure data transmission over the http method.
  4. POST method sends data in the body of the request.
Question 13 Multiple Choice (Single Answer)

The method getWriter returns an object of type PrintWriter. This class has println methods to generate output. Which of these classes define the getWriter method? Select the one correct answer.

  1. HttpServletRequest
  2. HttpServletResponse
  3. ServletConfig
  4. ServletContext
Question 14 True/False

Is the following statement true or false. URL rewriting may be used when a browser is disabled. In URL encoding the session id is included as part of the URL

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

Which of the following statements are correct about the status of the Http response. Select the one correct answer.

  1. A status of 200 to 299 signifies that the request was successful.
  2. A status of 300 to 399 are informational messages.
  3. A status of 400 to 499 indicates an error in the server.
  4. A status of 500 to 599 indicates an error in the client.
Question 16 Multiple Choice (Single Answer)

Name the method defined in the HttpServletResponse class that may be used to set the content type. Select the one correct answer.

  1. setType
  2. setContent
  3. setContentType
  4. setResponseContentType
Question 17 Multiple Choice (Single Answer)

A user types the URL http://www.javaprepare.com/scwd/index.html . Which HTTP request gets generated. Select the one correct answer.

  1. GET method
  2. PUT method
  3. POST method
  4. HEAD method
Question 18 Multiple Choice (Single Answer)

Name the location of compiled class files within a war file? Select the one correct answer.

  1. /META-INF/classes
  2. /classes
  3. /WEB-INF/classes
  4. /root/classes
Question 19 Multiple Choice (Single Answer)

Which interface, the GenericServlet class does not implement?

  1. Servlet
  2. ServletConfig
  3. Serializable
  4. ServletContext
Question 20 Multiple Choice (Single Answer)

Among following, which class/interface refers to the Application level scope:

  1. ServeltRequest
  2. HttpSession
  3. ServletConfig
  4. ServletContext