0% found this document useful (0 votes)
51 views6 pages

Maven Mock Test IV

Maven

Uploaded by

ROUNAK MAHANTY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views6 pages

Maven Mock Test IV

Maven

Uploaded by

ROUNAK MAHANTY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MAVEN MOCK TEST

http://www.tutorialspoint.com Copyright © tutorialspoint.com

This section presents you various set of Mock Tests related to Maven. You can download these
sample mock tests at your local machine and solve offline at your convenience. Every mock test is
supplied with a mock test key to let you verify the final score and grade yourself.

MAVEN MOCK TEST IV

Q 1 - Which of the following is correct about super POM?

A - All POMs inherit from a parent despiteexplicitlydefinedornot known as super POM.

B - Super POM contains values inherited by default.

C - Both of the above.

D - None of the above.

Q 2 - Which of the following is correct about super POM?

A - Maven use the effective pom configurationfromsuperpomplusprojectconfiguration to execute relevant


goal.

B - It helps developer to specify minimum configuration detail in his/her pom.xml. Although


configurations can be overridden easily.

C - Both of the above.

D - None of the above.

Q 3 - Which of the following command can be used to look at the default


configurations of the super POM?

A - mvn help:effective-pom

B - mvn help

C - mvn help:super-pom

D - None of the above.

Q 4 - Which of the following is correct about Goal in Maven?


A - A goal represents a specific task which contributes to the building and managing of a project.

B - It may be bound to zero or more build phases.

C - A goal not bound to any build phase could be executed outside of the build lifecycle by direct
invocation.

D - All of the above.

Q 5 - Which of the following phase in maven life cycle generates any source code to be
included in compilation phase?

A - generate-sources

B - generate-resources

C - generate-test-sources

D - None of the above.

Q 6 - Which of the following phase in maven life cycle processes the source code, for
example, filter any value?

A - process-resources

B - process-sources

C - process-test-sources

D - None of the above.

Q 7 - Which of the following phase in maven life cycle generates resources to be


included in the package?

A - generate-resources

B - generate-sources

C - generate-test-sources

D - None of the above.

Q 8 - Which of the following phase in maven life cycle copies and processes the
resources into the destination directory, ready for packaging phase?

A - process-sources

B - process-resources

C - process-test-sources

D - None of the above.

Q 9 - Which of the following phase in maven life cycle post-processes the generated
files from compilation, for example to do bytecode enhancement/optimization on Java
classes?

A - process-classes
B - process-test-sources

C - process-test-classes

D - None of the above.

Q 10 - Which of the following phase in maven life cycle generates any test source code
to be included in compilation phase?

A - process-classes

B - process-test-sources

C - generate-test-sources

D - None of the above.

Q 11 - Which of the following phase in maven life cycle processes the test source code,
for example, filter any values?

A - process-classes

B - process-test-sources

C - generate-test-sources

D - None of the above.

Q 12 - Which of the following phase in maven life cycle compiles the test source code
into the test destination directory?

A - test-compile

B - process-test-sources

C - generate-test-sources

D - None of the above.

Q 13 - Which of the following phase in maven life cycle processes the generated files
from test code file compilation?

A - process-test-classes

B - process-test-sources

C - generate-test-sources

D - None of the above.

Q 14 - Which of the following phase in maven life cycle performs any operations
necessary to prepare a package before the actual packaging?

A - process-resources

B - process-test-sources

C - prepare-package
D - None of the above.

Q 15 - Which of the following phase in maven life cycle performs actions required
before integration tests are executed. For example, setting up the required
environment?

A - process-resources

B - pre-integration-test

C - prepare-package

D - None of the above.

Q 16 - 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?

A - process-resources

B - pre-integration-test

C - integration-test

D - None of the above.

Q 17 - Which of the following phase in maven life cycle performs actions required after
integration tests have been executed? For example, cleaning up the environment.

A - post-integration-test

B - pre-integration-test

C - integration-test

D - None of the above.

Q 18 - Which of the following is true about Maven central repository?

A - This repository is managed by Maven community.

B - It is not required to be configured.

C - It requires internet access to be searched.

D - All of the above.

Q 19 - Which of the following plugin run the JUnit unit tests and creates test reports?

A - surefile

B - jar

C - war

D - antrun

Q 20 - When Maven starts looking for dependency libraries, it first searches


dependency in local repository.

A - true

B - false

Q 21 - When dependency in local repository is not found, then Maven searches


dependency in central repository.

A - true

B - false

Q 22 - When dependency in central repository is not found, then Maven searches


dependency in remote repository.

A - true

B - false

Q 23 - Maven Plugins are generally used to:

A - create jar file.

B - create war file.

C - create ear file.

D - All of the above.

Q 24 - Maven Plugins are generally used to:

A - compile code files.

B - unit testing of code.

C - Both of the above.

D - None of the above.

Q 25 - Maven Plugins are generally used to:

A - create project documentation.

B - create project reports.

C - Both of the above.

D - None of the above.

ANSWER SHEET

Question Number Answer Key

1 C
2 C

3 A

4 D

5 A

6 B

7 A

8 B

9 A

10 C

11 B

12 A

13 A

14 C

15 B

16 C

17 A

18 D

19 A

20 A

21 A

22 A

23 D

24 C

25 C

Loading [MathJax]/jax/output/HTML-CSS/jax.js

You might also like