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 # 2
Spring Framework Quiz # 2
Instructions
Quiz:
Spring Framework Quiz # 2
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 # 2
End Quiz
Question
1
of 30
00:00
How are mocks used in Spring?
Spring ignored mocks.
They are an important part of using Spring in tests.
Spring and mocks do not go together well.
What is the SpringJUnit4ClassRunner class used for?
Along with @RunWith, starting and stopping a Spring context properly while running JUnit tests
Configuring the Maven Surefire plugin
configuring TestNG
What is NOT a way for beans to be defined?
XML configuration file
Java
JSON
How can you provide configuration metadata to the Spring container?
Java-based configuration
Annotation-based configuration
XML based configuration file
All of these
Which of these are types of IOC (dependency injection) ?
None of these
Constructor Injection (e.g. Pico container, Spring etc): Dependencies are provided as constructor parameters.
All of these
Setter Injection (e.g. Spring): Dependencies are assigned through JavaBeans properties (ex: setter methods).
Interface Injection (e.g. Avalon): Injection is done through an interface.
Which of the following ORM are supported in Spring
All
OJB
Java Data Objects(JDO)
iBatis
TopLink
Spring Security currently supports authentication integration with which of the following technology
LDAP
All
Form-based authentication
HTTP BASIC authentication headers
HTTP Digest authentication headers
True or False? Spring provides an abstraction over JMS.
FALSE
True
True or False? Spring supports lookup via JNDI.
FALSE
True
Which of the following is true when creating a custom login form for applications using Spring Security?
The form action url must match the "login-processing-url" attribute of <form-login> element in security.xml file
The method of the login form must be POST
The name of the username input must corresponds to the values of username-parameter attribute of <form-login> element in security.xml file
All of these
What is bean wiring?
consuming a web service
avoiding a cross-cutting concern
publishing objects in a web service
connecting the different beans (components) of an application
Transaction MUST follow which of the following properties?
Isolation
Atomicity
Consistency
All of these
Which of the following statements are true about Spring Testing Support?
The @ContextConfiguration annotation defines the locations of your configuration files
The TestContext framework of Spring 3 helps simplifying switching between different test framework
All of these
The @Runwith annotation allows you to specify the testing frameworking you would like to use
What is the difference between Bean Factory and Application Context?
There is no difference
All of these
Application contexts provide a means for resolving text messages, including support for i18n of those messages.
Application contexts can publish events to beans that are registered as listeners.
Application contexts provide a generic way to load file resources, such as images.
Which of the following is NOT a HTTP operation?
MODIFY
GET
PUT
POST
What are the supported scopes in Hibernate?
Singleton (default)
All of these
Web (session, request)
Prototype
What are the different points where weaving can be applied?
All of these
Classload Time
Compile Time
Runtime
The transaction attribute supported by Spring includes:
isolation levels
rollback rules
All of these
propagation behavior
Which of the following are Autowire types?
All of these
autodetect
byname, byType
constructor
What is the name of the central servlet which is part of Spring?
WebServlet
SpringServlet
IoCServlet
DispatcherServlet
What are the most used classes in Spring DAO?
JdbcTemplate and SimpleJdbcTemplate.
SimpleJdbcInsert and SimpleJdbcStoredProc.
SimpleJdbcInsert and SimpleJdbcProcedure.
SimpleJdbcQuery and SimpleJdbcExec.
Which of the following statements is correct about Spring MVC:
To enable Spring MVC, the DispatcherServlet needs to be configured in the web.xml
There can be more than one of DispatcherServlets in a Spring MVC application
All of these
The DispatcherServlet is the central servlet that receives requests and dispatches them to the appropriate controllers
which one of the following is the correct sequence of how a normal view request is handled in a web application using Spring MVC: 1. Request: A request is submitted to the server. 2. Invokes: The dispatcher dispatches the request to the appropriate controller based on the HTTP request information and the web application configuration. 3. Service Call: The controller interacts with the service layer. 4. Response: The controller updates the model and, based on the execution result, returns the corresponding view to the user.
1234
1432
1423
1324
Which is the most popular way of interfacing with Spring's JDBC support?
JDBCTemplate
SQLStatementPreparerer
pointcuts
transactions
What's the relationship between Spring and Maven?
not much; they can be used independently and one does not require the other
they are tightly integrated for easy of use
Which of the following concrete implementation, by default, handles the request 'first' when it is sent to a Spring MVC Framework?
DispatcherServlet
HttpServlet
GenericServlet
FrameworkServlet
Which one of the following annotation can be used to inject dependencies a) @Inject b) @Entity c) @Valid d) @Autowire
@Inject and @Autowire
@Inject, and @Valid
@Inject, @Valid, and @Autowire
@Inject, @Valid, and @Entity
How could you inject using a factory method ?
Static factory method: specify "class" and "factory-method" attributes
All of these
Instance (non-static) factory method: specify "factory-bean" and "factory-method" attributes
Use <constructor-arg> to pass parameters
In Spring, singleton means only one instance per _____.
Context
Entire jvm
How do you load values from property files?
<%parameter_name%>
<%=parameter_name%>
$(parameter_name)
${parameter_name}
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