MS SQL Server – 52 – Locking Commands MCQ

52 – Locking Commands MCQ

Best of luck!

1 / 25

1. Which SQL Server command is used to explicitly begin a transaction and acquire a transaction-level lock?

2 / 25

2. What is the purpose of the SQL Server command “ROLLBACK”?

3 / 25

3. Which SQL Server command is used to explicitly release all acquired locks for the current transaction?

4 / 25

4. In SQL Server, what does the “SAVE TRANSACTION” command do?

5 / 25

5. What is the primary purpose of the “SET TRANSACTION ISOLATION LEVEL” command in SQL Server?

6 / 25

6. In SQL Server, what is the default isolation level when you start a new transaction?

7 / 25

7. Which SQL Server command is used to explicitly acquire an exclusive lock on a resource within a transaction?

8 / 25

8. What is the purpose of the “SET DEADLOCK_PRIORITY” command in SQL Server?

9 / 25

9. Which SQL Server command is used to explicitly request and acquire a lock on a resource without specifying a transaction?

10 / 25

10. In SQL Server, what is the purpose of the “KILL” command?

11 / 25

11. What is the primary purpose of the “SET LOCK_TIMEOUT” command in SQL Server?

12 / 25

12. In SQL Server, what is the default lock timeout value if “SET LOCK_TIMEOUT” is not specified?

13 / 25

13. Which SQL Server command is used to release a specific lock on a resource?

14 / 25

14. What is the primary purpose of the “DBCC TRACEON” command in SQL Server?

15 / 25

15. In SQL Server, what is the purpose of the “SET XACT_ABORT” command?

16 / 25

16. Which SQL Server command is used to explicitly release a specific savepoint within a transaction?

17 / 25

17. What is the primary purpose of the “SET IMPLICIT_TRANSACTIONS” command in SQL Server?

18 / 25

18. In SQL Server, what is the purpose of the “SET TRANSACTION READ ONLY” command?

19 / 25

19. Which SQL Server command is used to list all currently executing processes and their associated information?

20 / 25

20. What is the primary purpose of the “ALTER TABLE” command in SQL Server?

21 / 25

21. In SQL Server, what is the purpose of the “SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED” command?

22 / 25

22. Which SQL Server command is used to explicitly acquire a lock on a resource for the current transaction?

23 / 25

23. What is the primary purpose of the “SET TRANSACTION ISOLATION LEVEL READ COMMITTED” command in SQL Server?

24 / 25

24. In SQL Server, what is the purpose of the “SET TRANSACTION ISOLATION LEVEL REPEATABLE READ” command?

25 / 25

25. Which SQL Server command is used to explicitly release all acquired locks for a transaction and commit the changes?

Your score is

0%