
- 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 - What of the following is true about POM?
Answer : C
Explanation
POM stands for Project Object Model. It is fundamental Unit of Work in Maven. It is an XML file.
Q 2 - Which of the following is true about maven artifact?
A - Each artifact has a group ID, an artifact ID (just a name), and a version string.
B - The group ID,artifact ID and version together uniquely identify the artifact.
Answer : D
Explanation
Each artifact has a group ID (usually a reversed domain name, like com.example.foo), an artifact ID (just a name), and a version string. The three together uniquely identify the artifact. A project's dependencies are specified as artifacts.
Q 3 - Which of the following phase in maven life cycle is done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects?
Answer : D
Explanation
deploy phase is done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.
Q 4 - Which of the following phases is present in 'clean' Maven life cycle?
Answer : D
Explanation
The clean lifecycle consists of the following phases: 1) pre-clean 2) clean and 3) post-clean.
Q 5 - Which of the following maven plugin executes during the site generation and they should be configured in the element of the pom.xml?
Answer : B
Explanation
Reporting plugins − They execute during the site generation and they should be configured in the element of the pom.xml.
Q 6 - Which of the following scope indicates that dependency is not required for compilation, but is required during execution?
Answer : C
Explanation
runtime − This scope indicates that dependency is not required for compilation, but is required during execution.
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.
Answer : B
Explanation
Projects notation in repository is groupId:artifactId:version.
Q 9 - Which of the following phase in maven life cycle performs any operations necessary to prepare a package before the actual packaging?
Answer : C
Explanation
prepare-package performs any operations necessary to prepare a package before the actual packaging.
Q 10 - When dependency in local repository is not found, then Maven searches dependency in central repository.
Answer : A
Explanation
Maven searches dependency in central repository, if not found and remote repository/repositories is/are mentioned then searches in remote repositories else if found, then it is downloaded to local repository for future reference.