Maven Mock Test IV
Maven Mock Test IV
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.
A - mvn help:effective-pom
B - mvn help
C - mvn help:super-pom
C - A goal not bound to any build phase could be executed outside of the build lifecycle by direct
invocation.
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
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
A - generate-resources
B - generate-sources
C - generate-test-sources
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
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
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
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
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
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
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
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
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
Q 19 - Which of the following plugin run the JUnit unit tests and creates test reports?
A - surefile
B - jar
C - war
D - antrun
A - true
B - false
A - true
B - false
A - true
B - false
ANSWER SHEET
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