- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Conventions?
B - Developers using maven do not have to mention each and every configuration details.
Answer : C
Explanation
Maven uses Convention over Configuration which means developers are not required to create build process themselves. Developers do not have to mention each and every configuration details.
Q 2 - Which of the following is true about 'clean' Maven life cycle?
A - It cleans up artifacts created by prior builds.
B - This is used to build the application.
Answer : A
Explanation
clean: cleans up artifacts created by prior builds.
Q 3 - Which of the following phase in maven life cycle processes and deploys the package if necessary into an environment where integration tests can be run?
Answer : A
Explanation
integration-test phase processes and deploys the package if necessary into an environment where integration tests can be run.
Q 4 - Using which of the following way, you can activate a Maven Build Profile?
Answer : C
Explanation
Using both of the above ways, you can activate a Maven Build Profile.
Q 5 - Which of the following maven plugin executes during the build and should be configured in the element of pom.xml?
Answer : A
Explanation
Build plugins − They execute during the build and should be configured in the element of pom.xml.
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 - All POM files require the project element and three mandatory fields: groupId, artifactId,version.
Answer : B
Explanation
All POM files require the project element and three mandatory fields: groupId, artifactId,version.
Answer : A
Explanation
Root element of POM.xml is project.
Q 9 - Which of the following phase in maven life cycle generates any test source code to be included in compilation phase?
Answer : C
Explanation
generate-test-sources generates any test source code to be included in compilation phase.
Q 10 - Maven Plugins are generally used to:
Answer : C
Explanation
Maven plugins are used to do both of the above mentioned tasks.