Advanced Java Programming (3160707) MCQs

MCQs of Hibernate 4.0

Showing 1 to 10 out of 40 Questions
1.
Hibernate reduces lines of code by maintaining?
(a) Object-relational table
(b) Object-table mapping
(c) Object-oriented table
(d) Object-data mapping
Answer:

Option (b)

2.
Hibernate itself takes care of mapping using ______, so the developer does not need to write code for it.
(a) Mapping.java file
(b) config files
(c) Xml files
(d) hib files
Answer:

Option (c)

3.
_____ is the powerful query language provided by hibernate.
(a) SQL
(b) HQL
(c) HBQL
(d) PL/SQL
Answer:

Option (b)

4.
Select the correct option
Hibernate is
i. open source
ii. user interface
iii. lightweight
iv. distributed
v. framework
vi. ORM
(a) i,iii,vi
(b) i,ii,vi
(c) iii,iv,vi
(d) iv,v,vi
Answer:

Option (a)

5.
The ORM tool internally uses the _____ to interact with the database.
(a) Object-Relational API
(b) JDBC API
(c) JDBC-ORM API
(d) Hibernate API
Answer:

Option (b)

6.
Arrange the following layer into proper sequence from (top to bottom) to justify Hibernate Architecture.
i. Database layer
ii. Java application layer
iii. Hibernate framework layer
iv. Backend API layer
(a) ii,iii,i,iv
(b) iii,ii,i,iv
(c) ii,iii,iv,i
(d) i,ii,iv,iii
Answer:

Option (c)

7.
Full form of JTA?
(a) Java Transform API
(b) Java Transact API
(c) Java Transmission API
(d) Java Transaction API
Answer:

Option (d)

8.
Full form of JNDI ?
(a) Java Naming and Directory Interface
(b) Java Name and Directory Interface
(c) Java Naming and Dictionary Interface
(d) Java Native and Directory Interface
Answer:

Option (a)

9.
Which is the first Hibernate object created while developing a hibernate application.
(a) Session factory
(b) Configuration
(c) Session
(d) Criteria
Answer:

Option (b)

10.
_____ component creates the connection between the Java classes and database tables.
(a) Database
(b) hibernate.properties
(c) Class Mapping Setup
(d) hibernate.cfg.xml
Answer:

Option (c)

Showing 1 to 10 out of 40 Questions