Ant Online Quiz


Advertisements

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

Explanation

ANT stands for Another Neat Tool.

Answer : C

Explanation

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

Q 3 - 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 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 : C

Explanation

Both of the above options are correct.

Q 9 - Which of the following attribute refers to name of the output JAR file?

A - dest

B - destfile

C - dest-file

D - None of the above.

Answer : B

Explanation

destfile - The name of the output JAR file.

Answer : C

Explanation

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

ant_questions_answers.htm
Advertisements