Hibernate Quiz 4, Hibernate Online Test Series 4, Hibernate Mock Test
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Hibernate Quiz 4, Hibernate Online Test Series 4, Hibernate Mock Test. Hibernate Online Quiz 4 Question and Answers 4018. Java online Test Quiz 4. Java OOPs Quiz 4 Free Mock Test 2024. Hibernate Online Test Series 4, Hibernate Quiz 4, Hibernate Mock Test Series 4th. Hibernate Tutorial with Example Projects to Download, Hibernate Tutorials for Beginners and Advanced users. Hibernate Spring, Struts3, Spring MVC projects. Here is a lot of quiz related to Hibernate framework. Solving quiz is very beneficial for interview preparation. Attend Hibernate online aptitude test here to prepare your first round job interview written test in companies and to prepare you for entrance examination and competitive examination and campus interviews.
This paper has 20 questions.
Time allowed is 25 minutes.
The Java OOPs Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
What JDBC stands for?
Correct
JDBC stands for Java Database Connectivity and provides a set of Java API for accessing the relational databases from Java program.
Incorrect
JDBC stands for Java Database Connectivity and provides a set of Java API for accessing the relational databases from Java program.
-
Question 2 of 20
2. Question
Which of the following is true about SessionFactory object in hibernate?
Correct
The SessionFactory is heavyweight object so usually it is created during application start up and kept for later use. You would need one SessionFactory object per database using a separate configuration file. So if you are using multiple databases then you would have to create multiple SessionFactory objects.
Incorrect
The SessionFactory is heavyweight object so usually it is created during application start up and kept for later use. You would need one SessionFactory object per database using a separate configuration file. So if you are using multiple databases then you would have to create multiple SessionFactory objects.
-
Question 3 of 20
3. Question
Which method is used to remove a persistent instance from the datastore?
Correct
Session.delete() removes a persistent instance from the datastore.
Incorrect
Session.delete() removes a persistent instance from the datastore.
-
Question 4 of 20
4. Question
Which element of hbm.xml defines maps the unique ID attribute in class to the primary key of the database table?
Correct
The
element maps the unique ID attribute in class to the primary key of the database table. Incorrect
The
element maps the unique ID attribute in class to the primary key of the database table. -
Question 5 of 20
5. Question
Which of the following element maps java.util.Collection property in hibernate?
Correct
java.util.Collection property is mapped with a
or element and initialized with java.util.ArrayList. Incorrect
java.util.Collection property is mapped with a
or element and initialized with java.util.ArrayList. -
Question 6 of 20
6. Question
Which of the following situation represents many-to-many relationship?
Correct
An employee can have multiple certificates and same certificate can be conferred to many employees. Such situation represents many-to-many association.
Incorrect
An employee can have multiple certificates and same certificate can be conferred to many employees. Such situation represents many-to-many association.
-
Question 7 of 20
7. Question
Whis of the following is true about first level cache in hibernate?
Correct
The first-level cache is the Session cache and is a mandatory cache through which all requests must pass. The Session object keeps an object under its own power before committing it to the database.
Incorrect
The first-level cache is the Session cache and is a mandatory cache through which all requests must pass. The Session object keeps an object under its own power before committing it to the database.
-
Question 8 of 20
8. Question
When a Nonstrict-read-write concurrency strategy is to be used?
Correct
Nonstrict-read-write strategy makes no guarantee of consistency between the cache and the database. Use this strategy if data hardly ever changes and a small likelihood of stale data is not of critical concern.
Incorrect
Nonstrict-read-write strategy makes no guarantee of consistency between the cache and the database. Use this strategy if data hardly ever changes and a small likelihood of stale data is not of critical concern.
-
Question 9 of 20
9. Question
Persistent objects are saved and retrieved through a Session object.
Correct
Persistent objects are saved and retrieved through a Session object.
Incorrect
Persistent objects are saved and retrieved through a Session object.
-
Question 10 of 20
10. Question
Which of the following is true about HQL?
Correct
Incorrect
-
Question 11 of 20
11. Question
Can embeddable class be used as primary key?
Correct
Incorrect
-
Question 12 of 20
12. Question
If a single table hosts all the instances of a class hierarchy, then it is known as
Correct
Incorrect
-
Question 13 of 20
13. Question
How to inherit properties from superclasses in hibernate?
Correct
Incorrect
-
Question 14 of 20
14. Question
How to override attributes from embeddable class in hibernate?
Correct
Incorrect
-
Question 15 of 20
15. Question
If entity is not annotated with @Table, what will happen?
Correct
Incorrect
-
Question 16 of 20
16. Question
When several entities points to the target entity, that is achieved by
Correct
Incorrect
-
Question 17 of 20
17. Question
To persist collections of embeddable type, hibernates uses
Correct
Incorrect
-
Question 18 of 20
18. Question
In hibernate @OrderBy makes a list as
Correct
Incorrect
-
Question 19 of 20
19. Question
To map an enum in hibernate, we use
Correct
Incorrect
-
Question 20 of 20
20. Question
To map a date in hibernate, we use
Correct
Incorrect