14th
Jun
Hibernate MCQ

Hibernate MCQ

  • Admin
  • 14th Jun, 2022
  • 341 Followers

Take Hibernate MCQ Quiz & Online Test to Test your knowledge 

Hibernate is an object-relational mapping tool, used for the Java programming language. In addition, it provides a framework, that is used to map object-oriented domain models to relational databases. It is free software and object-relational mapping tool, distributed under the GNU Lesser General Public License 2.1. It was released by RedHat on 23 May 2001. Hibernate is written in a Java programming language that uses cross-platform (JVM).

We have listed below the best Hibernate MCQ Questions that check your basic knowledge of Hibernate. This Hibernate MCQ Test contains 25+ Best Hibernate MCQ (Multiple Choice Questions). You have to select the right answer to a question. These Mcqs are very helpful for the best preparation for Hibernate Exam or Interview. apart from this, You can also download here the Hibernate MCQ PDF, completly free.

Also, Read Best Hibernate Interview Questions.

Hibernate is an object-relational mapping tool, used for the Java programming language. In addition, it provides a framework, that is used to map object-oriented domain models to relational databases. It is free software and object-relational mapping tool, distributed under the GNU Lesser General Public License 2.1. It was released by RedHat on 23 May 2001. Hibernate is written in a Java programming language that uses cross-platform (JVM).

Hibernate MCQ Questions and Answers

1) Hibernate is a ___________?

  • A. CRM
  • B.ORM
  • C.Programming Tool
  • D.SQL Tool

2) HQL Stands for

  • A. Hibernate Queue Language
  • B.Hibernate Query Language
  • C.Hypertext Query Language
  • D.HighSpeed Query Language.

3) Which element in hibernate maps java.util.SortedMap property ?

  • A. <list>
  • B.<set>
  • C.<map>
  • D.<bag>

4) How many layers are available in Hibernate architecture

  • A. 1
  • B.4
  • C.3
  • D.5

5) Hibernate SessionFactory represent which level of cache ?

  • A. Second Level
  • B.First Level
  • C.Third Level
  • D.Fourth Level
Download Free : Hibernate MCQ PDF

6) Hibernate uses PersisterClassProvider by default.

  • A. True
  • B.False

7) _______________ object is used to create SessionFactory object in hibernate?

  • A. Session
  • B.Configuration
  • C.Transaction
  • D.Factory

8) In which extension in Hibernate is used to store database table configuration ?

  • A. .db
  • B..dbm
  • C..sql
  • D..hbm

9) Which of the following methods returns proxy object in Hibernate?

  • A. getDatabase()
  • B.loadDatabase()
  • C.loadAsyc()
  • D.load()

10) In Hibernate QBC stands for

  • A. Query By Criteria
  • B.Query By Call
  • C.Query By Code
  • D.Query By Column

11) Which method is easy for a Java programmer to add a criterion?

  • A. SQL
  • B.HCQL
  • C.HQL
  • D.All of the above

12) Which of the following element of hbm.xml automatically generate the primary key values?

  • A. generator
  • B.id
  • C.primaryKey
  • D.None of the above

13) Does Configuration object is used to create SessionFactory object in hibernate?

  • A. Yes
  • B.No

14) Which of the following simplifies an Object Relational Mapping tool?

  • A. Data creation
  • B.Data manipulation
  • C.Data access
  • D.All of these

15) Hibernate uses___________ to persist collections of embeddable type.

  • A. ElementCollection
  • B.OneToMany
  • C.Both 1 & 2
  • D.None of the above

16) Which of the following is the name of Hibernate XML configuration file?

  • A. hibernate.config.xml
  • B.hibernate.cfg.xml
  • C.hibernate.cg.xml
  • D.All of the above

17) ............are most common configuration methods of Hibernate Configuation.

  • A. Http.conf
  • B.Mapping files
  • C.Web.config
  • D.XML Configuration hibernate.cfg.xml

18) does the session is created per thread in hibernate?

  • A. Yes
  • B.No

19) __________is not a core interface of Hibernate.

  • A. Criteria
  • B.Session
  • C.Configuration
  • D.SessionManagement

20) Which of the following option is not a state of object in Hibernate?

  • A. Detached()
  • B.Attached()
  • C.Persistent()
  • D.Transient()

21) Which of the following is not a core component of Hibernate?

  • A. JDBC
  • B.Session
  • C.Configuration
  • D.SessionFactory

22) What is the latest version of hibernate?

  • A. 5.1
  • B.5.2
  • C.5.3
  • D.5.4

23) What JDBC stands for?

  • A. Java DB Connectivity
  • B.Java Data Bind Connect
  • C.Java Data Bind Connector
  • D.Java Database Connectivity

24) ........... methods returns proxy object?

  • A. get()
  • B.load()
  • C.getDatabase()
  • D.loadDatabase()

25) The database table configuration is stored In .................... file.

  • A. .sql
  • B..ora
  • C..hbm
  • D..dbm

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Mar
Node js MCQ
01st
Feb
JSON MCQ
01st
Jun
Cobol MCQ
01st
Feb
Perl MCQ
01st
Jun
5G MCQ