database design questions
DESCRIPTION
Database Design QuestionsTRANSCRIPT
-
Sample Questions
1. What does 2 PL stands for:
(a) 2 phase locking
(b) 2 phase logging
(c) 2 program locking
(d) phase locking
Ans: a)
2. In an E-R diagram attributes are represented by
(a) rectangle.
(b) square.
(c) ellipse.
(d) rhombus.
Ans: C )
3. Expand BCNF:
(a) Boyce-Codd normal form
(b) 3.5 NF
(c) Binominal-codd normal form
(d) Boyce-Code normal form
Ans: a)
4. Given the following two statements:S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNFS2 : AB ! C, D ! E, E ! C is a minimal cover for the set of functional dependenciesAB ! C, D ! E, AB ! E, E ! CWhich one of the following is CORRECT?
(a) S1 is TRUE and S2 is FALSE.
(b) S1 is FALSE and S2 is TRUE.
(c) Both S1 and S2 are FALSE.
(d) Both S1 and S2 are TRUE.
Ans: a )
5. Consider the relation schema R(A, B, C, D) with FDs: A!C. The key for R is:
(a) A
(b) B
(c) A, B
(d) A, B, C, D
Ans: a )
1
-
6. Which of the following is TRUE?
(a) Every relation in 3NF is also in BCNF
(b) Every relation in 2NF is also in 3NF
(c) No relation can be in both BCNF and 3NF
(d) Every relation in BCNF is also in 3NF
Ans: d)
7. Which data type can be used for unstructured data
(a) NUMERIC
(b) RAW
(c) CHAR
(d) VARCHAR
Ans: b)
8. Database table by name Records is given below.
Borrower Bank Manager Loan AmountRam Amit 10000.00Suresh Ramgopal 15000.00Mohan Amit 17000.00
What is the output of the following SQL query?SELECT count(*)FROM((SELECT Borrower.Bank Manager FROM Records) AS ANATURAL JOIN(SELECT Bank Manager, Loan Amount FROM Records) AS B );
(a) 1
(b) 3
(c) 5
(d) 6
Ans: c)
9. What is the name of a relationship which is maintained between two entities?
(a) Binary
(b) Ternary
(c) Unary
(d) Quaternary
Ans: a)
2