Unit 6: Database Design - Subjective Questions

INT322 — Computing System And Technologies • Practice Questions with Detailed Answers

20 questions

1

Define a functional dependency. Explain trivial and non-trivial functional dependencies with suitable examples.

2

What is a fully functional dependency? Distinguish it from a partial dependency using an example.

3

Explain transitive dependency and discuss why it creates problems in a database relation.

4

Explain the concept and objectives of database normalization. Describe the anomalies that normalization attempts to remove.

5

Define the first normal form (1NF). Explain how an unnormalized relation can be converted to 1NF.

6

Define the second normal form (2NF). Demonstrate the conversion of a relation from 1NF to 2NF.

7

Define the third normal form (3NF). Show how a 2NF relation containing a transitive dependency can be converted to 3NF.

8

Normalize the relation ENROLL(StudentID, StudentName, CourseID, CourseName, InstructorID, InstructorName, Grade) up to 3NF, given the relevant functional dependencies.

9

What is a database transaction? Explain the roles of read and write operations in a transaction.

10

Describe the different states and stages of a transaction and explain the possible transitions between them.

11

Explain the ACID properties of a transaction with suitable examples.

12

Using read and write operations, explain the lost update problem and state how transaction isolation can prevent it.

13

Describe the structure of a PL/SQL block. Identify its sections and write a simple example.

14

Explain the implementation of arithmetic, relational, logical, and concatenation operators in PL/SQL with examples.

15

Explain how conditional control statements are implemented in PL/SQL. Illustrate IF, ELSIF, ELSE, and CASE.

16

Describe the implementation of iterative control statements in PL/SQL. Compare basic LOOP, WHILE LOOP, and FOR LOOP.

17

What is a stored procedure in PL/SQL? Write and explain a procedure that updates an employee's salary.

18

What is a stored function in PL/SQL? Implement a function that calculates an employee's annual salary.

19

Compare PL/SQL procedures and functions with respect to purpose, parameters, return values, and invocation.

20

Develop a PL/SQL transaction that transfers an amount between two accounts. Explain its control flow, exception handling, and relationship to ACID properties.