Olete.in
Articles
Mock Tests
🧪 ANT MCQ Quiz Hub
ANT Mcq Question Set 2
Choose a topic to test your knowledge and improve your ANT skills
1. Hibernate ORM stands for ?
Class Relational Mapping
Class Object Mapping
Object Relational Mapping
none of the above
2. Which of the following are advantages of Hibernate?
Clean Readable Code
Hibernate Query Language
Exception Handling
All of the above
3. A ____________ is an object that maintains the connection between Java object application and database.
cookie
session
cache
persist
4. SessionFactory provides an instance of Session.
TRUE
FALSE
Can be true or false
Can not say
5. ______ is mainly used for improving the application performance by helping to load the child objects on demand.
Load
Configuration
Lazy loading
CGF
6. Hibernate has _____ cache types
1
2
3
4
7. A ________ represents a unit of work with the database and most of the RDBMS supports transaction functionality.
Query objects
Session
Criteria objects
Transaction
8. Which session method begin a unit of work and return the associated Transaction object?
clear
cancelQuery
Transaction beginTransaction
TRANSACTION_NONE
9. What do you think about the statement - "session being a thread-safe object"?
Yes
. No
Can be yes or no
Can not say
10. The Hibernate architecture consists of?
persistent object
session factory
transaction
All of the above
11. Which one is the properties of the Ant?
Basedir
Baiddir
Bootdir
None of the mentioned
12. What are the key features of the 2.1.0 release are
The Key features of Ivy is enhanced Maven2 compatibility, with several bug fixes and more pom features covered
New options for the Ivy Ant tasks and command line
numerous bug fixes & improvements as documented in Jira and in the release notes
All of these
13. Why ant is a great build Tool?
Ant is a Java-based build tool designed to be cross-platform, easy to use, extensible, and scalable
Ant can be used in a small personal project as well as ant can be used in a large, multi-team software project
Ant syntax is very easy to learn
All of the above
14. How many ways can we set properties into build ant file?
Supplying both the name and value attribute
Supplying both the name and re fid attribute
Setting the file attribute with the filename of the property file to load
All of the above
15. What are Apache ant Functionalities?
Ant is an open source project available under the Apache license. Therefore, its source code can be downloaded and modified
Additionally, Ant uses XML build files which make its development easy
Use of XML along with Java makes Ant makes it the perfect solution for developing programs designed to run or be built across a range of different operating systems
All of the above
16. What are the ways to Debug my ant script?
By echoing at the place to debug. The problem is easily known. This is similar to printf() function in C and System.out.println() in Java
By echoing at the place to debug. The problem is easily known. This is similar to printf() function in C and System.out.println() in Java
By running ANT with "“verbose / -debug options. These options provide more information on what is the process going and at which location
All of these
17. What is ant?
Build Tool Only For Java
Build Tools Only For .Net
A language
Build Tool
18. Which one is not a property of the Ant?
ant.java.version
ant.version
ant.create
ant.home
19. List some basic functions performed by Ant.
Compiling Java code into bytecode
Placing this bytecode in a package
Deployment to production systems
All of these
20. Which one is true method foe message printing in xml file?
printf
println
echo
None of the mentioned
Submit