Ant Mock Test



This section presents you various set of Mock Tests related to Ant. 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.

Questions and Answers

Ant Mock Test I

Answer : C

Explanation

ANT stands for Another Neat Tool.

Answer : D

Explanation

All of the above options are correct.

Answer : D

Explanation

All of the above options are correct.

Answer : A

Explanation

A target is a collection of tasks that you want to run as one unit.

Answer : C

Explanation

Targets can have dependencies on other targets. For example, a deploy target may have a dependency on the package target, the package target may have a dependency on the compile target and so forth. Dependencies are denoted using the depends attribute.

Answer : C

Explanation

depends attribute can have a comma separated list of all targets that this target depends on. It is an optional attribute.

Answer : C

Explanation

If attribute allows the execution of a target based on the trueness of a conditional attribute. It is an optional attribute.

Answer : D

Explanation

Unless attribute adds the target to the dependency list of the specified Extension Point. An Extension Point is similar to a target, but it does not have any tasks. It is an optional attribute.

Q 11 - Which of the following is a predefined property in ANT?

A - ant.file

B - ant.version

C - basedir

D - All of the above.

Answer : D

Explanation

All of the above are predefined properties in ANT.

Q 12 - Which of the following property defines the version of Ant installation?

A - ant.version

B - ant.java.version

C - base

D - None of the above.

Answer : A

Explanation

ant.version - The version of the Apache Ant installation.

Q 13 - Which of the following property defines the version of Java installation, Ant is using?

A - ant.version

B - ant.java.version

C - base

D - None of the above.

Answer : B

Explanation

ant.java.version - The version of the JDK that is used by Ant.

Q 14 - Which of the following property defines the full location of the Ant jar file?

A - ant.core.lib

B - ant.lib

C - lib

D - None of the above.

Answer : A

Explanation

ant.core.lib - The full location of the Ant jar file.

Q 15 - Which of the following property defines the home directory of Ant installation?

A - ant.project.home

B - ant.home

C - home

D - None of the above.

Answer : B

Explanation

ant.home - The home directory of Ant installation.

Q 16 - Which of the following property defines the default target of current project?

A - ant.project.target

B - ant.project.default

C - ant.project.default-target

D - None of the above.

Answer : C

Explanation

ant.project.default-target - The default target of the current project.

Answer Sheet

Question Number Answer Key
1 D
2 C
3 D
4 D
5 D
6 A
7 C
8 C
9 C
10 D
11 D
12 A
13 B
14 A
15 B
16 C
ant_questions_answers.htm
Advertisements