Maven - Online Quiz


Advertisements

Following quiz provides Multiple Choice Questions (MCQs) related to Maven. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - Which of the following aspects of a project can be managed using Maven?

A - Dependencies

B - SCMs

C - Releases

D - All of the above.

Answer : D

Explanation

All of the above aspects of a project can be managed using Maven.

Answer : C

Explanation

site − generates site documentation for the project.

Q 3 - Which of the following phase in maven life cycle runs any checks to verify the package is valid and meets quality criteria?

A - integration-test

B - verify

C - install

D - deploy

Answer : B

Explanation

verify phase runs any checks to verify the package is valid and meets quality criteria.

Answer : D

Explanation

Using all of the above ways, you can activate a Maven Build Profile.

Answer : C

Explanation

SNAPSHOT is a special version that indicates a current development copy. Unlike regular versions, Maven checks for a new SNAPSHOT version in a remote repository for every build.

Q 6 - Which of the following scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime?

A - compile

B - provided

C - runtime

D - test

Answer : B

Explanation

provided − This scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime.

Q 7 - Apache Maven is a software project management and comprehension tool.

A - true

B - false

Answer : A

Explanation

Apache Maven is a software project management and comprehension tool.

Q 8 - Which of the following command can be used to look at the default configurations of the super POM?

A - mvn help:effective-pom

B - mvn help

C - mvn help:super-pom

D - None of the above.

Answer : A

Explanation

mvn help − effective-pom command can be used to look at the default configurations of the super POM.

Q 9 - Which of the following phase in maven life cycle processes the test source code, for example, filter any values?

A - process-classes

B - process-test-sources

C - generate-test-sources

D - None of the above.

Answer : B

Explanation

process-test-sources processes the test source code, for example, filter any values.

Q 10 - Which of the following phase in maven life cycle processes and deploys the package if necessary into an environment where integration tests can be run?

A - process-resources

B - pre-integration-test

C - integration-test

D - None of the above.

Answer : C

Explanation

integration-test processes and deploys the package if necessary into an environment where integration tests can be run.

maven_questions_answers.htm
Advertisements