Spring MCQ Quiz Hub

Spring Mcq Set 8

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

To keep the code simpler.





✅ Correct Answer: 3

Method which takes parameters required to describe a bid and creates it.





✅ Correct Answer: 1

To notify other viewers of any new items posted.





✅ Correct Answer: 3

Method, which is called after the component’s been configured by Spring





✅ Correct Answer: 3

To configure the standard Spring bean.





✅ Correct Answer: 1

In Spring context XML for the message broker, we have.





✅ Correct Answer: 2

flex:message-service element had an attribute.





✅ Correct Answer: 1

To use a different channel they’d like to use when communicating with the server.





✅ Correct Answer: 1

Grails is a self-contained framework that comes with various scripts to automate the creation of Java applications.





✅ Correct Answer: 1

To invoke Grails operations from anywhere on your workstation.





✅ Correct Answer: 3

To see Grails numerous commands.





✅ Correct Answer: 1

To create a Grails application, command:-





✅ Correct Answer: 2

Working directories and files are placed under which directory.





✅ Correct Answer: 1

Grails generates a series of files and directories which includes.





✅ Correct Answer: 3

Used to define an application’s properties.





✅ Correct Answer: 1

An Apache Ant script with a series of predefined tasks designed to create a Grails application.





✅ Correct Answer: 2

An XML file containing configuration parameters for an application.





✅ Correct Answer: 4

An XML file containing configuration parameters for an application’s deployment.





✅ Correct Answer: 3

An XML file containing configuration parameters for an application’s launch.





✅ Correct Answer: 4

An Apache Ivy configuration file used for defining repositories.





✅ Correct Answer: 2

A directory containing the core of an application.





✅ Correct Answer: 4

Some of the more popular Grails plugins follow:





✅ Correct Answer: 4

Classes used to describe an application’s primary elements.





✅ Correct Answer: 1

In web applications, domain classes are generally the first things to be defined.





✅ Correct Answer: 1

In Grails, domain classes are placed under:-





✅ Correct Answer: 2

The creation of domain classes by executing a simple command which is:-





✅ Correct Answer: 2

The command domain class name in creation of domain classes generates a file named domain class name.groovy.





✅ Correct Answer: 1

Corresponding unit tests files are also generated for each domain class while creating domain classes.





✅ Correct Answer: 1

Static field which defines constraints on the domain class.





✅ Correct Answer: 4

Declaration name which indicates that object’s name field can’t be blank.





✅ Correct Answer: 1

A variety of constraints can be used to enforce a domain class’s structure.





✅ Correct Answer: 1

Command to generate the corresponding CRUD controller and views for an application’s domain class.





✅ Correct Answer: 3

Grails is capable of inspecting an application’s domain classes and generating the corresponding controllers and views.





✅ Correct Answer: 1

Views corresponding to a controller class’s CRUD operations.





✅ Correct Answer: 4

.gsp extension stands for:-





✅ Correct Answer: 1

Views are placed under which directory:-





✅ Correct Answer: 4

Command to start the Grails application:-





✅ Correct Answer: 3

Grails applications are equipped to support internationalization.





✅ Correct Answer: 1

Where can you find series of *.properties files.





✅ Correct Answer: 2

*.properties files allow Grails applications to display messages.





✅ Correct Answer: 1

Which locale (i.e., from an internationalization properties file) to use for a user is based on?





✅ Correct Answer: 3

If you want to coerce users into using a specific language locale.





✅ Correct Answer: 1

JSP Tag which declares statements using the Groovy.





✅ Correct Answer: 1

Tag can also be used in GSP pages views.





✅ Correct Answer: 1

Grails uses RDBMS as a permanent storage system.





✅ Correct Answer: 1

Grails comes preconfigured to use:-





✅ Correct Answer: 4

Configure Grails to use another RDBMS by modifying:-





✅ Correct Answer: 3

DataSource properties, Class name for the JDBC driver.





✅ Correct Answer: 1

Indicates whether to enable SQL logging.





✅ Correct Answer: 3