--:--









Quiz for COMMIT and ROLLBACK

Course: SQL | Subject: SQL | Topic: Transactions and TCL



Logo

Q1: Which SQL command is used to save a transaction permanently?

Logo

Q2: Which SQL command is used to undo changes made by a transaction?

Logo

Q3: After a COMMIT, which of the following is true?

Logo

Q4: Which command marks the end of a successful transaction?

Logo

Q5: If no COMMIT is issued, what happens when a program ends abruptly?

Logo

Q6: ROLLBACK can be used to undo which of the following?

Logo

Q7: Can a ROLLBACK undo changes after a COMMIT?

Logo

Q8: Which of the following commands ends a transaction in SQL?

Logo

Q9: Which command is used to revert to a specific SAVEPOINT?

Logo

Q10: Which of the following is not a TCL command?

Logo

Q11: COMMIT is automatically issued after which command?

Logo

Q12: Which command is used to make a transaction permanent?

Logo

Q13: How can you prevent a COMMIT from being issued automatically?

Logo

Q14: What happens if ROLLBACK is used after a SAVEPOINT?

Logo

Q15: Which of the following does NOT initiate a transaction?

Logo

Q16: Can you COMMIT inside a stored procedure?

Logo

Q17: What is the default behavior of SQL in terms of transactions?

Logo

Q18: How does COMMIT affect a SAVEPOINT?

Logo

Q19: What is the purpose of COMMIT?

Logo

Q20: Which command ensures that all changes are saved and the transaction is ended?

Are you ready to start test? Set your time limit