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 aspects of a project can be managed using Maven?
All of the above aspects of a project can be managed using Maven.
Q 2 - Which of the following is true about Maven Build Lifecycle?
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?
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 Build Profile is defined in Maven global settings xml file (%M2_HOME%/conf/settings.xml)?
Global − Defined in Maven global settings xml file (%M2_HOME%/conf/settings.xml).
Q 5 - Which of the following maven plugin executes during the site generation and they should be configured in the element of the pom.xml?
Reporting plugins − They execute during the site generation and they should be configured in the element of the pom.xml.
Q 6 - Which of the following scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime?
provided − This scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime.
There should be a single POM file for each project.
Root element of POM.xml is project.
Q 9 - Which of the following phase in maven life cycle compiles the test source code into the test destination directory?
test-compile compiles the test source code into the test destination directory.
Q 10 - When Maven starts looking for dependency libraries, it first searches dependency in local repository.
When Maven starts looking for dependency libraries, it first searches dependency in local repository.