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

Answer : D

Explanation

The fileset data types represents a collection of files. It is used as a filter to include or exclude files that match a particular pattern.

Answer : C

Explanation

** - Matches zero or many directories recursively.

Answer : C

Explanation

filelist data type can be applied for existing or non-existing files.

Answer : D

Explanation

All of the above options are correct.

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

A - jar

B - jar-create

C - archive

D - None of the above.

Answer : A

Explanation

jar task can be used to create a jar file.

Answer : A

Explanation

Excludes - Advises Ant to not include pattern specified 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