- 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 - Which of the following is true about Maven?
A - Maven is a project management and comprehension tool.
B - Maven provides developers a complete build lifecycle framework.
Answer : C
Explanation
Maven is a project management and comprehension tool. Maven provides developers a complete build lifecycle framework.
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 validates that the project is correct and all necessary information is available?
Answer : A
Explanation
validate phase validates that the project is correct and all necessary information is available.
Q 4 - Which of the following phases is present in 'site' Maven life cycle?
Answer : D
Explanation
The site lifecycle consists of the following phases: 1) pre-site 2) site 3) post-site and 4) site-deploy.
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 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 Maven?
B - Maven provides plugins or tools that interact with its declarative model.
Answer : C
Explanation
Maven provides a comprehensive model for projects which is reusable, maintainable, and easier to comprehend and provides plugins or tools that interact with its declarative model.
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 - When Maven starts looking for dependency libraries, it first searches dependency in local repository.
Answer : A
Explanation
When Maven starts looking for dependency libraries, it first searches dependency in local repository.
To Continue Learning Please Login
Login with Google