uiz Space

May 2025 term · Database Management Systems · BSCS2001

Database Management Systems End Term: 31 August 2025 (May 2025 term)

The IIT Madras BS Database Management Systems (DBMS) End Term paper sat on 31 Aug 2025, in the May 2025 term: 20 questions for 50 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
20
Marks
50
Duration
180 min
MCQ
5
MSQ
9
Numerical
6

Updated

Official paper: IIT M DIPLOMA FN EXAM QDD1 31 Aug 2025 · No negative marking.

Question 1

+2 marksOne correct option

Consider the following relational schema:

mentor(mentorID, mentorName, department)
mentee(menteeID, menteeName, advisorID, rating)

advisorID is a foreign key referring to mentorID of the mentor relation. Assume that each mentor advises at least one mentee. Every mentee is required to give a rating to their mentor for feedback purposes. What does the following query return?

sql
SELECT mentorName
FROM mentor MR
WHERE NOT EXISTS (SELECT menteeID
FROM mentee ME
WHERE ME.advisorID = MR.mentorID
AND ME.rating <>'BAD');
  1. A

    Names of all the mentors with ‘GOOD’ rating from at least one of their mentees.

  2. B

    Names of all the mentors with ’GOOD’ rating from all their mentees.

  3. C

    Names of all the mentors with ‘BAD’ rating from at most one of their mentees.

  4. D

    Names of all the mentors with ’BAD’ rating from all their mentees.

Show answer

Correct answer

  • D

    Names of all the mentors with ’BAD’ rating from all their mentees.

Question 2

+2 marksOne correct option

Consider a non-empty B+-tree of order 17. What are the maximum and minimum number of keys that can be placed in the root node?

  1. A

    max. number of keys = 16, min. number of keys = 1.

  2. B

    max. number of keys = 17, min. number of keys = 1.

  3. C

    max. number of keys = 16, min. number of keys = 8.

  4. D

    max. number of keys = 17, min. number of keys = 8.

Show answer

Correct answer

  • A

    max. number of keys = 16, min. number of keys = 1.

Question 3

+3 marksOne correct option

Given the following schema:

students(studentID, firstName, lastName, admissionDate, deptID)
departments(deptID, deptName, profID, buildingID)

You want to display the first names and admission dates of all first admissions in their respective departments in the building having ID=1001. Which of the following queries will display the correct result?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 4

+3 marksOne correct option
  1. A

    2

  2. B

    0

  3. C

    1

  4. D

    5

Show answer

Correct answer

  • C

    1

Question 5

+3 marksOne correct option

Consider the table Bands given below:

IDNameGenreYearEstablished
001Pink FloydProgressive Rock1964
002Guns N' RosesHard Rock1985
003Black SabbathHeavy Metal1968
004Dream TheaterProgressive Rock1985
005Iron MaidenHeavy Metal1975
006OpethProgressive Metal1990
007Led ZeppelinHard Rock1968
008PanteraGroove Metal1981
009AerosmithBlues Rock1970
010SlipknotGroove Metal1995

Let hash function h(x) generate 16-bit binary hash values for the distinct elements in Genre attribute:

Progressive Rock- 1100 0010 1110 0101
Hard Rock- 1000 1010 0101 1110
Heavy Metal- 0111 1100 0011 0110
Progressive Metal- 1110 0101 0000 1101
Groove Metal- 0100 1010 1111 1011
Blues Rock- 0011 1111 1010 0101

If we insert the records in the following order:
Pink Floyd, Black Sabbath, Dream Theater, Aerosmith, Pantera, Opeth, Guns N' Roses, Iron Maiden, Slipknot, Led Zeppelin.

Considering bucket size as 2, using dynamic hashing technique, which one of the following denotes the correct distribution of records in hash buckets?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 6

+3 marksOne or more correct options

Select all that apply.

  1. A

    Schedule S can not be two-phase lockable.

  2. B

    Schedule S can be two-phase lockable.

  3. C

    Schedule S can be strict two-phase lockable.

  4. D

    Schedule S is conflict serializable.

Show answer

Correct answers

  • A

    Schedule S can not be two-phase lockable.

  • C

    Schedule S can be strict two-phase lockable.

Question 7

+3 marksOne or more correct options

Consider the following log records of transactions where an immediate database modification scheme is used.

