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

JDBC, ORM, OXM, JMS, Transactions are the modules of Data Access/ Integration layer.

Answer : A

Explanation

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

Answer : C

Explanation

Spring supports both XML Schema based and @AspectJ based aspect implementation.

Answer : C

Explanation

Hibernate can be accessed by both ways either using Inversion of Control with a Hibernate Template and Callback or extending HibernateDAOSupport and applying an AOP Interceptor node.

Q 8 - If a bean is created once per Ioc Container, scope is

A - singleton

B - global-session

C - prototype

D - request

Answer : A

Explanation

If a bean is created once per Ioc Container, scope is singleton.

Q 9 - What is the scope of stateless bean?

A - global-session

B - singleton

C - prototype

D - request

Answer : B

Explanation

Stateless bean is of singleton scope.

Q 10 - Which of the following class can be used to execute Sql queries in spring?

B - JDBCHelper

A - JdbcTemplate

C - DBHelper

D - DBTemplate

Answer : B

Explanation

JdbcTemplate class can be used to execute Sql queries in spring.

spring_questions_answers.htm
Advertisements