Quiz Space

May 2024 term · Database Management Systems · BSCS2001

DBMS End Term: 1 September 2024, Set QDF1 (May 2024 term)

The IIT Madras BS Database Management Systems (DBMS) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDF1: 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
8
MSQ
9
Numerical
3

Updated

Official paper: IIT M FOUNDATION DIPLOMA AN EXAM QDF3 01 Sep 2024 · No negative marking.

Question 1

+2 marksOne correct option
  1. A

    75000

  2. B

    250

  3. C

    300

  4. D

    50

Show answer

Correct answer

  • C

    300

Question 2

+2 marksOne correct option

Choose the correct output obtained on running the given SQL statements on Table Employee.

EIDEName
E01Arthur
E02Raina
E03Meena
E04Arthur
E06Joey

Table Employee

sql
SQL> SAVEPOINT SP1;
SQL> UPDATE Employee SET EName=‘Jainie’
WHERE EID=‘E06’;
SQL> SAVEPOINT SP2;
SQL> DELETE FROM Employee WHERE EID=‘E02’;
SQL> SAVEPOINT SP3;
SQL> UPDATE Employee SET EName=‘Raina’
WHERE EID=‘E04’;
SQL> ROLLBACK TO SP2;
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 3

+2 marksOne correct option

Given below are four statements. Match each of them with the corresponding property in the set of ACID properties.
Statement 1: Any data written to the database must be valid according to all the defined rules like the check and key constraints and triggers.
Statement 2: Every completed transaction is saved into the secondary storage.
Statement 3: During money transfer, either the amount debited from the source account must be credited to the destination account or the money should not be debited from the source account at all.
Statement 4: If multiple transactions are being executed concurrently, then the final result should be the same irrespective of the sequence in which the transactions were executed.
Let A denote Atomicity, C denote Consistency, I denote Isolation and D denote Durability. From among the given options, find the correct match.

  1. A

    1 - A, 2 - C, 3 - I, 4 - D

  2. B

    1 - C, 2 - D, 3 - A, 4 - I

  3. C

    1 - C, 2 - D, 3 - I, 4 - A

  4. D

    1 - I, 2 - A, 3 - D, 4 - C

Show answer

Correct answer

  • B

    1 - C, 2 - D, 3 - A, 4 - I

Question 4

+2 marksOne correct option

Consider the following monthly backup schedule used by a company:

MondayTuesdayWednesdayThursdayFridaySaturdaySunday
1/ Full2/ Incremental3/ Incremental4/ Incremental5/ Incremental6/ Incremental7/ Differential
8/ Incremental9/ Incremental10/ Incremental11/ Incremental12/ Differential13/ Incremental14/ Incremental
15/ Incremental16/ Incremental17/ Differential18/ Incremental19/ Incremental20/ Incremental21/ Incremental
22/ Differential23/ Incremental24/ Incremental25/ Incremental26/ Incremental27/ Incremental28/ Incremental
29/ Incremental30/ Incremental

If a failure occurs on the 27th day of the month before the backup for the day has been completed, how many backup sets have to be loaded for a full recovery?

  1. A

    4

  2. B

    5

  3. C

    6

  4. D

    7

Show answer

Correct answer

  • C

    6

Question 5

+2 marksOne correct option

Consider the table Players as given below:

PIDnamegenderlevel
001PercyMaleInternational
002JasonMaleDistrict
003HazelFemaleNational
004LeoMaleNational
005RaynaFemaleDistrict
006AnnabethFemaleNational
007FrankMaleInternational
008PiperFemaleDistrict

Table 1: Players

Let us create two different bitmap indices, one on the gender attribute and the other on the level attribute. Which of the following options will give the correct result if we want to find all females who are playing in the 'District' level.

Note: Options are in the form of gender (operation) level

  1. A

    00101101 AND 01001001

  2. B

    00101101 OR 00110100

  3. C

    11010010 AND 01001001

  4. D

    11010010 OR 00110100

Show answer

Correct answer

  • A

    00101101 AND 01001001

Question 6

+3 marksOne correct option
  1. A

    20, 30, 25, 15

  2. B

    15, 20, 25, 30

  3. C

    20, 25, 30, 15

  4. D

    20, 25, 15, 30

Show answer

Correct answer

  • C

    20, 25, 30, 15

Question 7

+3 marksOne correct option

The following key values are inserted into a B⁺ tree of order 4 in a given sequence. The tree is initially empty.
25,8,13,59,3,31,60,11,43
How many node splits will be required to perform these insertions?

  1. A

    5

  2. B

    4

  3. C

    6

  4. D

    3

Show answer

Correct answer

  • D

    3

Question 8

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 9

+1 markOne or more correct options

Choose the correct statement(s):

