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

ANT stands for Another Neat Tool.

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

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

A - ear

B - ear-create

C - archive

D - None of the above.

Answer : A

Explanation

ear task can be used to create a ear file.

Answer : D

Explanation

The deploy target copies the files from the web directory to the deploy directory preserving the last modified date time stamp. This is useful when deploying to a server that supports hot deployment.

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

A - Yes

B - No

Answer : A

Explanation

Yes.

ant_questions_answers.htm
Advertisements