Test Series - spring

Test Number 11/20

Q: Scripting languages supported by Spring?
A. JRuby
B. Groovy
C. BeanShell
D. All of the mentioned
Solution: Spring supports the 3 above mentioned scripting languages.
Q: Scripting language based on Ruby
A. JRuby
B. Groovy
C. BeanShell
D. All of the mentioned
Solution: JRuby is an open source Java-based implementation of the popular Ruby programming language.
Q: Dynamic Language for java platform to cope up with other languages
A. JRuby
B. Groovy
C. BeanShell
D. All of the mentioned
Solution: Groovy is a dynamic language for the Java platform that integrates the features of other excellent programming languages.
Q: Lightweight java scripting language executing java fragments
A. JRuby
B. Groovy
C. BeanShell
D. All of the mentioned
Solution: BeanShell is a lightweight Java scripting language that can dynamically execute Java code fragments while supporting scripting features like those of other scripting languages.
Q: In Ruby instance variable begins with
A. #
B. *
C. @
D. None of the mentioned
Solution: In Ruby, an instance variable begins with the @ sign.
Q: XML Element to declare a bean implemented by JRuby
A. lang:jruby
B. aop:jruby
C. beanscript:jruby
D. script:jruby
Solution: In the bean configuration file, you can declare a bean implemented with JRuby by using the lang:jruby.
Q: XML element to specify the property values for scripting bean
A. lang:property
B. bean:property
C. script:property
D. None of the mentioned
Solution: You can specify the property values for a scripting bean in the lang:property elements.
Q: XML Element to declare a bean implemented by Groovy
A. lang:groovy
B. lang:jruby
C. beanscript:jruby
D. script:jruby
Solution: In the bean configuration file, you can declare a bean implemented with Groovy by using the lang:groovy.
Q: Script’s location is specified by attribute
A. script-source
B. xml-source
C. script-annotation
D. none of the mentioned
Solution: Specifying the script’s location in the script-source attribute.
Q: XML Element to declare a bean implemented by JRuby
A. lang:bash
B. aop:bash
C. lang:bsh
D. script:bash
Solution: In the bean configuration file, you can declare a bean implemented with BeanShell by using the lang:bsh.

You Have Score    /10