Unit5 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Explain the various flow control statements available in database programming with examples.

2

What is a Stored Procedure? Explain its advantages and general syntax.

3

Differentiate between a Function and a Stored Procedure in a DBMS.

4

What is a Cursor? Describe the lifecycle of an explicit cursor.

5

Define Triggers in DBMS. Discuss the difference between Row-Level and Statement-Level triggers.

6

Explain Exception Handling in Database Programming with a suitable example.

7

Define a Database Transaction. Explain the Transaction State Diagram in detail.

8

Elaborate on the desirable properties of transactions (ACID properties).

9

What is a Schedule in DBMS? Differentiate between Serial and Non-Serial Schedules.

10

What are Conflicting Operations? Explain Conflict Serializability with its testing algorithm.

11

Discuss View Serializability. How does it differ from Conflict Serializability?

12

Why is Concurrency Control needed in DBMS? Discuss the problems that arise without it.

13

Explain the Two-Phase Locking (2PL) protocol. What are its phases?

14

What is Timestamp-based Concurrency Control? Describe the Timestamp Ordering Protocol.

15

Define Recoverable Schedules and Cascading Rollbacks.

16

What are Cascadeless Schedules? Why are they desirable?

17

Explain the concept of Deadlock in Concurrency Control. How can it be handled?

18

Differentiate between BEFORE and AFTER triggers in databases.

19

What are Implicit and Explicit Cursors? Compare them.

20

Discuss Strict Recoverability. How does a Strict Schedule differ from a Cascadeless Schedule?