Show List

Quiz - Maven - 2

50%

Public Average Score
Select the right answer for below questions:

Which command is used to deploy a Maven project to a remote repository?
mvn clean
mvn test
mvn install
mvn deploy
mvn deploy

Which command is used to generate a site for a Maven project?
mvn clean
mvn test
mvn install
mvn site
mvn site

Which of the following is a plugin for Maven?
JUnit
Tomcat
Jenkins
MySQL
JUnit

Which of the following is NOT a valid scope for a Maven dependency?
compile
runtime
testing
deploy
deploy

Which of the following is a valid lifecycle in Maven?
build
test
deploy
report
build

Which of the following is a valid phase in the Maven build lifecycle?
analyze
deploy
report
test
test

Which of the following is a valid goal for the Maven compiler plugin?
run
package
test
compile
compile

What is the default build tool used in the Android Studio IDE?
Maven
Ant
Gradle
Make
Gradle

What is the purpose of the dependency management feature in Maven?
To download and manage project dependencies
To compile and run the project code
To package the project for distribution
To generate reports on project performance
To download and manage project dependencies

Which of the following is the correct syntax for adding a dependency to a Maven project?
">
">
">
">

Submit
Retry
{"qz1-107226":"mvn deploy","qz1-107227":"mvn site","qz1-107228":"JUnit","qz1-107229":"deploy","qz1-107230":"build","qz1-107231":"test","qz1-107232":"compile","qz1-107233":"Gradle","qz1-107234":"To download and manage project dependencies","qz1-107235":""}

    Leave a Comment


  • captcha text