Unit5 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Differentiate between Stored Procedures and Functions in the context of database programming.

2

Explain the concept of Cursors in PL/SQL. Differentiate between Implicit and Explicit Cursors.

3

Define a Database Trigger. Explain the different types of triggers with examples of their use cases.

4

What are the ACID properties of a database transaction? Explain each briefly.

5

Discuss Exception Handling in database programming. How are user-defined exceptions raised?

6

Explain the various states of a transaction with the help of a state transition diagram.

7

What are the problems associated with concurrent execution of transactions? Explain the Lost Update and Dirty Read problems.

8

Define Serializability. Explain the difference between Conflict Serializability and View Serializability.

9

Explain the Two-Phase Locking (2PL) protocol. How does it ensure serializability?

10

Describe the Timestamp Ordering Protocol for concurrency control. State the rules for Read and Write operations.

11

What is Recoverability in schedules? Explain the difference between Recoverable, Cascadeless, and Strict Schedules.

12

What is a Deadlock in a database system? Explain the Wait-for Graph method for deadlock detection.

13

Explain the concept of Log-Based Recovery. Differentiate between Deferred Database Modification and Immediate Database Modification.

14

What is the Precedence Graph method? How is it used to test for serializability?

15

Describe the Thomas Write Rule. How does it modify the Timestamp Ordering protocol?

16

Explain the structure of a PL/SQL Block. Provide a simple example.

17

What are Control Flow Statements in database programming? Explain IF-THEN-ELSE and LOOP constructs with syntax.

18

Explain the concept of Shadow Paging in database recovery.

19

What is the Write-Ahead Logging (WAL) rule? Why is it important?

20

Describe the Checkpoints technique in recovery systems. How does it help in reducing recovery time?