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 Entity Relationship Diagram:

Choose the correct statement(s):
Choose the correct statement(s):
Solution
Suppose we are trying to find a number 52 in a binary search tree.
Which of the following probe sequences are possible while performing the search?
Note: Each option shows a probe sequence for searching 52 in different binary search trees
Which of the following probe sequences are possible while performing the search?
Note: Each option shows a probe sequence for searching 52 in different binary search trees
Solution
Inscript
Consider the relationM(P,Q,R,S,T )with the following functional dependencies:
S→ PQ
PQR→ ST
The number of super keys ofMis:
Consider the relationM(P,Q,R,S,T )with the following functional dependencies:
S→ PQ
PQR→ ST
The number of super keys ofMis:
Solution
Inscript
Consider the following schema:

Consider the following schema:
Solution
Consider the relational schemaR(A, B, C, D, E, F, G, H), with the following functional dependencies:
D→ EF
GB→ C
G→ ABH
CDE→ F
Select the functional dependency that can be removed from the given set without altering any candidate key of this relation.
D→ EF
GB→ C
G→ ABH
CDE→ F
Select the functional dependency that can be removed from the given set without altering any candidate key of this relation.
Solution
Consider a relationG(P,Q,R,S,T), with the following functional dependencies:
T→ P
QR→ T
P→ Q
What is the highest normal form ofG?
Note: All intermediate steps/decomposition in the process of normalization must be loss-less.
T→ P
QR→ T
P→ Q
What is the highest normal form ofG?
Note: All intermediate steps/decomposition in the process of normalization must be loss-less.
Solution
Consider a relationR(A,B,C,D,E,F,G,H)with the following functional dependencies:
A→BC
B→CFH
E→A
F→EG
CH→G
NormalizeR, such that all the resulting relations are at their highest possible normal forms, now answer the question given below.
Note: All intermediate steps/decomposition in the process of normalization must be loss-less.
Select the correct option among the following:
A→BC
B→CFH
E→A
F→EG
CH→G
NormalizeR, such that all the resulting relations are at their highest possible normal forms, now answer the question given below.
Note: All intermediate steps/decomposition in the process of normalization must be loss-less.
Select the correct option among the following:
Solution
Consider a hard-disk with the following specifications:
Average Seek Time = 12ms
Average Rotational delay = 3.5 ms
One disk block unit is 4 KB
Data Rate = 256 KB/sec
What will be the total disk access time for a single block unit?
Average Seek Time = 12ms
Average Rotational delay = 3.5 ms
One disk block unit is 4 KB
Data Rate = 256 KB/sec
What will be the total disk access time for a single block unit?
Solution
Consider a relationshoe(model, price)which contains the models and prices of different shoes. If it is given that price of every shoe is different then what does the following SQL query list?

Solution
Which among the following methods ofpsycopg2is/are used to execute SQL statements?
Solution
Consider a relationR(A,B,C,D)which has no non-trivial functional dependencies. Select all the option(s) which can serve as candidate key(s) of the relationR.
Solution
Consider a relationR(A,B,C,D,E)with the following functional dependency set:
FD = {D→ B, E → A, CD → E }
If this relation is decomposed intoR1(B,C,D,E)andR2(E,A), then which of the following statement(s) is/are true?
Note: All intermediate steps/decomposition in the process of normalization must be loss less.
FD = {D→ B, E → A, CD → E }
If this relation is decomposed intoR1(B,C,D,E)andR2(E,A), then which of the following statement(s) is/are true?
Note: All intermediate steps/decomposition in the process of normalization must be loss less.
Solution
Comprehension Passage
Given a relationT(P,Q,R)with the following set of functional dependencies:
P→ QR
Q→ PR
R→ PQ
Answer the given sub-questions:
P→ QR
Q→ PR
R→ PQ
Answer the given sub-questions:
Inscript
How many functional dependencies are there in the canonical/minimal cover of the given relation?
How many functional dependencies are there in the canonical/minimal cover of the given relation?
Solution
Comprehension Passage
Given a relationT(P,Q,R)with the following set of functional dependencies:
P→ QR
Q→ PR
R→ PQ
Answer the given sub-questions:
P→ QR
Q→ PR
R→ PQ
Answer the given sub-questions:
Inscript
How many canonical/minimal cover(s) is/are possible for the given relation?
How many canonical/minimal cover(s) is/are possible for the given relation?
Solution
Inscript
Suppose LRU block replacement policy is used for managing the buffer in main memory. If the buffer has 3 block frames, then for the given block request sequence what is the total number of page faults?
1, 3, 2, 4, 2, 3, 1, 2, 4, 3, 1, 4
Note: Assume that the buffer was initially empty
Suppose LRU block replacement policy is used for managing the buffer in main memory. If the buffer has 3 block frames, then for the given block request sequence what is the total number of page faults?
1, 3, 2, 4, 2, 3, 1, 2, 4, 3, 1, 4
Note: Assume that the buffer was initially empty
Solution
Shape
Thickness [ / ]
3
All colors