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
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
Login
Sign up
Skill Assessments
>
IT & Programming
>
Spring Framework Skill Assessment
>
Quiz # 1
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.
Start Quiz
Spring Framework Quiz # 1
End Quiz
Question
1
of 30
00:00
Which of these resource prefixes could be used?
http:
classpath:
file:
All of these
spring-test uses what common convention to allow testing using HTTP session and HTTP request objects?
MVC
Open-closed principle
Mock objects
DAOs
True or False? Using Spring's JDBC support forces you to use Oracle.
TRUE
False
Which of the following is NOT a scope available in Spring web applications?
singleton
session
instance
request
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?
setProperty(String message)
setName(String message)
setMessage(String message)
setValue(String message)
How is slf4j commonly used in Spring applications?
as the JDBC provider
as a bean
as the logging framework
Is the following valid ? - <map><entry key="a" value="b" /></map>
No
Yes
Which of the following is NOT a JDBC statement?
Regular Statement
Callable Statement
Interim Statement
Prepared Statement
Which annotation lets you grab the value of an HTTP request header?
@RequestHeader
@Header
@HttpHeader
Which one of the following statements is NOT true about MVC pattern?
View represents the data to the user in the desired format, supports interactions with users.
Model represents the business data as well as the "state" of the application
MVC stands for Model, View, and Controller
The controller's main responsibility is to interact with the database like performing CRUD operations.
What is one of the major improvements in Spring 3?
more bean scopes are supported
additional lifecycle methods were added
more annotations are supported
Which of the following is a synonym for dependency injection?
inversion of control
aspect-oriented programming
pointcut
templates
@RequestMapping is part of which part of Spring?
Security
Web MVC
Web
DAO
Does Spring support injection of Enum types?
YES
NO
Is it possible to set up Spring AOP using XML configuration only (as opposed to annotations)?
No
Yes
Which of the following is not a valid method to provide configuration metadata to a Spring Container?
Java-based configuration
XML based configuration file
Annotation-based configuration
By marshalling & unmarshalling the objects
True or False? @RequestMapping can be used on an entire class as well as on individual methods.
FALSE
True
How many bean configuration files can you have?
two
as many as you want
only one
True or False? Spring Web MVC supports different locales out of the box.
True
FALSE
What type of dependency injection does Spring NOT support?
Setter injection
Constructor injection
Interface injection
What if I need a method to be called after bean construction?
delegate to a proxy
use init-method or @PostConstructor
write a custom Handler
In AOP, what are the different points where weaving can be applied?
Compile time
Load time
Run time
All of these
What is MultipartFile used for?
That doesn't exist
Supporting multi-part HTTP requests
Reading files from disk
Saving files to disk
Configuration to declare a JTA transaction manager “<bean id="mgr" class="org.springframework.transaction.jta.JtaTransactionManager" />“ Is this correct?
No
Yes
True or False? Spring supports custom bean scopes.
True
FALSE
What are the different modules in Spring framework?
Hibernate Module
Webex module
JDBC abstraction and DAO module
What types of transaction management does Spring support?
Programmatic transaction management
Both of these
Declarative transaction management
What is AOP?
Aspect oriented programming
None of these
Abstract oriented programming
Advanced oriented programming
Can you inject null and empty string values in Spring?
No
Yes
What does a bean definition contain?
How to create a bean
All of these
Bean's lifecycle details
Bean's dependencies
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