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

  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

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

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

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

  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

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

  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

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

  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