MCQOPTIONS
Saved Bookmarks
This section includes 21 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
For two transactions T1 and T2, T1 reads some rows from a table and then T2 inserts new rows into the table. |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» D. Lost Updates | |
| 2. |
For two transactions T1 and T2, T1 reads a field and then T2 updates the field. |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» C. Phantom read | |
| 3. |
For two transactions T1 and T2, T1 reads a field that has been updated by T2 but not yet committed. |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» B. Nonrepeatable read | |
| 4. |
If there’s an existing transaction in progress, the current method should run within the nested transaction. |
| A. | Required |
| B. | MANDATORY |
| C. | NESTED |
| D. | NEVER |
| Answer» D. NEVER | |
| 5. |
The current method should not run within a transaction. If there’s an existing transaction in progress, an exception will be thrown. |
| A. | Required |
| B. | MANDATORY |
| C. | SUPPORTS |
| D. | NEVER |
| Answer» E. | |
| 6. |
If there’s an existing transaction in progress, the current method can run within this transaction. |
| A. | Required |
| B. | REQUIRES NEW |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» D. NOT SUPPORTED | |
| 7. |
If there’s an existing transaction in progress, the current method should run within this transaction. |
| A. | Required |
| B. | REQUIRES NEW |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» B. REQUIRES NEW | |
| 8. |
IF_THERE‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•S_AN_EXISTING_TRANSACTION_IN_PROGRESS,_THE_CURRENT_METHOD_SHOULD_RUN_WITHIN_THE_NESTED_TRANSACTION.?$# |
| A. | Required |
| B. | MANDATORY |
| C. | NESTED |
| D. | NEVER |
| Answer» D. NEVER | |
| 9. |
For two transactions T1 and T2, T1 reads a field and then T2 updates the field.$ |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» C. Phantom read | |
| 10. |
For_two_transactions_T1_and_T2,_T1_reads_a_field_that_has_been_updated_by_T2_but_not_yet_committed.$ |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» B. Nonrepeatable read | |
| 11. |
The exceptions that cause a transaction to roll back or not can be specified by attribute:- |
| A. | rollback |
| B. | commit |
| C. | serialize |
| D. | none of the mentioned |
| Answer» B. commit | |
| 12. |
Isolation Levels Supported by Spring:- |
| A. | DEFAULT |
| B. | READ COMMITTED |
| C. | READ UNCOMMITTED |
| D. | All of the mentioned |
| Answer» E. | |
| 13. |
For two transactions T1 and T2, they both select a row for update, and based on the state of that row, make an update to it. |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» E. | |
| 14. |
For_two_transactions_T1_and_T2,_T1_reads_some_rows_from_a_table_and_then_T2_inserts_new_rows_into_the_table. |
| A. | Dirty Read |
| B. | Nonrepeatable read |
| C. | Phantom read |
| D. | Lost Updates |
| Answer» D. Lost Updates | |
| 15. |
The current method should not run within a transaction. If there’s an existing transaction in progress, an exception will be thrown?# |
| A. | Required |
| B. | MANDATORY |
| C. | SUPPORTS |
| D. | NEVER |
| Answer» E. | |
| 16. |
The current method must run within a transaction. |
| A. | Required |
| B. | MANDATORY |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» C. SUPPORTS | |
| 17. |
The current method should not run within a transaction. |
| A. | Required |
| B. | REQUIRES NEW |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» E. | |
| 18. |
The current method must start a new transaction and run within its own transaction. |
| A. | Required |
| B. | REQUIRES NEW |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» C. SUPPORTS | |
| 19. |
If there’s an existing transaction in progress, the current method should run within this transaction.$ |
| A. | Required |
| B. | REQUIRES NEW |
| C. | SUPPORTS |
| D. | NOT SUPPORTED |
| Answer» B. REQUIRES NEW | |
| 20. |
Transaction propagation behavior are defined in the:- |
| A. | org.springframework.transaction.Transaction |
| B. | org.springframework.transaction.TransactionDefinition |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» C. all of the mentioned | |
| 21. |
A transaction propagation behavior can be specified by the:- |
| A. | propagation |
| B. | consistency |
| C. | isolation |
| D. | All of the mentioned |
| Answer» B. consistency | |