Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which option stands for Super POM

Answer»

Which option stands for SUPER POM
(1)NONE of the OPTIONS mentioned
(2)Both the options mentioned
(3)It is default POM for maven.
(4)POM files inherit from super POM EVEN if defined or not

Answer:-(2)Both the options mentioned

2.

What are the minimal coordinate attributes required for pom xlm file

Answer»

What are the MINIMAL coordinate ATTRIBUTES REQUIRED for POM xlm file
(1)groupId:SCOPE:version
(2)artifactId:version:scope
(3)groupId:artifactId:scope
(4)groupId:artifactId:version

Answer:-(4)groupId:artifactId:version

3.

Surefire reports are in

Answer» SUREFIRE reports are in
(1)*.xml and *.html format.xxx
(2)*.TXT and *.xml Format.
(3)*.xml format
(4)*.txt format.

Answer:-(2)*.txt and *.xml Format.
4.

How to get the maven path

Answer»

How to GET the maven path
(1)path MVN
(2)where mvn
(3)get mvn
(4)WHEREIS mvn

Answer:-(4)whereis mvn

5.

List of files generate from maven archetype

Answer»

List of FILES GENERATE from maven archetype
Below is the List of files generate from maven archetype
pom file, MAIN and TEST FOLDER

6.

While creating maven project, we must enter value for

Answer»

While creating MAVEN PROJECT, we MUST enter value for
i. groupId
ii. artifactId
iii. package
iv. version
(1)I, ii, iii and iv
(2)I , ii and iii
(3)I and ii
(4)I, iii and iv

Answer:-(1)I, ii, iii and iv

7.

What are the three builds in maven life cycle

Answer»

What are the three builds in maven LIFE CYCLE
Answer:-Below are the three builds in maven life cycle
(1)Default
(2)clean
(3)SITE

8.

Which plugin is needed to compile project.

Answer»

Which plugin is NEEDED to compile project.
(1)maven-compiler-plugin
(2)mvn-compile-plugin
(3)compile-mvn-plugin
(4)compiler-maven-plugin

Answer:-(1)maven-compiler-plugin

9.

Which of the flow is correct for clean life cycle.

Answer»

Which of the FLOW is CORRECT for CLEAN LIFE cycle.
pre clean , clean ,POST clean

10.

Maven search for dependency in ___________________

Answer» MAVEN SEARCH for DEPENDENCY in ___________________
(1)remote repository
(2)local repository only
(3)CENTRAL repository only
(4)search in all three repositories

Answer:-(4)search in all three repositories
11.

Local repository could be one on the web server.

Answer»

Local REPOSITORY could be ONE on the WEB server.
Answer:-False

12.

Inclusive quantifiers boundary range is defined as

Answer» INCLUSIVE quantifiers boundary RANGE is DEFINED as
(1)[3.8,]
(2)[, 3.8]
(3)[3.8,4.6]
(4)[3.8,4.6)

ANSWER:-(2)[, 3.8]
13.

Command to generate Super POM view

Answer» COMMAND to GENERATE SUPER POM view
Below is the command to generate Super POM view
mvn HELP:effective-pom
14.

Maven is _

Answer» MAVEN is _
COMPREHENSION and MANAGEMENT TOOL.
15.

Surefire plugins are used for

Answer»

Surefire plugins are used for
We USE surefire plugin for below purpose
for running JUNIT test and report GENERATION

16.

Maven dependencies are stored in

Answer» MAVEN DEPENDENCIES are STORED in
Answer:-Below is Maven dependencies and stored in REPOSITORY
17.

Which of the flow is correct for Build life cycle

Answer»

Which of the flow is correct for Build life cycle
Below is the Build Life cycle for Flow in MAVEN
(1)VALIDATE
(2)compile
(3)TEST
(4)Package
(5)integrate
(6)verify
(7)install
(8)deploy

18.

Syntax used to skip the test using terminal

Answer»

