08th
Jun
Maven MCQ

Maven MCQ

  • Admin
  • 08th Jun, 2022
  • 418 Followers

Maven MCQ Questions

Take Maven MCQ Quiz & Online Test to Test your Knowledge

We have listed below the few Maven MCQ Questions that check your basic knowledge of Maven. This Maven MCQ Test contains 20 Multiple Choice Questions. You have to select the right answer to the question. Apart from this, you can also download below the Maven MCQ PDF Completely free.

Maven MCQ

1) Apache Maven is a software project management and comprehension tool.

  • A. True
  • B.False

2) __ can manage a project's build, reporting and documentation from a central piece of information.

  • A. Maven
  • B.Scala
  • C.PHP
  • D.None of the following

3) Is Maven can manage a project's build, reporting, and documentation from a central piece of information?

  • A. Yes
  • B.No

4) In Maven, POM stands for ___.

  • A. Project Object Model
  • B.Process Object Model
  • C.Project Object Method
  • D.All of the above

5) ___ contains information about the project and various configuration detail used by Maven to build the project(s).

  • A. POM
  • B.OOPS
  • C.Both A and B
  • D.None of the above
Download Free : Maven MCQ PDF

6) Which of the following are the phases of Maven Build Lifecycle?

  • A. validate
  • B.prepare-resources
  • C.compile
  • D.All of the above

7) Which of the following is not type of Maven Repository?

  • A. local
  • B.remote
  • C.central
  • D.dependency

8) Which of the following command removes the target directory with all the build data before starting the build process?

  • A. mvn clean
  • B.mvn build
  • C.mvn compile
  • D.mvn site

9) What is the use of mvn package command in Maven?

  • A. Clears the target directory into which Maven normally builds your project.
  • B.Builds the project and packages the resulting JAR file into the target directory.
  • C.Prints out the version of Maven you are running.
  • D.All of the above

10) Which of the following command builds the project described by your Maven POM file and installs the resulting artifact (JAR) into your local Maven repository?

  • A. mvn install
  • B.mvn verify
  • C.mvn package
  • D.None of the above

11) Which one of the following is a naming scheme in which the implicit name for a mock object is the mocked type’s name prepend with “mock”.

  • A. RetroNamingScheme
  • B.CamelCaseNamingScheme
  • C.JavaReflectionImposteriser
  • D.LastWordNamingScheme

12) Which of the following is used by maven?

  • A. config.xml
  • B.pom.xml
  • C.META-INF
  • D.None of the above

13) What is the sequence in which maven looks for the resources?

  • A. Local -> Remote - Maven Central
  • B.Remote-> Local -> Maven Central
  • C.Remote-> Maven Central - > Local
  • D.None of the above

14) Maven is used to do which of the following?

  • A. Build software development projects
  • B.Publish software development projects
  • C.Deploy software development projects
  • D.All of the above

15) Which of the following is not a maven goal?

  • A. clean
  • B.debug
  • C.install
  • D.None of the above

16) Which of the following aspects of a project can be managed using maven?

  • A. Builds
  • B.Reporting
  • C.Documentatio
  • D.All of the above

17) Which of the following is true about maven?

  • A. Maven in written in Java.
  • B.Maven is initially released in 2004.
  • C.Maven is developed by Apache software foundation.
  • D.All of the above

18) Maven plugins are generally used to create ............

  • A. jar file
  • B.ear file
  • C.war file
  • D.All of the above

19) Which of the following is true about clean maven life cycle?

  • A. This is used to build the application
  • B.It cleans up artifacts created by prior builds
  • C.This generates site documentation for the project.
  • D.All of the above

20) Which command can tell the version of maven?

  • A. mvn version
  • B.mvn --version
  • C.maven -version
  • D.maven --version

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Jan
Java MCQ
01st
Nov
Html5 MCQ
01st
Jun
Unix MCQ
01st
Oct
MS Word MCQ
01st
Feb
MS DOS MCQ