Spring MCQ Quiz Hub

Spring Mcq Set 9

Choose a topic to test your knowledge and improve your Spring skills

To perform its logging operations.





✅ Correct Answer: 1

Log4J configuration parameters are specified inside:-





✅ Correct Answer: 1

Grails application logging can be configured using:-





✅ Correct Answer: 4

Any logging operation occurring at any of the cited packages will be logged.





✅ Correct Answer: 1

In Log4J parlance, each package is known as:-





✅ Correct Answer: 2

Log4J also has the following logging level:-





✅ Correct Answer: 4

By default, all logging message are sent to the stacktrace.groovy file.





✅ Correct Answer: 1

To offer versatile logging functionality:-





✅ Correct Answer: 3

A location where logging information is sent.





✅ Correct Answer: 1

A location where logging information is generated.





✅ Correct Answer: 2

The default Log4J logger can be customized in a Grails application.





✅ Correct Answer: 1

An appender that logs to a JDBC connection.





✅ Correct Answer: 1

Command for running tests in Grails.





✅ Correct Answer: 1

Unit tests are designed to validate the logic contained in a single domain class.





✅ Correct Answer: 1

Method creates a mock object from a domain class.





✅ Correct Answer: 1

A Grails view can contain:-





✅ Correct Answer: 4

A view can require a unique combination of display elements and business logic.





✅ Correct Answer: 1

To create custom tags.





✅ Correct Answer: 2

grails create-tag-lib tag-lib-name command creates a custom tag library under:-





✅ Correct Answer: 3

In order for this custom tag to function properly in JSP, it’s necessary to add it to the corresponding Tag Library Definition (TLD) grails.tld.





✅ Correct Answer: 1

Custom tags can also rely on input parameters.





✅ Correct Answer: 1

By default, Grails assigns custom tags to:-





✅ Correct Answer: 1

By default, Grails applies a global layout to display an application’s content.





✅ Correct Answer: 1

Grails doesn’t supports the concept of templates.





✅ Correct Answer: 1

Where is subdirectory called layouts located, containing the layouts available to an application?





✅ Correct Answer: 2

Tag is used to define the contents of a layout’s title section.





✅ Correct Answer: 1

Tag is used to define the contents of a layout’s head section.





✅ Correct Answer: 2

Tag allows any view inheriting this layout automatic access to JavaScript libraries.





✅ Correct Answer: 1

A view’s body content is inside the:-





✅ Correct Answer: 3

GORM dynamic finder comparators:-





✅ Correct Answer: 4

The main mission of Spring Roo is fundamentally and sustainably improve Java developer productivity without compromising engineering integrity or flexibility.





✅ Correct Answer: 1

Library which helps Spring Roo in using of the command line shell.





✅ Correct Answer: 2

To check version of Maven.





✅ Correct Answer: 3

To confirm Roo version.





✅ Correct Answer: 4

The Spring Roo shell is a blank slate. It represents the ultimate user interface for Spring Roo to facilitate development.





✅ Correct Answer: 1

Spring Roo supports tab completion.





✅ Correct Answer: 1

You can ask Roo questions using:-





✅ Correct Answer: 2

Spring Roo file extension is:-





✅ Correct Answer: 3

To run the script:-





✅ Correct Answer: 1

Maven Directory to hold the non–unit-test Java files for your application.





✅ Correct Answer: 1

Maven Directory which holds classpath resources that aren’t Java class files.





✅ Correct Answer: 2

Maven Directory which is used to hold the rest of a web application’s structure.





✅ Correct Answer: 3

This directory holds artifacts intended to test the Java classes under the src/main/java folder.





✅ Correct Answer: 1

This directory holds resources needed by your test classes at test time.





✅ Correct Answer: 2

To package the project using the Roo shell.





✅ Correct Answer: 3

The plugin, which provides Maven support to Eclipse





✅ Correct Answer: 1

Spring Roo provides very powerful support to bootstrap most solutions.





✅ Correct Answer: 1

A database and some sort of persistence mechanism using command:-





✅ Correct Answer: 1

persistence setup –database HYPERSONIC_IN_MEMORY –provider HIBERNATE command creates files:-





✅ Correct Answer: 3

The file which contains useful configuration for Hypersonic in-memory database.





✅ Correct Answer: 1