Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
PDFs
Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
PDFs
Login
Sign up
Skill Assessments
>
IT & Programming
>
Spring Framework Skill Assessment
>
Quiz # 6
Spring Framework Quiz # 6
Instructions
Quiz:
Spring Framework Quiz # 6
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.
Start Quiz
Spring Framework Quiz # 6
End Quiz
Question
1
of 30
00:00
Which of the following is a VALID Spring form taglib declaration?
<%@ taglib prefix="form" uri="http://www.springframework.org/form/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.com/tags/form" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
Which of the following is incorrect?
BeanFactory does not support enterprise services such JNDI access and EJB integration whereas ApplicationContext facilitates integration with enterprise services
BeanFactory does not support internationalization (I18N) messages whereas ApplicationContext includes support for I18N messages
ApplicationContext does NOT publish events to beans that are registered as listeners whereas BeanFactory published events to registered beans
BeanFactory supports just one config file whereas ApplicationContext can have multiple config files
Which of the following methods are needed for loading a database driver in JDBC?
Class.forName()
None of these
registerDriver()
Both registerDriver() method and Class.forName()
Which of the following annotation enables default data conversion in Spring Web MVC?
@RequestMapping
@InitBinder
@Valid
@Controller
In transactions and exception management, what is the default rollback policy?
No Rollbacks possible
Rollback can happen on any Exception
Rollback for a CompiletimeException
Rollback for a RuntimeException
In Spring and Hibernate integration, which is the correct implementation of the Session Factory?
LocalFactoryBean
SessionFactoryBean
LocalSessionFactoryBean
SessionFactory
True or False? @PathVariable is used on classes to indicate they will be used as handlers if a variable is found.
False
TRUE
Which of the following best describes Spring Batch?
Spring Batch provides classes and APIs for job processing statistics, job restart and partitioning techniques to process high-volume of data and read/write to resources but NOT for transaction management
Spring Batch does NOT provides classes and APIs for job processing statistics, job restart and partitioning techniques but does provide functionality for complex processes like skipping or retrying failed items
Spring Batch provides classes and APIs to read/write resources, transaction management, job processing statistics, job restart and partitioning techniques to process high-volume of data
Spring Batch provides classes and APIs for job processing statistics, job restart and partitioning techniques to process high-volume of data but NOT for read/write resources and transaction management
Spring - WS Core is NOT dependent on which of the following modules?
Spring WS Security
Spring OXM
Spring ORM
Spring XML
Are Spring singleton beans thread-safe?
No
Depends on how they are setup
Yes
Which one of the following is NOT true about HibernateDaoSupport Class
By extending HibernateDaoSupport class, you can simply call getHibernateTemplate() method to retrieve the template instance.
The common use is to extend this class and inject the SessionFactory dependency
HibernateDaoSupport class, has a commit() method which can commit the transaction
HibernateDaoSupport class allows you to obtain Session and HibernateTemplate
Which of the following statements is NOT true when defining the <intercept-url> elements in security.xml?
When using expression based authorization the <http> elements need to be marked as use-expressions="true"
When defining the <intercept-url> elements the sequence doesn't matter
The path attribute of the <intercept-url> element is independent and is not aware of the path attribute of the <http> element.
The <intercept-ur> element won't work in the <http> elements that are marked as security = "none".
Which one of the following is NOT true about Spring MVC View resolver
TilesViewResolver: Looks up a view that is defined as a Tiles template. The name of the template is the same as the logical view name.
BeanNameViewResolver: Finds an implementation of View that’s registered as a <bean> whose class is the same as the logical view name.
ContentNegotiatingViewResolver: Delegates to one or more other view resolvers, the choice of which is based on the content type being requested.
InternalResourceViewResolver: Finds a view template. The path to the view template is derived by prefixing and suffixing the logical view name.
Which one of the following is NOT true about the followng code: @Controller @RequestMapping("/reservationForm") @SessionAttributes("reservation") public class ReservationFormController { ... @RequestMapping(method = RequestMethod.POST) public String submitForm(@ModelAttribute("reservation") Reservation reservation, BindingResult result) { ... return "redirect:reservationSuccess"; } ... }
The redirect: prefix in the view name is used to avoid a problem known as duplicate form submission.
The BindingResult object is used to map the user request to the controller method.
The @SessionAttributes is used to save a Reservation object to a user’s session.
The @ModelAttribute("reservation") is used to reference the Reservation object.
Which of the following is the most commonly used view resolver for integrating JSPs with Spring?
InternalResourceViewResolver
Both InternalResourceViewResolver and ResourceBundleViewResolver
JstlView
ResourceBundleViewResolver
JSPResourceViewResolver
Which of the following is a common cross-cutting concern?
aspects
logging
beans
configuration
<concurrency-control> element can be used for which of the following purposes?
To enable LDAP authentication
To limit number of user sessions
To support stateless authentication
To support concurrent authentication
To support authentication in clustered environment
Which one of the following statements is true about the propagation attributes that can be defined in @Transactional annotations?
REQUIRES_NEW: Create a new transaction. If there an active transaction exists, throw exception
MANDATORY: There must be a transaction; otherwise, throw an exception.
REQUIRED: If there’s a transaction, support it; otherwise throw exception
SUPPORTS: If there’s a transaction, it will be supported, if not create a new one
Which one of the following statements is NOT true about Spring Web Flow states?
A subflow state starts a new flow within the context of a flow that is already underway.
The End state is the last stop. Each flow can only have one end state.
Decision states branch the flow in two directions, routing the flow based on the outcome of evaluation flow data.
Action states are where the logic of a flow takes place.
Which one of the following statements is NOT true about <mvc: annotation-driven>:
It enables the support of annotation configuration for Spring MVC controllers.
It enables Spring 3 type conversion and formatting support.
It enables the support of annotation configuration for transactions.
It enables Spring's support for JSR-303 Bean Validation.
Which of the following scopes is valid ONLY in the context of a web-aware Spring ApplicationContext?
global-session
response
prototype
All of these
singleton
Which of the following is NOT an advantage of SimpleJdbcTemplate?
Uses JDBC API but eliminates lot of problems associated with it
Supports Java 5 features (autoboxing, generics)
Converts standard JDBC SQLExceptions into checked exceptions
Supports operation on stored procedures and batch operations
Which of the following is a valid usage of Method Injection in spring?
To inject a singleton bean inside an prototype bean
To inject a non-singleton bean inside a singleton bean
To inject a singleton bean inside a non-singleton bean
To inject a larger scope bean in a smaller scope bean
Injecting Spring Scoped Proxy Beans
Which of the following is NOT a feature of Spring Security 3.x
Support for CAS proxy tickets
Support for limiting number of user sessions
Support for multiple http elements
Support for stateless authentication
What are the features of the XML <context: namespace?
All of the above
@Component annotation scanning and @Transactional annotation scanning
@Aspect annotation detection enabling
@Autowired annotation enabling and @Component annotation scanning
@Transactional annotation scanning
What is the @WebAppConfiguration annotation used for?
In combination with @ContextConfiguration, used to declare a test as a "web test"
Used to configure a Spring web project instead of web.xml
Enable view resolution in Spring Web MVC
Which of the following implementation provides the mechanism for JSF and Spring integration?
FacesContext
ActionSupport
DelegatingVariableResolver
WebApplicationContext
ApplicationContext
A SQLProvider has one method called?
getSql()
getProvider()
getSqlProvider()
Spring MVC annotation can be used to perform:
Request mapping
Request parameter binding
Validation
Redirect URL
Which of the following is a VALID way of implementing Programmatic Transactions in Spring
Using @Transactional annotation
@Controller
Using PlatformTransactionManager
using TransactionInterceptor
Submit Test
Prev Question
ABCd
Next Question
Spring Framework Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment
Spring Framework Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment