uiz Space

September 2024 term · Database Management Systems · BSCS2001

Database Management Systems End Term: 22 December 2024, Set QDF1 (September 2024 term)

The IIT Madras BS Database Management Systems (DBMS) End Term paper sat on 22 Dec 2024, in the September 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
9
MSQ
10
Numerical
1

Updated

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

Question 1

+2 marksOne correct option

Consider the table Player given in Figure 1.

pnameteamratingagetype
AJAYTEAM-B723BATSMAN
ARIFTEAM-B833BOWLER
JAMESTEAM-A822ALLROUNDER
JHONTEAM-A926BOWLER
MARTINTEAM-A725BATSMAN
RAJTEAM-A831BATSMAN
RAMESHTEAM-B623BATSMAN
ROBINTEAM-B828ALLROUNDER
ROSSTEAM-A624BATSMAN

Figure 1: Table Player

The bitmap index on the table Player is as shown in Figure 2.

100011101
010100000
001000010

Figure 2: Bitmap index

Identify the column on which the given bitmap index is constructed.

  1. A

    team

  2. B

    rating

  3. C

    age

  4. D

    type

Show answer

Correct answer

  • D

    type

Question 2

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

Correct answer

  • A

Question 3

+2 marksOne correct option

Consider seek time of your hard disk read head is 2ms, rotational speed is 60,000 RPM. The disk has 300 sectors/track and sector size is 256 bytes. What will be the transfer rate (KB/ms)?

  1. A

    75 KB/ms

  2. B

    25 KB/ms

  3. C

    50 KB/ms

  4. D

    100 KB/ms

Show answer

Correct answer

  • A

    75 KB/ms

Question 4

+2 marksOne correct option

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

  1. A

    max. number of keys = 13, min. number of keys = 6.

  2. B

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

  3. C

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

  4. D

    max. number of keys = 14, min. number of keys = 7.

Show answer

Correct answer

  • B

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

Question 5

+2 marksOne correct option

Consider a multilevel index with five levels as L1, L2, L3, L4 and L5. Let L1 be the innermost and L5 be the outermost levels. Let the index blocking factor or the maximum number of entries held by a block be 50. If the number of blocks in level L1 is 62,50,000, then how many blocks are required at L2, L3, L4 and L5?

  1. A

    Number of blocks at L2 is 125000,
    Number of blocks at L3 is 2500,
    Number of blocks at L4 is 50,
    Number of blocks at L5 is 1

  2. B

    Number of blocks at L2 is 125000,
    Number of blocks at L3 is 2000,
    Number of blocks at L4 is 50,
    Number of blocks at L5 is 1

  3. C

    Number of blocks at L2 is 120000,
    Number of blocks at L3 is 2400,
    Number of blocks at L4 is 40,
    Number of blocks at L5 is 1

  4. D

    Number of blocks at L2 is 120000,
    Number of blocks at L3 is 3000,
    Number of blocks at L4 is 60,
    Number of blocks at L5 is 1

Show answer

Correct answer

  • A

    Number of blocks at L2 is 125000,
    Number of blocks at L3 is 2500,
    Number of blocks at L4 is 50,
    Number of blocks at L5 is 1

Question 6

+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/ Incremental13/ Differential14/ Incremental
15/ Incremental16/ Incremental17/ Incremental18/ Incremental19/ Differential20/ Incremental21/ Incremental
22/ Incremental23/ Incremental24/ Incremental25/ Differential26/ Incremental27/ Incremental28/ Incremental
29/ Incremental30/ Incremental

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

  1. A

    5

  2. B

    4

  3. C

    3

  4. D

    6

Show answer

Correct answer

  • C

    3

Question 7

+3 marksOne correct option
  1. A

    5

  2. B

    4

  3. C

    6

  4. D

    3

Show answer

Correct answer

  • A

    5

Question 8

+3 marksOne correct option

Consider the given log records at an instance of time:

<T0 start>< T_0 \text{ start} >
<T0,A,1000,800>< T_0, A, 1000, 800 >
<T1 start>< T_1 \text{ start} >
<T1,B,500,750>< T_1, B, 500, 750 >
<T0,C,1700,1000>< T_0, C, 1700, 1000 >
<T2 start>< T_2 \text{ start} >
<T2,D,420,690>< T_2, D, 420, 690 >
<Commit T2>< Commit\ T_2 >
<Checkpoint L>< Checkpoint\ L >
<T1,D,690,710>< T_1, D, 690, 710 >
<Commit T1>< Commit\ T_1 >
<T0,B,750,350>< T_0, B, 750, 350 >

Table 1: Log records

Suppose there is a system crash after the last log record. What would be the values of A, B, C and D stored on disk at that point?

  1. A

    A = 1000, B = 750, C = 1700, D = 710

  2. B

    A = 1000, B = 750, C = 1700, D = 690

  3. C

    A = 1000, B = 350, C = 1700, D = 710

  4. D

    A = 1000, B = 350, C = 1700, D = 690

Show answer

Correct answer

  • A

    A = 1000, B = 750, C = 1700, D = 710

Question 9

+1 markOne correct option

Consider the following statements:
1. Hot backup refers to keeping a database up and running while the backup is being performed concurrently.
2. Cold backup is mainly used for Transaction Log Backup.
3. Transactional Logging is used in circumstances where a possibly inconsistent backup is taken. Choose the correct option.

  1. A

    Statements 1 and 2 are correct

  2. B

    Statements 1 and 3 are correct

  3. C

    All the statements are correct

  4. D

    Only Statement 1 is correct

Show answer

Correct answer

  • B

    Statements 1 and 3 are correct

Question 10

+3 marksOne or more correct options

Select all that apply.

  1. A

    T2 can be ignored and T3 needs to be redone.

  2. B

    T4 needs to be undone and T5 needs to be redone.

  3. C

    T1 needs to be redone and T4 can be undone.

  4. D

    T3 needs to be undone and T4 needs to be redone.

Show answer

Correct answers

  • A

    T2 can be ignored and T3 needs to be redone.

  • C

    T1 needs to be redone and T4 can be undone.

Question 11

+3 marksOne or more correct options

Consider the Schedule given below:

T1T_1T2T_2T3T_3
R(D)
R(A)
R(C)
W(A)
R(B)
R(C)
R(E)
R(A)
R(D)
W(A)
W(B)
R(E)

Which of the following statements is/are correct about the given Schedule?

Select all that apply.

  1. A

    A precedence graph of the schedule is acyclic

  2. B

    The given schedule is not view serializable

  3. C

    The given schedule is view serializable but not conflict serializable

  4. D

    The given schedule is view serializable and conflict serializable

Show answer

Correct answers

  • A

    A precedence graph of the schedule is acyclic

  • D

    The given schedule is view serializable and conflict serializable

Question 12

+3 marksOne or more correct options

Consider the following two schedules S1 and S2 and three transactions T1,T2,T3T_1, T_2, T_3:

S1:R1(X);R3(Y);W1(X);R2(X);W3(Y);W2(X);R1(Y);W1(Y);S2:R3(Y);R1(X);W1(X);R2(X);W3(Y);R1(Y);W1(Y);W2(X);\begin{aligned} &\mathbf{S1}: R_1(X); R_3(Y); W_1(X); R_2(X); W_3(Y); W_2(X); R1(Y); W_1(Y); \\ &\mathbf{S2}: R_3(Y); R_1(X); W_1(X); R_2(X); W_3(Y); R_1(Y); W_1(Y); W_2(X); \end{aligned}

where Ri(X)R_i(X) denotes a read operation by transaction TiT_i on a data item X, Wi(X)W_i(X) denotes a write operation by transaction TiT_i on a data item X, CiC_i denotes a commit by TiT_i, and AiA_i denotes an abort by TiT_i.

Which among the following statements is/are correct?

Select all that apply.

  1. A

    S1 and S2 are conflict equivalent.

  2. B

    S1 and S2 are not conflict equivalent.

  3. C

    S1 and S2 are view equivalent.

  4. D

    S1 and S2 are not view equivalent.

Show answer

Correct answers

  • A

    S1 and S2 are conflict equivalent.

  • C

    S1 and S2 are view equivalent.

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

Consider the definition of the table Products.

sql
CREATE TABLE Products (
Product_SID CHAR(10) PRIMARY KEY,
Product_Name CHAR(50) UNIQUE,
Category CHAR(30) NOT NULL,
Price NUMERIC(8,2) CHECK (PRICE >= 0),
Stock INT CHECK (STOCK >= 0)
);

The following sequence of queries is executed on this table:

sql
1. INSERT INTO Products VALUES ('P101', 'Laptop', 'Electronics', 1200.00, 50);
2. INSERT INTO Products VALUES ('P102', 'Smartphone', 'Electronics', 800.00, 100);
3. INSERT INTO Products VALUES ('P103', 'Desk Chair', 'Furniture', 150.00, 20);

Which of the following results in an invalid operation on the table Products?

Select all that apply.

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

Correct answers

  • A
  • B

Question 15

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • C

Question 16

+3 marksOne or more correct options

Select all that apply.

  1. A

    The decomposition of R into R1 and R2 is dependency preserving.

  2. B

    The decomposition of R into R1 and R2 is lossless.

  3. C

    The schema R1 is in 3NF.

  4. D

    The schema R2 is in 2NF.

Show answer

Correct answers

  • A

    The decomposition of R into R1 and R2 is dependency preserving.

  • C

    The schema R1 is in 3NF.

  • D

    The schema R2 is in 2NF.

Question 17

+3 marksOne or more correct options

Select all that apply.

  1. A

    A bank offers more than one loan

  2. B

    An account is managed by more than one bank

  3. C

    Every loan must be availed by at least one customer

  4. D

    Every customer must be holding at least one account

Show answer

Correct answers

  • A

    A bank offers more than one loan

  • D

    Every customer must be holding at least one account

Question 18

+2 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • D

Question 19

+2 marksOne or more correct options

Consider the following table:

BookIDTitleAuthorPublisher
301Introduction to SQLDr. AndersonABC Publishers
302Data Science BasicsDr. KimXYZ Publishers
303Machine LearningDr. AndersonABC Publishers
304Data Science BasicsDr. TaylorXYZ Publishers
305Advanced SQLDr. AndersonABC Publishers

Table 2: Books

Which of the following functional dependencies hold in the Books table?

Select all that apply.

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

Correct answers

  • A
  • C
  • D

Question 20

+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: 25000
• Total number of seeks required: 500
• Number of block in the outer relation: 250
What is the number of blocks in the inner relation?

Show answer

Correct answer: 100