Home / CSE MCQs / Maven - CSE ::

CSE MCQs :: Maven - CSE

  1. Which of the following is not type of Maven Repository?
  2. A.
    Local
    B.
    Remote
    C.
    Maven Central
    D.
    Maven Local

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following command removes the target directory with all the build data before starting the build process?
  4. A.
    mvn clean
    B.
    mvn build
    C.
    mvn compile
    D.
    mvn site

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. ___________ is an ExpectationErrorTranslator that doesn't do any translation.
  6. A.
    AssertionErrorTranslator
    B.
    CamelCaseNamingScheme
    C.
    CurrentStateMatcher
    D.
    IdentityExpectationErrorTranslator

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is not a maven goal?
  8. A.
    clean
    B.
    package
    C.
    install
    D.
    debug

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following is not a dependency scope in Maven?
  10. A.
    Compile
    B.
    Test
    C.
    System
    D.
    Export

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following phase-in maven lifecycle performs actions required after integration tests have been executed? For example, cleaning up the environment
  12. A.
    post-integration-test
    B.
    pre-integration-test
    C.
    integration-test
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. -------------- interface defines a sequence of expectations.
  14. A.
    Sequence
    B.
    States
    C.
    Expectations
    D.
    Mockery

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is not true for Ant?
  16. A.
    It is a tool box
    B.
    It provides lifecycle management
    C.
    It is procedural
    D.
    It doesnt have formal conventions

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. How do I determine which POM contains missing transitive dependency?
  18. A.
    mvn -A
    B.
    mvn -M
    C.
    mvn -R
    D.
    mvn -X

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. ------------- is a naming scheme in which the implicit name for a mock object is the mocked type's name prepend with "mock.
  20. A.
    RetroNamingScheme
    B.
    CamelCaseNamingScheme
    C.
    JavaReflectionImposteriser
    D.
    LastWordNamingScheme

    View Answer

    Workspace

    Discuss Discuss in Forum