Spring Online Quiz


Advertisements


Following quiz provides Multiple Choice Questions (MCQs) related to Spring Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : A

Explanation

WebSocket, Servlet, Web, Portlet are the modules of Web layer.

Answer : A

Explanation

FileSystemXmlApplicationContext is the implementation class of ApplicationContext. Other mentioned classes do not exists.

Answer : A

Explanation

global-session scope instructs Spring IoC container to create a instance per HTTP application.

Answer : D

Explanation

Before, after, after-returning, after-throwing, around are the five types of advice that spring supports.

Q 7 - What are the types of the transaction management Spring supports?

A - Programmatic transaction management

B - Declarative transaction management

C - Both of above.

D - None of above.

Answer : C

Explanation

Spring supports both Programmatic and Declarative transaction management.

Q 8 - Expression Language/ SpEL was introduced in which version of spring framework.

A - 1.0

B - 2.0

C - 3.0

D - 4.0

Answer : C

Explanation

Expression Language/ SpEL was introduced in 3.0 version of spring framework.

Q 9 - What is the scope of bean in portlet context?

A - session

B - global-session

C - prototype

D - request

Answer : B

Explanation

Scope of bean in portlet context is global-session.

Q 10 - Which of the following class can be used to call Stored Procedures in spring?

A - SPHelper

B - JdbcTemplateCall

C - JdbcTemplate

D - SimpleJdbcCall

Answer : D

Explanation

SimpleJdbcCall class can be used to call Stored Procedures in spring.


spring_questions_answers.htm

Advertisements