1⟨T0,start⟩\langle T0, start \rangle
2⟨T0,A,200,300⟩\langle T0, A, 200, 300 \rangle
3⟨T1,start⟩\langle T1, start \rangle
4⟨T1,B,1300,1000⟩\langle T1, B, 1300, 1000 \rangle
5⟨T2,start⟩\langle T2, start \rangle
6⟨T2,C,500,300⟩\langle T2, C, 500, 300 \rangle
7⟨T1,commit⟩\langle T1, commit \rangle
8⟨T3,start⟩\langle T3, start \rangle
9⟨T0,commit⟩\langle T0, commit \rangle
10⟨T3,D,400,500⟩\langle T3, D, 400, 500 \rangle
11⟨CheckpointL1⟩\langle CheckpointL1 \rangle
12⟨T3,commit⟩\langle T3, commit \rangle
13⟨T2,commit⟩\langle T2, commit \rangle
14⟨T4,start⟩\langle T4, start \rangle
15⟨T4,E,2000,1500⟩\langle T4, E, 2000, 1500 \rangle

Suppose failure occurred after the step 15, then which of the following option(s) is/ are the correct?

Select all that apply.

  1. A

    T0 and T1 can be ignored.

  2. B

    T0,T1, T2 and T3 can be ignored.

  3. C

    T4 need to be undone.

  4. D

    T0 and T3 need to be redone.

Show answer

Correct answers

  • A

    T0 and T1 can be ignored.

  • C

    T4 need to be undone.

Question 8

+3 marksOne or more correct options

Select all that apply.

  1. A

    (0,1,2,7,8)

  2. B

    (0,5,2,3,4)

  3. C

    (0,5,6,3,8)

  4. D

    (0,5,2,7,4)

Show answer

Correct answers

  • B

    (0,5,2,3,4)

  • C

    (0,5,6,3,8)

  • D

    (0,5,2,7,4)

Question 9

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • C

Question 10

+2 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • D

Question 11

+2 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • D

Question 12

+2 marksOne or more correct options

Consider the table Student as shown in figure 2.

roll_nosnamedepartment
1StevieMechanical
2RohnCivil Engg
3TaniaPhysics
4HenryZoology
5StewardMathematics

Figure 2: Table Student

Which among the following SQL statements will result in the output shown below?

roll_nosnamedepartment
1StevieMechanical
3TaniaPhysics
4HenryZoology
5StewardMathematics

Figure 3: Table Result

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • C
  • D

Question 13

+2 marksOne or more correct options

Consider a block nested-loop join for the two relation students and takes:

Relationstudentstakes
Number of tuples(n)30002500
Number of blocks(b)500600

Assuming the worst-case memory availability and considering takes as the outer relation, which of the following options is/are correct?

Select all that apply.

  1. A

    Number of block transfers require=300600

  2. B

    Number of block transfers require=300500

  3. C

    Number of seeks require=1200

  4. D

    Number of seeks require=1400

Show answer

Correct answers

  • A

    Number of block transfers require=300600

  • C

    Number of seeks require=1200

Question 14

+2 marksOne or more correct options

Consider the instance of a relation R given in Table 1.
Which among the following functional dependencies set can be inferred from the given information?

ABCD
a1b1c2d4
a2b1c6d3
a1b2c2d4
a3b4c7d3
a3b1c7d3
a4b2c6d3
a1b7c2d4
a3b4c7d3

Table 1: Relation R

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 15

+2 marksNumerical answer

Consider the following tables:

PlayerIDPlayerName
1Messi
2Muller
3Ronaldo
4Messi
5Ozil
6Ronaldo

Players Table

PlayerIDLeagueNameGoals
1La Liga7
2Premier League5
3La Liga2
1Champions League8
2Bundesliga6
1Copa del Rey5
4La Liga4
4Champions League3
3Champions League1
6La Liga3
3Copa del Rey4
6Champions League2

Stats Table

Consider the following SQL query.

sql
SELECT P.PlayerName, Sum(S.Goals)
FROM Players Table P, Stats Table S
WHERE P.PlayerID= S.PlayerID
GROUP BY P.PlayerName

The numbers of rows that will be returned by the SQL query is:

Show answer

Correct answer: 3

Question 16

+2 marksNumerical answer
Show answer

Correct answer: 5

Question 17

+2 marksNumerical answer
Show answer

Correct answer: 4

Question 18

+3 marksNumerical answer

Consider a magnetic disk with 16 platters, 2 surfaces per platter, 1024 tracks per surface, 2048 sectors per track and 512 bytes per sector. The disk rotates at 6000 rpm. What is the disk capacity (in GB)?

Show answer

Correct answer: 32

Question 19

+3 marksNumerical answer
Show answer

Correct answer: 6

Question 20

+3 marksNumerical answer
Show answer

Correct answer: 8