Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : DATABASE MANAGEMENT
SYSTEMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
SYSTEMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider the following relations:
Student(student_id,name,dept_id)
Department(dept_id,dept_name)
Which of the following SQL queries correctly retrieves the names of students who belong to either
or
department and whose name ends with the character
?
Student(student_id,name,dept_id)
Department(dept_id,dept_name)
Which of the following SQL queries correctly retrieves the names of students who belong to either
Solution
Consider the following relations.

Consider the following SQL query.

What will be the output of the above query?
Consider the following SQL query.
What will be the output of the above query?
Solution
Consider the relation

with functional dependencies

Which of the following statements is correct?
with functional dependencies
Which of the following statements is correct?
Solution
Consider the following schedule:

How many serial schedules are conflict-equivalent to
?
How many serial schedules are conflict-equivalent to
Solution
Consider the relational schema R(A, B, C, D, E, F), where the domains for A, B, C, D, E and F include atomic values only. If R satisfies the functional dependencies {AB → CDE, ABC → EF, E → F}, then identify the correct statement(s).
Solution
Consider the following relations:


Which of the following relational algebra expressions retrieves the values of
for tuples where
?
Which of the following relational algebra expressions retrieves the values of
Solution
Consider the following ER relationship:

Which of the following statements is correct?
Which of the following statements is correct?
Solution
Consider the relation

with functional dependency set
, comprising of the following FDs:

Which of the following functional dependencies is implied by
?
with functional dependency set
Which of the following functional dependencies is implied by
Solution
A static hash file contains 11 buckets numbered from 0 to 10. A hash function maps each search- key value
to one of these buckets.
It is observed that the records with the following search-key values are stored in the specified buckets:

Which of the following could be the hash function used by the file?
It is observed that the records with the following search-key values are stored in the specified buckets:
Which of the following could be the hash function used by the file?
Solution
Consider the following checkpoint situation:
-
was active when the checkpoint was taken and committed before the crash.
-
committed before the checkpoint.
-
started after the checkpoint and committed before the crash.
-
was active when the crash occurred.
Which of the following correctly describes the recovery action?
-
-
-
-
Which of the following correctly describes the recovery action?
Solution
Inscript
Consider an immediate database modification scheme. The initial values of the data items are

The following log records are generated. The values shown in an update record are the old value and the new value, respectively.

Transactions
,
, and
have not committed before the crash, whereas
has committed. After recovery is completed, what is the value of
?
Consider an immediate database modification scheme. The initial values of the data items are
The following log records are generated. The values shown in an update record are the old value and the new value, respectively.
Transactions
Solution
Inscript

Solution
Inscript
Consider a magnetic disk with:
- 6 platters
- 2 surfaces per platter
- 2048 tracks per surface
- 4096 sectors per track
- Capacity = 24 GB
Assume

Find the capacity of one sector in bytes.
Consider a magnetic disk with:
- 6 platters
- 2 surfaces per platter
- 2048 tracks per surface
- 4096 sectors per track
- Capacity = 24 GB
Assume
Find the capacity of one sector in bytes.
Solution
Inscript

Solution
Solution
Consider the following schedule S and answer question

Which of the following is/are correct?
Which of the following is/are correct?
Solution
Consider the following relationEmployee.

A bitmap index is constructed on the attributeTeam, with one bitmap for each distinct value of Team. The bits in each bitmap correspond to the rows of the table in the order shown above.
Which of the following statements are correct?
A bitmap index is constructed on the attributeTeam, with one bitmap for each distinct value of Team. The bits in each bitmap correspond to the rows of the table in the order shown above.
Which of the following statements are correct?
Solution
Consider the following statements.
1. In RAID 2, the Hamming code is used for parity.
2. RAID 4 has a striping unit of disk block instead of a single bit.
3. The Write performance of RAID 5 is poorer than that of RAID 6.
4. RAID 10 provides better throughput and latency than all other RAID levels except RAID 0.
1. In RAID 2, the Hamming code is used for parity.
2. RAID 4 has a striping unit of disk block instead of a single bit.
3. The Write performance of RAID 5 is poorer than that of RAID 6.
4. RAID 10 provides better throughput and latency than all other RAID levels except RAID 0.
Solution
Inscript
Consider aBlock nested loop joinfor the two relations,employeeandproject. Assuming the worst-case memory availability andemployeeas the outer relation, the provided details are as follows:
- Total number of block transfers: 18300
- Total number of seeks required: 800
- Number of blocks in the outer relation: 300
What is the number of blocks in the inner relation?
Consider aBlock nested loop joinfor the two relations,employeeandproject. Assuming the worst-case memory availability andemployeeas the outer relation, the provided details are as follows:
- Total number of block transfers: 18300
- Total number of seeks required: 800
- Number of blocks in the outer relation: 300
What is the number of blocks in the inner relation?
Solution
Inscript
Consider the following backup schedule used by a company:

If a system failure occurs on Sundaybeforethe backup for the day has been completed, what is the minimum number of backup sets that must be loaded for complete recovery?
Consider the following backup schedule used by a company:
If a system failure occurs on Sundaybeforethe backup for the day has been completed, what is the minimum number of backup sets that must be loaded for complete recovery?
Solution
Shape
Thickness [ / ]
3
All colors