- 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 - 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 POM stands for?
Answer : B
Explanation
POM stands for Project Object Model.
Q 2 - Which of the following is true about Maven Build Lifecycle?
Answer : C
Explanation
A Build Lifecycle is a well defined sequence of phases which define the order in which the goals are to be executed. Here phase represents a stage in life cycle.
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 is true about a SNAPSHOT build?
A - SNAPSHOT is a special version that indicates a current development copy.
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 is the default scope?
Answer : A
Explanation
compile − This scope indicates that dependency is available in classpath of project. It is default scope.
Answer : A
Explanation
There should be a single POM file for each project.
Answer : B
Explanation
Projects notation in repository is groupId:artifactId:version.
Q 9 - Which of the following phase in maven life cycle compiles the test source code into the test destination directory?
Answer : A
Explanation
test-compile compiles the test source code into the test destination directory.
Q 10 - Which of the following phase in maven life cycle performs actions required after integration tests have been executed? For example, cleaning up the environment.
Answer : A
Explanation
post-integration-test performs actions required after integration tests have been executed. For example, cleaning up the environment.