Apache Ant MCQ Questions And Answers - Java Technologies
Apache Ant MCQs : This section focuses on "basics" of Apache Ant. These Multiple Choice Questions (MCQ) should be practiced to improve the Apache Ant skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. What is true about Ant?
Explanation: Ant is an open source code .It is Java-based build tool sponsored by Apache Software Foundation. It is a program for putting all the pieces of a program together. A simple definition might state that Ant is a Java-based build tool from Apache Software Foundation. Ant is kind of like Make.
2. Ant stands for?
Explanation: The ant is acronym of Another Neat Tool according to James Duncan Davidson. Ants are very small and can carry heavy weight. So as Job of Apache ant. Its name is called ANT.
3. ANT provides the cross-platform deployment that can run on any platform.
Explanation: True, ANT provides the cross-platform deployment that can run on any platform.
4. __________ is a popular dependency manager
Explanation: Ivy is a popular dependency manager .IVY is basically focused on flexibility and simplicity.
5. A built tool is software which is used to ?
Explanation: A built tool is software which is used to build project, directory structure, copy necessary files to that directory ,compile files ,create jars, set path and class-path ,Build the documentation ,Validate the source code, deploy, debug, and run, clear the workspace.
6. What are the features of Ant?
Explanation: All of the above are features of Ant.
7. Which of the following is true about target?
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.
8. Which of the following property defines the name of current project?
Explanation: ant.project.name : The name of the project, as specified in the name atrribute of the project element.
9. Ant does not need to set class path.
Explanation: Yes, Ant does not need to set class path.
10. Ant can be used for?
Explanation: Ant can be used in a small personal project as well as ant can be used in a large, multi-team software project.