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 : D

Explanation

All of the above options are correct.

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.

Q 3 - 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 4 - Which of the following property defines the base directory of current project?

A - ant.project.target

B - ant.project.basedir

C - basedir

D - None of the above.

Answer : C

Explanation

basedir - The basedir of the build, as specified in the basedir attribute of the project element.

Answer : C

Explanation

A pattern set is a pattern that allows to filter files or folders easily based on certain patterns.

Answer : A

Explanation

The patternset can be reused with a fileset.

Answer : D

Explanation

All of the above options are correct.

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 : B

Explanation

keepcompression - While the compress attribute is applicable to the individual files, the keepcompression attribute does the same thing, but it applies to the entire archive.

Answer : C

Explanation

jvm - Command used to invoke the JVM. This is ignored when fork is disabled.

ant_questions_answers.htm
Advertisements