Spring/Spring Mcq Set 8 Sample Test,Sample questions

Question:
 .gsp extension stands for:-

1. Groovy Server Pages

2.Groovy Service Pages

3. All of the mentioned

4.None of the mentioned


Question:
 A directory containing the core of an application.

1.application.properties

2. ivysettings.xml

3. court.iws

4. grails-app


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

1.application.properties

2.build.xml

3.manifest.xml

4.court.iml


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

1. application.properties

2. build.xml

3. court.iws

4.court.iml


Question:
 Classes used to describe an application’s primary elements.

1.Domain Classes

2.Application

3.Context

4. View


Question:
 Grails generates a series of files and directories which includes.

1.Apache Ant file(build.xml)

2.Apache Ivy file(ivy.xml)

3.All of the mentioned

4. none of the mentioned


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

1.True

2.False

3.none

4.all the mentoined


Question:
 Grails uses RDBMS as a permanent storage system.

1. True

2. False

3.none

4.all the mentoined


Question:
 Indicates whether to enable SQL logging.

1.driverClassName

2.dataSource properties

3.logSql

4.None of the mentioned


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

1. setupItems

2. setUp

3.setupFakeItems

4.all of the mentioned


Question:
 Tag can also be used in GSP pages views.

1. g:message

2. g:string

3.g:msg

4. none of the mentioned


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

1.flex:remoting-destination

2.flex:remote

3.flex:destination

4.flex:default-channels


Question:
 Used to define an application’s properties.

1.application.properties

2. build.xml

3.manifest.xml

4.court.iml


Question:
 Views corresponding to a controller class’s CRUD operations.

1.create.gsp

2.edit.gsp

3. list.gsp

4.all of the mentioned


Question:
*.properties files allow Grails applications to display messages.

1.True

2. False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


Question:
An Apache Ivy configuration file used for defining repositories.

1.application.properties

2.ivysettings.xml

3.court.iws

4. court.launch


Question:
An XML file containing configuration parameters for an application.

1.application.properties

2.build.xml

3.manifest.xml

4.court.iml


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

1. application.properties

2.build.xml

3.court.iws

4. court.launch


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

1.grails create-domain-class domain class name

2.grails create-domain-class

3.grails generate-all domain class name

4. none of the mentioned


Question:
Command to start the Grails application:-

1. grails run

2. grails start-app

3. grails run-app

4.none of the mentioned


Question:
Configure Grails to use another RDBMS by modifying:-

1.Data.groovy

2.DataSource.groovy

3. All of the mentioned

4.None of the mentioned


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

1. True

2.False

3.none

4.all the mentoined


Question:
DataSource properties, Class name for the JDBC driver.

1.driverClassName

2.dataSource properties

3.all of the mentioned

4.None of the mentioned


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

1. blank:false

2.blank:true

3.all of the mentioned

4.None of the mentioned


Question:
flex:message-service element had an attribute.

1.default-channels

2.default-channel

3.default

4.default-types


Question:
Grails applications are equipped to support internationalization.

1.True

2. False

3.none

4.all the mentoined


Question:
Grails comes preconfigured to use:-

1.MySql

2. PostgreSQL

3. Access

4.HSQLDB


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

1.True

2.False

3.none

4.all the mentoined


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

1. /grails-app/conf/spring/resource.groovy file

2./grails-app/resource.groovy file

3. /grails-app/spring/resource.groovy file

4.None of the mentioned


Question:
In Grails, domain classes are placed under:-

1./grails-app/WEB-INF/

2. /grails-app/domain/

3./grails-app/domain/WEB-APP

4. /grails-app/


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

1.flex

2. flex:message-broker

3.all of the mentioned

4.none of the mentioned


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

1.True

2.False

3.none

4.all the mentoined


Question:
JSP Tag which declares statements using the Groovy.

1. g:message

2.g:string

3.g:msg

4.none of the mentioned


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

1.bid

2.acceptBid

3.all of the mentioned

4.none of the mentioned


Question:
Some of the more popular Grails plugins follow:

1.App Engine

2.Quartz

3.Spring WS

4.All of the mentioned


Question:
Static field which defines constraints on the domain class.

1.static{}

2.static field{}

3.static constraint{}

4.static constraints{}


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

1.True

2.False

3.none

4.all the mentoined


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

1. grails create-domain-class

2.grails create-domain-class domain class name

3.domain class name

4. none of the mentioned


Question:
To configure the standard Spring bean.

1.context:component-scan

2. context:scan

3.context:component

4. none of the mentioned


Question:
To create a Grails application, command:-

1.grails create-app

2. grails create-app grailsappname

3.grails create-app default

4. none of the mentioned


Question:
To invoke Grails operations from anywhere on your workstation.

1.GRAILS HOME

2. PATH

3. All of the mentioned

4.None of the mentioned


Question:
To keep the code simpler.

1.Hibernate

2. Backing datastore

3.ConcurrentSkipListSet

4. None of the mentioned


Question:
To notify other viewers of any new items posted.

1.javax.jms.Topic

2.jms

3.all of the mentioned

4. none of the mentioned


Question:
To see Grails numerous commands.

1.grails help

2. grails -help

3. grails -h

4.help grails


Question:
Views are placed under which directory:-

1.app/views/

2.app/

3.grails-app/views/WEB-INF

4.grails-app/views/domain class


Question:
Where can you find series of *.properties files.

1./grails-app/

2. /grails-app/i18n/

3./grails-app/i18n/WEB-INF

4./grails-app/i18n/WEB-APP


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

1./grails-app/conf/spring/resource.groovy file

2.user’s browser language preferences

3.all of the mentioned

4.none of the mentioned


Question:
Working directories and files are placed under which directory.

1. User’s home directory under the name.grails/grails version/.

2. WEB-APP

3.WEB-INF

4.None of the mentioned


More MCQS

  1. Spring Mcq Set 1
  2. Spring Mcq Set 2
  3. Spring Mcq Set 3
  4. Spring Mcq Set 4
  5. Spring Mcq Set 5
  6. Spring Mcq Set 6
  7. Spring Mcq Set 7
  8. Spring Mcq Set 8
  9. Spring Mcq Set 9
  10. Spring Mcq Set 10
  11. Spring Mcq Set 11
  12. Spring Mcq Set 12
  13. Spring Mcq Set 13
  14. Spring Mcq Set 14
  15. Spring Mcq Set 15
  16. Spring Mcq Set 16
  17. Spring Mcq Set 17
  18. Spring Mcq Set 18
  19. Spring Mcq Set 19
  20. Spring Mcq Questions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!