Question 1
+2 marksOne or more correct optionsSelect all that apply.
- A
- B
- C
- D
The IIT Madras BS Database Management Systems (DBMS) End Term paper sat on 30 Apr 2023, in the January 2023 term, set QPD1-S2: 25 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.
Correct answers
Correct answers
45, 65, 8, 9, 15, 11, 22, 48, 95, 46, 6
45, 65, 6, 9, 15, 22, 11, 48, 95, 46, 8
45, 65, 9, 8, 15, 22, 11, 48, 95, 46, 6
45, 65, 8, 9, 15, 22, 11, 48, 95, 46, 6
Correct answers
45, 65, 8, 9, 15, 11, 22, 48, 95, 46, 6
45, 65, 8, 9, 15, 22, 11, 48, 95, 46, 6
Correct answers
The snapshot of a database at a point of time is provided below. Which of the following statements are correct with respect to the procedure followed after a system crash?
| Sl.no. | T1 | T2 | T3 |
|---|---|---|---|
| 1. | start | ||
| 2. | Read (B) | ||
| 3. | Write (B) | ||
| 4. | start | ||
| 5. | Write (C) | ||
| 6. | Commit | ||
| 7. | Start | ||
| 8. | Read (A) | ||
| 9. | Commit | ||
| 10. | System Crash | System Crash | System Crash |
Figure 3: Log records at a point of time
Transaction T1 and T2 must roll back.
Transaction T3 must be undone.
Redo transaction T1 and T2
Redo transaction T1, T2, and T3
Correct answers
Transaction T3 must be undone.
Redo transaction T1 and T2
Correct answers
Correct answers
Correct answers
It provides poor read and write performance.
It requires a large number of disks.
It provides no fault tolerance or data redundancy.
All of these.
Correct answer
It provides no fault tolerance or data redundancy.
Correct answer
Which of the following precedence graphs represents a schedule that is not conflict serializable?
Correct answer
Which of the following backup strategies provides the most comprehensive protection against data loss?
Incremental backup
Full backup
Differential backup
All of these
Correct answer
Full backup
Correct answer
Correct answer
Consider a B-tree based index with an order p = 25. Assume that each node in the B-tree is 80% full. What is the minimum number of keys that the B-tree can have?
19,880
19,800
18,000
19,999
Correct answer
19,999
Consider the table given in the figure 5 along with the record numbers indicated as REC_NO. for each record in the table.
| user_id | username | email_id | gender | age | country | created_on | |
|---|---|---|---|---|---|---|---|
| REC_NO. 1 | 3765 | Steve | steve@outlook.com | M | 34 | USA | 2000-03-19 |
| REC_NO. 2 | 4135 | Marco | marcos@ymail.com | M | 55 | Australia | 1995-10-20 |
| REC_NO. 3 | 8762 | Joshua | josh99@gmail.com | F | 49 | Canada | 2002-06-18 |
| REC_NO. 4 | 1289 | Dreamy | dreamy@rediffmail.com | F | 18 | UK | 2020-12-08 |
| REC_NO. 5 | 2359 | Jacob | jacoster@gmail.com | M | 29 | Russia | 2014-08-24 |
Figure 5: Table Users
The associated ordered index file has consecutive entries with record pointers pointing to the record numbers: 4, 5, 1, 3, 2. Identify the attribute on which the index is built.
Correct answer
Consider the table score as shown below.
| roll_no | m1 | m2 | m3 | s1 | s2 |
|---|---|---|---|---|---|
| 21f1 | 34 | 45 | 67 | 78 | 33 |
| 21f2 | 34 | 44 | 62 | 78 | 33 |
| 21f3 | 34 | 35 | 67 | 83 | 33 |
| 21f4 | 34 | 45 | 17 | 78 | 23 |
| 21f5 | 14 | 45 | 27 | 78 | 33 |
| 21f9 | 23 | 45 | 66 | 78 | NULL |
| 21f7 | 23 | 45 | 78 | NULL | NULL |
Table: Score
Match the below SQL queries with the correct output.
SQL queries:
A: SELECT count(s1) FROM score
B: SELECT count(distinct s2) FROM score
C: SELECT count(*) FROM score
D: SELECT avg(s2) FROM score
Output:
A-1, B-6, C-1, D-4
A-1, B-6, C-2, D-3
A-2, B-5, C-1, D-3
A-2, B-5, C-2, D-4
Correct answer
A-2, B-5, C-1, D-3
{40, 80}
{40}
{10, 30}
{40, 20}
Correct answer
{40}
Consider a magnetic disk with 16 platters, 2 surfaces/platter, 1024 tracks/surface, 2048 sectors/track, and 1024 bytes/sector. The disk rotates with 6000 revolutions per minute. What is the minimum number of bits required for addressing all the sectors?
Correct answer: 26
Correct answer: 4
Correct answer: 15
Consider the following schema diagram of IPLt20 and answer the given subquestions
Correct answers
Consider the following schema diagram of IPLt20 and answer the given subquestions
Consider a scenario where a match having match id 'M009' scheduled on '30-04-2023' has shifted to 'Chinnaswamy Stadium' from 'Chepauk Stadium'.
Which of the following SQL query is used to update the venue to 'Chinnaswamy Stadium'?
Correct answer
Answer the subquestions on the basis of the given data.
Consider a RAID-5 system with 5 disks which stores the following data shown in Figure 6.
| DISK - 1 | DISK - 2 | DISK - 3 | DISK - 4 | DISK - 5 | |
|---|---|---|---|---|---|
| 0101 | 0000 | 0100 | XXXX | 1110 | BLOCK A |
| 0101 | 0010 | 0101 | XXXX | 0100 | BLOCK B |
Figure 6: RAID-5 data
According to the figure disk-4 has crashed. What data is present in the two blocks of disk-4? Note: Assume block size is 4 bits
block A: 0101, block B: 0101
block A: 1110, block B: 0100
block A: 1111, block B: 0110
block A: 0001, block B: 0001
Correct answer
block A: 1111, block B: 0110
Answer the subquestions on the basis of the given data.
Consider a RAID-5 system with 5 disks which stores the following data shown in Figure 6.
| DISK - 1 | DISK - 2 | DISK - 3 | DISK - 4 | DISK - 5 | |
|---|---|---|---|---|---|
| 0101 | 0000 | 0100 | XXXX | 1110 | BLOCK A |
| 0101 | 0010 | 0101 | XXXX | 0100 | BLOCK B |
Figure 6: RAID-5 data
Assume that the binary values represent 8-bit ASCII code. What is the data word present inside this RAID-5 storage system?
Note: The ASCII value of ‘A’ is 65 and ‘a’ is 97.
POST
PORT
PART
PLUM
Correct answer
PORT