
- Maven - Home
- Maven - Overview
- Maven - Environment Setup
- Maven - POM
- Maven - Build Life Cycle
- Maven - Build Profiles
- Maven - Repositories
- Maven - Plug-ins
- Maven - Creating Project
- Maven - Build & Test Project
- Maven - External Dependencies
- Maven - Project Documents
- Maven - Project Templates
- Maven - Snapshots
- Maven - Build Automation
- Maven - Manage Dependencies
- Maven - Deployment Automation
- Maven - Web Application
- Maven - Eclipse IDE
- Maven - NetBeans
- Maven - IntelliJ IDEA
- Maven Useful Resources
- Maven - Questions and Answers
- Maven - Quick Guide
- Maven - Useful Resources
- Maven - Discussion
Maven - Online Quiz
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.

Q 1 - Which of the following command can tell the version of maven?
Answer : A
Explanation
mvn --version tells the version of maven.
Q 2 - Which of the following is true about 'site' Maven life cycle?
A - It cleans up artifacts created by prior builds.
B - This is used to build the application.
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?
Answer : B
Explanation
verify phase runs any checks to verify the package is valid and meets quality criteria.
Q 4 - Which of the Build Profile is defined in Maven settings xml file (%USER_HOME%/.m2/settings.xml)?
Answer : B
Explanation
Per User − Defined in Maven settings xml file (%USER_HOME%/.m2/settings.xml).
Q 5 - Which of the following scope indicates that dependency is available in classpath of project?
Answer : A
Explanation
compile − This scope indicates that dependency is available in classpath of project. It is default scope.
Q 6 - Which of the following scope is the default scope?
Answer : A
Explanation
compile − This scope indicates that dependency is available in classpath of project. It is default scope.
Q 7 - Which of the following is true about MOJO?
A - A mojo is a Maven plain Old Java Object.
B - Each mojo is an executable goal in Maven.
C - A plugin is a distribution of one or more related mojos.
Answer : D
Explanation
A mojo is a Maven plain Old Java Object. Each mojo is an executable goal in Maven, and a plugin is a distribution of one or more related mojos.
Q 8 - Which of the following command can be used to look at the default configurations of the super POM?
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 copies and processes the resources into the destination directory, ready for packaging phase?
Answer : B
Explanation
process-resources copies and processes the resources into the destination directory, ready for packaging phase.
Q 10 - Maven Plugins are generally used to:
Answer : D
Explanation
Maven plugins are used to do all of the above mentioned tasks.