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.
Questions
____________ feature of Spring manges the life cycle and configuration of application objects ?
- IOC
- Container
- AOP
- MVC Framework
___________ includes enterprise service such as JNDI, EJB, e-mail, internalization, validation and scheduling functionality.
- Spring Context
- Core Container
- Spring AOP
- Spring DAO
Select Spring Modules among following.
- Core Container
- Bean Factory
- Spring ORM
- Spring MVC Framework
The process of applying aspects to a target object to create a new proxy object is called _______ ?
- Advice
- Pointcut
- Weaving
- Jointpoint
HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 99 in the text field ?
- 0
- 9
- 99
- Error On Page
HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 08 in the text field ?
- 8
- 0
- NaN
- 08
HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 012 in the text field ?
- 12
- 0
- 10
- NaN
- None Of These
HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 0XAB in the text field ?
- 171
- NaN
- Error On Page
- 0
- ab
HTML: javascript: alert(parseInt(name.value,10)); What is The Output When The User Enters 0XAB in the text field ?
- Nan
- ab
- 0
- Error
HTML: javascript: alert(parseInt(name.value,10)); What is The Output When The User Enters 08 in the text field ?
- Nan
- 08
- 0
- 8
Name the class that includes the getSession method that is used to get the HttpSession object.
- SessionContext
- SessionConfig
- HttpServletRequest
- HttpServletResponse
When using HTML forms which of the folowing is true for POST method? Select the one correct answer.
- POST allows users to bookmark URLs with parameters.
- The POST method should not be used when large amount of data needs to be transferred.
- POST allows secure data transmission over the http method.
- POST method sends data in the body of the request.
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.
- HttpServletRequest
- HttpServletResponse
- ServletConfig
- ServletContext
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
- True
- False
Which of the following statements are correct about the status of the Http response. Select the one correct answer.
- A status of 200 to 299 signifies that the request was successful.
- A status of 300 to 399 are informational messages.
- A status of 400 to 499 indicates an error in the server.
- A status of 500 to 599 indicates an error in the client.
Name the method defined in the HttpServletResponse class that may be used to set the content type. Select the one correct answer.
- setType
- setContent
- setContentType
- setResponseContentType
A user types the URL http://www.javaprepare.com/scwd/index.html . Which HTTP request gets generated. Select the one correct answer.
- GET method
- PUT method
- POST method
- HEAD method
Name the location of compiled class files within a war file? Select the one correct answer.
- /META-INF/classes
- /classes
- /WEB-INF/classes
- /root/classes
Which interface, the GenericServlet class does not implement?
- Servlet
- ServletConfig
- Serializable
- ServletContext
Among following, which class/interface refers to the Application level scope:
- ServeltRequest
- HttpSession
- ServletConfig
- ServletContext