Maven(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. Which of the following is not type of Maven Repository?
Local
Remote
Maven Central
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?
mvn clean
mvn build
mvn compile
mvn site
Explanation:-
Answer: Option A. -> mvn clean
Question 3. Which of the following is not a maven goal?
clean
package
install
debug
Explanation:-
Answer: Option D. -> debug
Question 4. ___________ is an ExpectationErrorTranslator that doesn't do any translation.
AssertionErrorTranslator
CamelCaseNamingScheme
CurrentStateMatcher
IdentityExpectationErrorTranslator
Explanation:-
Answer: Option D. -> IdentityExpectationErrorTranslator
Question 5. Which of the following is not a dependency scope in Maven?
Compile
Test
System
Export
Explanation:-
Answer: Option D. -> Export
Question 6. Which of the following is not true for Ant?
It is a tool box
It provides lifecycle management
It is procedural
It doesnt have formal conventions
Explanation:-
Answer: Option B. -> It provides lifecycle management
Question 7. -------------- interface defines a sequence of expectations.
Sequence
States
Expectations
Mockery
Explanation:-
Answer: Option A. -> Sequence
Question 8. How do I determine which POM contains missing transitive dependency?
mvn -A
mvn -M
mvn -R
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
post-integration-test
pre-integration-test
integration-test
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.