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

Answer : A

Explanation

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

Q 10 - Can you execute junit test cases using ant task?

A - Yes

B - No

Answer : A

Explanation

Yes.

ant_questions_answers.htm
Advertisements