- 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 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 : C
Explanation
Both of the above configuration elements are present in POM.xml.
Q 3 - Which of the following phase in maven life cycle installs the package into the local repository, for use as a dependency in other projects locally?
Answer : C
Explanation
install phase installs the package into the local repository, for use as a dependency in other projects locally.
Q 4 - Which of the following is true about Maven repository?
Answer : C
Explanation
A repository is a place i.e. directory where all the project jars, library jar, plugins or any other project specific artifacts are stored and can be used by Maven easily.
Q 5 - Which of the following is true about Maven remote repository?
A - It is developer's own custom repository containing required libraries or other project jars.
Answer : A
Explanation
It is developer's own custom repository containing required libraries or other project jars.
Q 6 - Which of the following scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime?
Answer : B
Explanation
provided − This scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime.
Q 7 - Which of the following is true about Maven?
A - When a Maven project is created, Maven creates default project structure.
Answer : C
Explanation
When a Maven project is created, Maven creates default project structure. Developer is only required to place files accordingly and he/she need not to define any configuration in pom.xml.
Q 8 - Which of the following is correct about super POM?
A - All POMs inherit from a parent (despite explicitly defined or not) known as super POM.
Answer : C
Explanation
All POMs inherit from a parent (despite explicitly defined or not). This base POM is known as the Super POM, and contains values inherited by default.
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 - Which of the following is true about Maven central repository?
A - This repository is managed by Maven community.
B - It is not required to be configured.
Answer : D
Explanation
This repository is managed by Maven community. It is not required to be configured. It requires internet access to be searched.