Maven(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. Which of the following is not type of Maven Repository?
  1.    Local
  2.    Remote
  3.    Maven Central
  4.    Maven Local
Explanation:-
Answer: Option D. -> Maven Local





Question 2. Which of the following command removes the target directory with all the build data before starting the build process?
  1.    mvn clean
  2.    mvn build
  3.    mvn compile
  4.    mvn site
Explanation:-
Answer: Option A. -> mvn clean





Question 3. Which of the following is not a maven goal?
  1.    clean
  2.    package
  3.    install
  4.    debug
Explanation:-
Answer: Option D. -> debug





Question 4. ___________ is an ExpectationErrorTranslator that doesn't do any translation.
  1.    AssertionErrorTranslator
  2.    CamelCaseNamingScheme
  3.    CurrentStateMatcher
  4.    IdentityExpectationErrorTranslator
Explanation:-
Answer: Option D. -> IdentityExpectationErrorTranslator





Question 5. Which of the following is not a dependency scope in Maven?
  1.    Compile
  2.    Test
  3.    System
  4.    Export
Explanation:-
Answer: Option D. -> Export





Question 6. Which of the following is not true for Ant?
  1.    It is a tool box
  2.    It provides lifecycle management
  3.    It is procedural
  4.    It doesnt have formal conventions
Explanation:-
Answer: Option B. -> It provides lifecycle management





Question 7. -------------- interface defines a sequence of expectations.
  1.    Sequence
  2.    States
  3.    Expectations
  4.    Mockery
Explanation:-
Answer: Option A. -> Sequence





Question 8. How do I determine which POM contains missing transitive dependency?
  1.    mvn -A
  2.    mvn -M
  3.    mvn -R
  4.    mvn -X
Explanation:-
Answer: Option D. -> mvn -X





Question 9. Which of the following phase-in maven lifecycle performs actions required after integration tests have been executed? For example, cleaning up the environment
  1.    post-integration-test
  2.    pre-integration-test
  3.    integration-test
  4.    None of the above
Explanation:-
Answer: Option A. -> post-integration-test





Question 10. ------------- is a naming scheme in which the implicit name for a mock object is the mocked type's name prepend with "mock.
  1.    RetroNamingScheme
  2.    CamelCaseNamingScheme
  3.    JavaReflectionImposteriser
  4.    LastWordNamingScheme
Explanation:-
Answer: Option A. -> RetroNamingScheme