Spring Framework Quiz # 1

Instructions
Quiz: Spring Framework Quiz # 1
Subject: Basic Spring Framework
Total Questions: 30 MCQs
Time: 30 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Spring Framework Quiz # 1
Question 1 of 30
00:00
  • Which of these resource prefixes could be used?

  • spring-test uses what common convention to allow testing using HTTP session and HTTP request objects?

  • True or False? Using Spring's JDBC support forces you to use Oracle.

  • Which of the following is NOT a scope available in Spring web applications?

  • In the following code: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="helloWorld" class="com.tutorialspoint.HelloWorld"> <property name="message" value="Hello World!"/> </bean> </beans> The HelloWorld class should have a method called what?

  • How is slf4j commonly used in Spring applications?

  • Is the following valid ? - <map><entry key="a" value="b" /></map>

  • Which of the following is NOT a JDBC statement?

  • Which annotation lets you grab the value of an HTTP request header?

  • Which one of the following statements is NOT true about MVC pattern?

  • What is one of the major improvements in Spring 3?

  • Which of the following is a synonym for dependency injection?

  • @RequestMapping is part of which part of Spring?

  • Does Spring support injection of Enum types?

  • Is it possible to set up Spring AOP using XML configuration only (as opposed to annotations)?

  • Which of the following is not a valid method to provide configuration metadata to a Spring Container?

  • True or False? @RequestMapping can be used on an entire class as well as on individual methods.

  • How many bean configuration files can you have?

  • True or False? Spring Web MVC supports different locales out of the box.

  • What type of dependency injection does Spring NOT support?

  • What if I need a method to be called after bean construction?

  • In AOP, what are the different points where weaving can be applied?

  • What is MultipartFile used for?

  • Configuration to declare a JTA transaction manager “<bean id="mgr" class="org.springframework.transaction.jta.JtaTransactionManager" />“ Is this correct?

  • True or False? Spring supports custom bean scopes.

  • What are the different modules in Spring framework?

  • What types of transaction management does Spring support?

  • What is AOP?

  • Can you inject null and empty string values in Spring?

  • What does a bean definition contain?

Spring Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

Spring Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it