Syntax USED to SKIP the test USING terminal
(1)maven -DskipTests
(2)MVN install -DskipTests
(3)mvn -DskipTests
(4)maven install -DskipTests

Answer:-(2)mvn install -DskipTests

19.

Syntax to create maven project.

Answer» SYNTAX to CREATE MAVEN project.
Below is the COMMAND to create maven project
mvn archetype:generate
20.

Which command is used for checking upgrade check

Answer»

Which COMMAND is used for checking UPGRADE check
(1)Dsurefire.upgradecheck
(2)None
(3)Dsurefire.junit4.upgradecheck
(4)Dsurefire.junit4.upgrade

Answer:-(3)Dsurefire.junit4.upgradecheck

21.

What are the types of maven plugins

Answer»

What are the TYPES of MAVEN PLUGINS
Build and REPORTING Plugins.

22.

Which command is used for generating Unit test reports

Answer»

Which command is used for GENERATING UNIT test reports
Below is the command which is used to GENERATE unit test reports
mvn surefire-REPORT:report

23.

War files are created for

Answer» WAR FILES are created for
We create war file for
Web APPLICATION
24.

How can we compile and generate war file using single command

Answer»

How can we compile and GENERATE WAR file using SINGLE command
mvn compile war:war

25.

What is archetype

Answer»

What is archetype
It is MAVEN PROJECT templating toolkit11

26.

What is GAV in maven

Answer»

What is GAV in maven
(1)GAV STANDS for groupId:artifactId:version
(2)Both options define GAV
(3)NONE of the options mentioned
(4)GAV is USED minimal coordinate ATTRIBUTES for maven

Answer:-(2)Both options define GAV

27.

How to generate war file

Answer»

How to GENERATE WAR file
Below is COMMAND to generate war file
mvn PACKAGE

28.

Which plugin is needed to execute project.

Answer»

Which PLUGIN is needed to EXECUTE project.
(1)mvn-exec-plugin
(2)exec-mvn-plugin
(3)maven-exec-plugin
(4)exec-maven-plugin

Answer:-(4)exec-maven-plugin

29.

A build goal is peripheral for a phase when pom binds all goal to the corresponding life cycle

Answer»

A build goal is peripheral for a PHASE when pom binds all goal to the corresponding LIFE CYCLE
(1)maven-compiler-plugin
(2)compiler-maven-plugin
(3)True
(4)False

Answer:-(4)False

30.

To validate maven project we use

Answer»

To validate maven PROJECT we use
(1)MVN validate-it
(2)mvn validate
(3)validate-project
(4)mvn validate-project

Answer:-(2)mvn validate

31.

What does maven surefire plugins stands for?

Answer»

What does MAVEN surefire plugins stands for?
(1)It is used in BUILD LIFE cycle of test phase.
(2)Both of the options are correct about maven surefire plugins.
(3)None of the option is correct.
(4)It is used to execute test and generate the report.

Answer:-(2)Both of the options are correct about maven surefire plugins.

32.

Command to get version of MVN?

Answer» COMMAND to GET VERSION of MVN?
Below is the command to get the version of maven
mvn --version
33.

How to check maven version

Answer»

How to check MAVEN VERSION
(1)MVN version
(2)mnv version
(3)mnv -version
(4)mvn -version

Answer:-(4)mvn -version

34.

Syntax used for compiling the maven project.

Answer» SYNTAX USED for COMPILING the MAVEN project.
Below is the syntax which is used for compiling the maven project
mvn COMPILE
35.

POM stands for __________ in maven.

Answer» POM stands for __________ in maven.
(1)Product OBJECT Model.
(2)Project Object Model.
(3)Programmable Object Model.
(4)PAGE Object Model

Answer:-(2)Project Object Model.
36.

POM describes how to build a project

Answer» POM describes how to BUILD a PROJECT
(1)True
(2)False

Answer:-(2)False
37.

What was POM named in maven 1

Answer»

What was POM named in maven 1
(1)page.xml
(2)project.xml
(3)product.xml
(4)program.xml

Answer:-(2)project.xml