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 a B-tree index to be built on the attributeEmployeeIDof a tableEmployees, with the following properties:
- The length of the attribute EmployeeID is 16 bytes.
- The size of each child pointer is 8 bytes.
- The size of each record pointer is 8 bytes.
- The size of each disk block is 488 bytes.
With the given information, what is the best choice for the order of the non-leaf nodes of the B- tree?
- The length of the attribute EmployeeID is 16 bytes.
- The size of each child pointer is 8 bytes.
- The size of each record pointer is 8 bytes.
- The size of each disk block is 488 bytes.
With the given information, what is the best choice for the order of the non-leaf nodes of the B- tree?
Solution
Consider the tableBandRecordsas given below:

Let us create two different bitmap indices, one on theTourattribute and the other on theGenre attribute. Which of the following options will give the correct result if we want to find all bands performing in'RetroLive'and having the genre'Rock'?
Note: Options are in the form ofTour (operation) Genre
Let us create two different bitmap indices, one on theTourattribute and the other on theGenre attribute. Which of the following options will give the correct result if we want to find all bands performing in'RetroLive'and having the genre'Rock'?
Note: Options are in the form ofTour (operation) Genre
Solution
Consider the relational schemasStudent,CourseandEnrolled:

Now consider the following SQL query:

The query returns:
Now consider the following SQL query:
The query returns:
Solution
Consider the hash functions given below.
-
-
-
-
Identify the hash function(s) that can generate unique hash values for the following search key values:
.
-
-
-
-
Identify the hash function(s) that can generate unique hash values for the following search key values:
Solution
Consider the definition of the tableProducts:

The following sequence of queries is executed on this table:

Which of the following results in an invalid operation on the tableProducts?
The following sequence of queries is executed on this table:
Which of the following results in an invalid operation on the tableProducts?
Solution
Schedule S is as given:

Which of the following options is/are correct?
Which of the following options is/are correct?
Solution
Consider a relation schemaT(A,B,C,D,E,F) and the set of functional dependencies,
F= {A→ BC, C → D, D → C, B → E, E → F}.
This schema is decomposed into two relationsT1(A,B,C,E) andT2(A,C,D,F).
Consider the following statements given below regarding the decomposition ofT1andT2. Choose the correct option(s).
F= {A→ BC, C → D, D → C, B → E, E → F}.
This schema is decomposed into two relationsT1(A,B,C,E) andT2(A,C,D,F).
Consider the following statements given below regarding the decomposition ofT1andT2. Choose the correct option(s).
Solution
Consider the following monthly backup schedule used by a company:

If a failure occurs on the 24th day of the month after the backup for the day has been completed, how many backup sets have to be loaded for a full recovery?
If a failure occurs on the 24th day of the month after the backup for the day has been completed, how many backup sets have to be loaded for a full recovery?
Solution
Consider the instance of a relationV. Which among the following functional dependency set(s) can be inferred from the given information?

Solution
Consider the following relational schema:

Choose the correct SQL query to find the names of departments where the total marks of students is greater than the total marks in any department where the average marks is less than 60.
Choose the correct SQL query to find the names of departments where the total marks of students is greater than the total marks in any department where the average marks is less than 60.
Solution
Choose the relational algebra expression that is equivalent to the following tuple calculus expression:

Solution
Consider a B+ tree index built on the key attribute of a data file having 62,50,000 records. Let the order of the B+ tree be 50.
Find out the maximum number of nodes to be accessed to search a key from the given B+ tree.
Find out the maximum number of nodes to be accessed to search a key from the given B+ tree.
Solution
Choose the correct statement(s).
Solution
Consider the ER Diagram as shown below:

Which of the following statement(s) is/are correct?
Which of the following statement(s) is/are correct?
Solution
Inscript
Consider the given log records at an instance of time:

Suppose there is a system crash after the last log record. What will be the value of the expression (B-A)+(C-D), based on the values stored on the disk at that point?
Consider the given log records at an instance of time:
Suppose there is a system crash after the last log record. What will be the value of the expression (B-A)+(C-D), based on the values stored on the disk at that point?
Solution
Inscript
Consider you have a file in your hard disk of size 900 KB. Seek time of your hard disk read head is 5 ms and rotational speed is 30,000 rpm. The disk has 250 sectors per track and 512 bytes per sector. Considering the fact that the file data is stored in consecutive sectors, how much time will be required to read the whole file after a read request is made? (answer in milliseconds and calculate upto one decimal place)
Consider you have a file in your hard disk of size 900 KB. Seek time of your hard disk read head is 5 ms and rotational speed is 30,000 rpm. The disk has 250 sectors per track and 512 bytes per sector. Considering the fact that the file data is stored in consecutive sectors, how much time will be required to read the whole file after a read request is made? (answer in milliseconds and calculate upto one decimal place)
Solution
Inscript
Consider a system using the Most Recently Used (MRU) page replacement policy. The system has a main memory buffer with 3 slots, and the page reference sequence is as follows:
2, 1, 3, 2, 4, 2, 1, 5, 2, 1, 4
Calculate the total number of page hits during this sequence.
Consider a system using the Most Recently Used (MRU) page replacement policy. The system has a main memory buffer with 3 slots, and the page reference sequence is as follows:
2, 1, 3, 2, 4, 2, 1, 5, 2, 1, 4
Calculate the total number of page hits during this sequence.
Solution
Inscript
Consider the following schedule S with five transactions T1, T2, T3, T4, T5:

Where,Ri(X)denotes a read operation by transaction Ti on a data item X, andWi(X)denotes a write operation by transaction Ti on a data item X.
What is the possible number of conflict serializable schedules of the above schedule S?
Consider the following schedule S with five transactions T1, T2, T3, T4, T5:
Where,Ri(X)denotes a read operation by transaction Ti on a data item X, andWi(X)denotes a write operation by transaction Ti on a data item X.
What is the possible number of conflict serializable schedules of the above schedule S?
Solution
Inscript
Consider the relationR(A, B, C, D, E, F) and the following functional dependencies set
F= {AB→ C, C → D, D → E, E → F}
Find the total number of super keys ofR.
Consider the relationR(A, B, C, D, E, F) and the following functional dependencies set
F= {AB→ C, C → D, D → E, E → F}
Find the total number of super keys ofR.
Solution
Inscript
Consider ablock nested-loop joinfor the two relationsstudentsandenrollments:

Assuming the worst-case memory availability and consideringstudentsas the outer relation, what is the total number of block transfers required?
Consider ablock nested-loop joinfor the two relationsstudentsandenrollments:
Assuming the worst-case memory availability and consideringstudentsas the outer relation, what is the total number of block transfers required?
Solution
Shape
Thickness [ / ]
3
All colors