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?
A. Ant is an open source codeĀ
B. Ant is Java-based build tool sponsored by Apache Software Foundation.
C. Ant is kind of like Make.
D. All of the above
View Answer
Ans : D
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?
A. Apache Neat Tool
B. Another Next Tool
C. Another Neat Tool
D. Apache Next Tool
View Answer
Ans : C
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.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, ANT provides the cross-platform deployment that can run on any platform.
4. __________ is a popular dependency manager
A. Make
B. Ivy
C. Jar
D. None of the above
View Answer
Ans : B
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 ?
A. build project
B. build directory structure
C. copy necessary files to that directory
D. All of the above
View Answer
Ans : D
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?
A. Open source
B. Cross plaform
C. Extensible
D. All of the above
View Answer
Ans : D
Explanation: All of the above are features of Ant.
7. Which of the following is true about target?
A. Targets can have dependencies on other targets
B. Dependencies are denoted using the depends attribute
C. Both A and B
D. None of the above
View Answer
Ans : 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.
8. Which of the following property defines the name of current project?
A. ant.file
B. ant.project.name
C. ant.name
D. name
View Answer
Ans : B
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.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Ant does not need to set class path.
10. Ant can be used for?
A. Small Project
B. Large Project
C. Both type of project
D. None of the above
View Answer
Ans : C
Explanation: Ant can be used in a small personal project as well as ant can be used in a large, multi-team software project.
Discussion