Ant Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Ant. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : A

Explanation

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

Q 3 - 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 4 - 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 : A

Explanation

? - Matches one character only.

Answer : D

Explanation

The path data type is commonly used to represent a class-path. Entries in the path are separated using semicolons or colons. However, these characters are replaced at the run-time by the executing system's path separator character.

Answer : C

Explanation

javadoc task can be used to create java documentation. Source can be specified using sourcepath, sourcepathref or sourcefiles attributes.

Q 8 - Which of the following task is used to create a war file?

A - war

B - war-create

C - archive

D - None of the above.

Answer : A

Explanation

war task can be used to create a war file.

Answer : A

Explanation

Excludes - Advises Ant to not include comma separated list of files in the package.

Answer : C

Explanation

The deploywar target builds the war file and then copies the war file to the deploy directory of the application server.

ant_questions_answers.htm
Advertisements