Share |

Stats for quiz: Hibernate Quiz Help

Quiz stats

User Date time taken points Result P/F
Fri 03 of Sep., 2010 15:29 IST 464 secs 5 (25.00%) Results (Details) Failed
Sun 29 of Aug., 2010 07:49 IST 9 secs 1 (5.00%) Results (Details) Failed
Thu 05 of Aug., 2010 02:57 IST 67 secs 6 (30.00%) Results (Details) Failed
Mon 02 of Aug., 2010 14:04 IST 140 secs 2 (10.00%) Results (Details) Failed
Thu 29 of July, 2010 03:48 IST 149 secs 7 (35.00%) Results (Details) Failed
Wed 14 of July, 2010 17:33 IST 24 secs 0 (0.00%) Results Failed
Tue 13 of July, 2010 14:37 IST 221 secs 12 (60.00%) Results (Details) Failed
Mon 05 of July, 2010 21:59 IST 6 secs 0 (0.00%) Results Failed
Mon 28 of June, 2010 06:31 IST 113 secs 2 (10.00%) Results (Details) Failed
Fri 18 of June, 2010 12:39 IST 445 secs 10 (50.00%) Results (Details) Failed
Wed 12 of May, 2010 12:41 IST 185 secs 5 (25.00%) Results (Details) Failed
Mon 03 of May, 2010 15:42 IST 406 secs 11 (55.00%) Results (Details) Failed
Mon 03 of May, 2010 14:18 IST 200 secs 11 (55.00%) Results (Details) Failed
Thu 29 of Apr., 2010 03:17 IST 710 secs 14 (70.00%) Results (Details) Failed
Wed 21 of Apr., 2010 22:26 IST 749 secs 8 (40.00%) Results (Details) Failed
Wed 21 of Apr., 2010 08:24 IST 265 secs 14 (70.00%) Results (Details) Failed
Tue 06 of Apr., 2010 15:25 IST 25 secs 0 (0.00%) Results Failed
Fri 19 of Feb., 2010 06:06 IST 326 secs 10 (50.00%) Results (Details) Failed
Tue 16 of Feb., 2010 16:04 IST 21 secs 0 (0.00%) Results (Details) Failed

Stats for this quiz Questions

Question: ORM stands for
Option Votes Average
Object Relational Matching 2 12.50%
Object Relational Mapping 14 87.50%

Question: Which of the following is not an ACID property
Option Votes Average
Atomicity 3 27.27%
Dependency 7 63.64%
Isolation 1 9.09%

Question: hibernate.cfg.xml is used for
Option Votes Average
Building the mapping between class and table 3 18.75%
Contains the configuration like database details 13 81.25%

Question: One of the following in not a transactional isolation issue
Option Votes Average
No read 3 30.00%
Lost Update 4 40.00%
Unrepeatable read 2 20.00%
Dirty Read 1 10.00%

Question: Consider two class Company and Address.
Option Votes Average
No need to map these classes and Entity or value 5 45.45%
Company can be an entity and Address can be value. 5 45.45%
Company can be a value and Address can be an entity 1 9.09%

Question: Which of the following is the strongest transaction isolation level
Option Votes Average
Serializable 5 45.45%
Repeatable Read 1 9.09%
Read Committed 4 36.36%
Read Uncommitted 1 9.09%

Question: Identifier of an entity is denoted by
Option Votes Average
@Key 1 7.14%
@Id 12 85.71%
@Identifier 1 7.14%

Question: Versioning is done by using which annotation marker
Option Votes Average
@Version 7 58.33%
@Release 4 33.33%
@Level 1 8.33%

Question: The most preferred way of defining primary key for a table is by using
Option Votes Average
Composite Key 6 46.15%
Natural Key 5 38.46%
Surrogate Key 1 7.69%
Business Key 1 7.69%

Question: If the property of a class should not take part in persistence mechanism than the property should be marked as
Option Votes Average
@Transient 10 83.33%
@Temporary 1 8.33%
@Enum 1 8.33%

Question: Which of the following is not a way to map the inheritance
Option Votes Average
Single Table per class hierarchy 2 18.18%
Object Relational Mapping 8 72.73%
Table per concrete class 1 9.09%

Question: The disadvantage for using Single table per class hierarchy
Option Votes Average
Multiple tables to deal with. 1 8.33%
Complex to handle polymorphic relationship. 9 75.00%
Performance is not good. 2 16.67%

Question: In ManyToMany relationship, the link table is exposed as an entity
Option Votes Average
false 5 41.67%
true 7 58.33%

Question: Hibernate does the dirty checking when the entity is in the following state
Option Votes Average
Detached 8 66.67%
Persistent 2 16.67%
Transient 2 16.67%

Question: The id value of a transient entity, if the type of id is Long is
Option Votes Average
null 4 36.36%
not null 3 27.27%
arbitrary 4 36.36%

Question: A transient entity referenced by a persistent entity can become persistent if the cascade option is cascade all
Option Votes Average
true 6 54.55%
false 5 45.45%

Question: After the persistent context is closed the entity goes in the following state
Option Votes Average
Detached 6 54.55%
Removed 3 27.27%
Persistent 2 18.18%

Question: In a persistence context how many maximum object representing a particular database row can exist
Option Votes Average
A new object is created every time it is required 7 63.64%
one 4 36.36%

Question: When all objects need to be removed from the persistence context, the call done is session is
Option Votes Average
remove(object) 3 27.27%
clear() 6 54.55%
evict(object) 2 18.18%

Question: In default flush mode, the flush is not called when
Option Votes Average
Commit of a transaction 4 40.00%
when flush is called explicitly 1 10.00%
Before a query is executed 5 50.00%