Home / CSE MCQs / Spring MCQs :: Spring Grails,Testing, Portlet MVC Framework

CSE MCQs :: Spring MCQs

  1. 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.
  2. A.
    True
    B.
    False
    C.
    Error
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The command domain class name in creation of domain classes generates a file named domain class name.groovy.
  4. A.
    True
    B.
    False
    C.
    Error
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. To create a Grails application, command:-
  6. A.
    grails create-app
    B.
    grails create-app grailsappname
    C.
    grails create-app default
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Annotation for SpringJUnit4ClassRunner:-
  8. A.
    @Run
    B.
    @RunWith
    C.
    All of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. There is no default configuration present in an application's resource.groovy file.
  10. A.
    True
    B.
    False
    C.
    Error
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Log4J configuration parameters are specified inside:-
  12. A.
    Config.groovy
    B.
    Conf.groovy
    C.
    Log.groovy
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Maps each request to a handler through one or more handler mapping beans.
  14. A.
    DispatcherServlet
    B.
    DispatcherPortlet
    C.
    All of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Maven Directory which holds classpath resources that aren't Java class files.
  16. A.
    src/main/java
    B.
    src/main/resources
    C.
    src/main/webapp
    D.
    src/test/java

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. To deploy the application to a web container:-
  18. A.
    mvn tomcat:run
    B.
    mvn jetty:run
    C.
    all of the mentioned
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. This defines a listener interface; by implementing this, you can listen to test execution events.
  20. A.
    Test context
    B.
    Test context manager
    C.
    Test context listener
    D.
    Test execution listener

    View Answer

    Workspace

    Discuss Discuss in Forum