Advanced Java Programming (3160707) MCQs

MCQs of Hibernate 4.0

Showing 31 to 30 out of 40 Questions
31.
______is not a core interface of Hibernate?
(a) SessionFactory
(b) Query
(c) SessionManagement
(d) Criteria
Answer:

Option (c)

32.
In _____ file database table configuration is stored?
(a) .dbm
(b) .hbm
(c) .sql
(d) .ora
Answer:

Option (b)

33.
What does the Session object hold?
(a) First-level cache
(b) Second-level cache
(c) Both A & B
(d) None of these
Answer:

Option (a)

34.
Which of the following methods hits database always?
(a) load()
(b) loadDatabase()
(c) getDatabase()
(d) get()
Answer:

Option (d)

35.
Select the inheritance model which is NOT available in Hibernate.
(a) Tables Per Concrete Class
(b) Table Per class hierarchy
(c) Table Per sub-class
(d) Table Per Object
Answer:

Option (d)

36.
Which of the following are tags of hibernate.cfg.xml?
(a) SQL variant to generate
(b) DTD
(c) JDBC connection
(d) All of these
Answer:

Option (d)

37.
Which of the following is NOT TRUE about Session in hibernate
(a) Session is a lightweight non-thread safe object
(b) Session is the primary interface for the persistence service
(c) Can share the session between threads
(d) Session represents a single unit-of-work with the database
Answer:

Option (c)

38.
The QBC stands for?
(a) Query By Call
(b) Query By Column
(c) Query By Criteria
(d) Query By Code
Answer:

Option (c)

39.
The POJOs stands for
(a) Plane Old Java Objects
(b) Plain Old Java Objects
(c) Plain Open Java Objects
(d) Particular Old Java Objects
Answer:

Option (b)

40.
Which of the following are tags of hibernate.cfg.xml? Select all that apply.
(a) SQL variant to generate
(b) Mapping files
(c) DTD
(d) JDBC connection
Answer:

Option (c)

Showing 31 to 30 out of 40 Questions