- Maven Tutorial
- 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 configuration element is present in POM.xml?
Answer : D
Explanation
All of the above configuration elements are present in POM.xml.
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 - Using which of the following way, you can activate a Maven Build Profile?
A - Explicitly using command console input.
Answer : D
Explanation
Using all of the above ways, you can activate a Maven Build Profile.
Q 5 - Archetype is a Maven plugin whose task is to create a project structure as per its template.
Answer : A
Explanation
Archetype is a Maven plugin whose task is to create a project structure as per its template.
Q 6 - Which of the following scope indicates that you have to provide the system path?
Answer : A
Explanation
system − This scope indicates that you have to provide the system path.
Q 7 - What is the use of execution element in pom file?
A - The <execution> element contains information's required for the execution of a plugin.
B - The <execution> element contains information's required for the execution of a project.
Answer : A
Explanation
The <execution> element contains information's required for the execution of a plugin.
Answer : A
Explanation
Root element of POM.xml is project.
Q 9 - Which of the following phase in maven life cycle post-processes the generated files from compilation, for example to do bytecode enhancement/optimization on Java classes?
Answer : A
Explanation
process-classes post-processes the generated files from compilation, for example to do bytecode enhancement/optimization on Java classes.
Q 10 - Maven Plugins are generally used to:
Answer : D
Explanation
Maven plugins are used to do all of the above mentioned tasks.
To Continue Learning Please Login
Login with Google