Select all that apply.

  1. A

    In a dense index, index record appears for every search-key value in the file.

  2. B

    Secondary index is also called non-clustering index

  3. C

    Sparse index is contains index records for only some search-key values.

  4. D

    In an ordered index, index entries are stored sorted on the search key value.

Show answer

Correct answers

  • A

    In a dense index, index record appears for every search-key value in the file.

  • B

    Secondary index is also called non-clustering index

  • C

    Sparse index is contains index records for only some search-key values.

  • D

    In an ordered index, index entries are stored sorted on the search key value.

Question 10

+3 marksOne or more correct options

Let A(T,U,V,W)\mathbf{A}(T, U, V, W) be a relational schema with the following functional dependencies:

F={W→UT,UV→W,V→T,W→U}\mathcal{F} = \{W \rightarrow UT, UV \rightarrow W, V \rightarrow T, W \rightarrow U\}

We want to decompose the relation A into 3NF. We asked ChatGPT to decompose the relation into 3NF and below shown is the response from ChatGPT:

The decomposed schema in 3NF is:

  1. R1(W,U,T)\mathbf{R1}(W, U, T)
  2. R2(V,T)\mathbf{R2}(V, T)
  3. R3(U,V,W)\mathbf{R3}(U, V, W)

Which of the following statement(s) is/are correct?

Select all that apply.

  1. A

    The decomposition R1, R2, R3 are in 3NF and all the dependencies are getting preserved.

  2. B

    In the decomposition, R2 is not required. As R1 and R3 is sufficient decomposition in 3NF and all the dependencies are getting preserved.

  3. C

    In the decomposition, R1 is not required. As R2 and R3 is sufficient decomposition in 3NF and all the dependencies are getting preserved.

  4. D

    In the decomposition, R2 is not required. As R1 and R3 is sufficient decomposition in 3NF but all the dependencies will not get preserved.

Show answer

Correct answers

  • A

    The decomposition R1, R2, R3 are in 3NF and all the dependencies are getting preserved.

  • D

    In the decomposition, R2 is not required. As R1 and R3 is sufficient decomposition in 3NF but all the dependencies will not get preserved.

Question 11

+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

  • B

    Schedule S can be two-phase lockable.

  • C

    Schedule S can be strict two-phase lockable.

  • D

    Schedule S is conflict serializable.

Question 12

+3 marksOne or more correct options

Consider the following schedule S.

T1T2
r(A)
r(b)
w(A)
r(A)
w(A)
w(B)
r(B)
w(B)

Table 2: schedule: S

Which of the following is true for schedule S?

Select all that apply.

  1. A

    Schedule S is Conflict serializable

  2. B

    Schedule S is View serializable

  3. C

    Schedule S is not Conflict Serializable

  4. D

    Schedule S is not View Serializable

Show answer

Correct answers

  • C

    Schedule S is not Conflict Serializable

  • D

    Schedule S is not View Serializable

Question 13

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D

Question 14

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • D

Question 15

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 16

+3 marksNumerical answer

The following numbers are inserted into an empty binary search tree in the given order: 27, 23, 33, 49, 51, 92, 83, 10, 78. What is the height of the resulting binary search tree?

Show answer

Correct answer: 6

Question 17

+3 marksNumerical answer

Consider a Block nested loop join for the two relations,instructor and department. Assuming the worst-case memory availability and instructor as the outer relation, the provided details are as follows:
• Total number of block transfers: 20500
• Total number of seeks required: 1000
• Number of block in the outer relation: 500
What is the number of blocks in the inner relations?

Show answer

Correct answer: 40

Question 18

+2 marksNumerical answer

Consider the given log records at an instance of time:

Table 3: Log records

<T0 start>< T_0 \text{ start} >
<T0,A,100,200>< T_0, A, 100, 200 >
<T1 start>< T_1 \text{ start} >
<T1,B,400,300>< T_1, B, 400, 300 >
<T0,C,500,600>< T_0, C, 500, 600 >
<T2 start>< T_2 \text{ start} >
<T2,D,800,700>< T_2, D, 800, 700 >
<Commit T1>< Commit\ T_1 >
<Checkpoint L>< Checkpoint\ L >
<T2,C,500,1000>< T_2, C, 500, 1000 >
<Commit T2>< Commit\ T_2 >
<T0,B,400,500>< T_0, B, 400, 500 >

Suppose there is a system crash after the last log record. What will be the value of the expression (B+C)-(A+D), based on the values stored on the disk at that point:

Show answer

Correct answer: 500

Question 19

+2 marksOne or more correct options

Select all that apply.

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

Correct answer

  • A

Question 20

+2 marksOne or more correct options

Select all that apply.

  1. A

    There might exist an author who has not written any books

  2. B

    There might exist a student who has not read any book

  3. C

    An author can write at most one book

  4. D

    A student can read at most one book

Show answer

Correct answer

  • B

    There might exist a student who has not read any book