Explore topic-wise MCQs in Spring.

This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.

1.

Script’s location is specified by attribute

A. script-source
B. xml-source
C. script-annotation
D. none of the mentioned
Answer» B. xml-source
2.

Spring can detect and refresh changes from the script source files

A. True
B. False
Answer» B. False
3.

To quickly add a Spring Validator implementation to a Spring MVC Controller

A. Use inline-script
B. lang:inline-script
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
4.

Dynamic-language-backed bean with some configurations

A. Refreshable bean
B. Beanshell
C. Scripting Beans
D. Inline Script
Answer» B. Beanshell
5.

To prevent the characters in your script from conflicting with the reserved XML characters

A. Use ![CDATA[…]] tag
B. Use ![DATA[…]] tag
C. Use ![CDATA(…)] tag
D. None of the mentioned
Answer» B. Use ![DATA[…]] tag
6.

Refresh checking feature is not applicable for an inline script

A. True
B. False
Answer» B. False
7.

XML Element to define an inline script

A. lang:inlinescript
B. lang:inline_script
C. lang:[email protected]
D. lang:inline-script
Answer» E.
8.

Default value of refresh-check-delay attribute

A. Zero
B. Negative
C. Positive
D. None of the mentioned above
Answer» C. Positive
9.

Spring IoC container refreshes the script periodically according to the interval period specified

A. True
B. False
Answer» B. False
10.

Attribute used by Spring to refresh beans

A. refresh-check-interval
B. refresh-check-delay
C. refresh-delay
D. none of the mentioned
Answer» C. refresh-delay
11.

Spring can detect and refresh changes from the script source file?

A. True
B. False
Answer» B. False
12.

To quickly add a Spring Validator implementation to a Spring MVC Controlle?

A. Use inline-script
B. lang:inline-script
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned