Question 1
Which of the following is the correct way to connect the Postgresql database using Python?

The IIT Madras BS Database Management Systems (DBMS) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term: 14 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Which of the following is the correct way to connect the Postgresql database using Python?
Correct answer
Correct answers
Consider the following table:
| PlayerID | PlayerName | Team | Runs |
|---|---|---|---|
| 001 | Virat | India | 100 |
| 002 | Rohit | India | 100 |
| 003 | Smith | Australia | 70 |
| 004 | Jason | England | 60 |
| 005 | Rohit | Bangladesh | 65 |
| 006 | Asif | Pakistan | 50 |
| 007 | Smith | Newzealand | 70 |
Table 1: Players
Which of the following functional dependencies hold in the Players table?
Correct answers
Correct answers
Let R(A,B,C,D,E) be a relational schema with the following functional dependencies:
Consider the decomposition of R into:
R1, R2, R3
Which of the following statements is/are correct?
Correct answers
D1 is a lossless decomposition and all dependencies are preserved.
D1 is a lossy decomposition and all dependencies are preserved.
D2 is a lossy decomposition and dependencies are not preserved
Both D1 and D2 are lossy decompositions.
Correct answers
D1 is a lossless decomposition and all dependencies are preserved.
D2 is a lossy decomposition and dependencies are not preserved
Correct answers
Correct answers
Consider the table R shown in the Table 2
| X | Y | Z |
|---|---|---|
| a | b | d |
| a | c | ..A.. |
| a | c | d |
| a | b | e |
| x | y | ..B.. |
| x | y | z |
Table 2: R
If X Y and X Z holds true on the given relation R, then choose the correct values for A and B.
Correct answers
The FDs X and Y are equivalent.
Y covers X
X covers Y
X is canonical cover of Y
Correct answer
Y covers X
Correct answer: 3
Correct answer: 35
The university database maintains information about students, the courses they take, and the departments offering those courses. The relation is designed as follows:
Enrollment
The functional dependencies applicable to Enrollment are:
Based on the above data, answer the given subquestions.
Correct answers
The university database maintains information about students, the courses they take, and the departments offering those courses. The relation is designed as follows:
Enrollment
The functional dependencies applicable to Enrollment are:
Based on the above data, answer the given subquestions.
Correct answer