All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 04 · MOCK TEST

Mock 7 – Functional Dependencies & Normalisation (Part 2)

Unit 4: Database Management Systems · 15 questions · about 18 minutes. Press End Mock any time to see your score and the correct answers.

All 11 topic-wise mocks in this unit
0 / 15 answered 00:00
Q1. Which metrics are derived by normalizing quality and/or productivity measures by considering the size of the software that has been produced?
Q2. A company has a choice of two languages L1 and L2 to develop a software for their client. Number of LOC required to develop an application in L2 is thrice the LOC in language L1. Also, software has to be maintained for the next 10 years. Various parameters for two languages are given below to decide which language should be preferred for development.
ParameterL1L2
Man-year needed for developmentLOC/1000LOC/1000
Development costRs. 70,000Rs. 90,000
Cost of maintenance per yearRs. 1,00,000Rs. 40,000
Total cost of the project includes the cost of development and maintenance. What is the LOC for L1 for which cost of developing the software with both languages must be the same?
Q3.

In a relational database, which one of the following is CORRECT:

Q4.

Arrange the following phases of database design in the correct order :

(A) Physical Design

(B) Conceptual Design

(C) Logical Design

(D) Requirement Analysis

Q5.

Let R(A, B, C, D) be a relational schema with dependencies A → B, B → C, C → D and D → B. The decomposition of R into (A, B), (B, C), (B, D):

Q6.

Consider the relation Student(stuid, dept, clsroll) with FDs: FD1: stuid → dept, FD2: dept → stuid, FD3: stuid → clsroll, FD4: clsroll → stuid, FD5: dept → clsroll. Which FDs can be removed to obtain a canonical cover? A. FD2 and FD3 B. FD1 and FD5 C. FD5 D. FD1

Q7.

Let R(ABCDEFGH) be a relation schema and F = {A → B, ABCD → E, EF → G, EF → H, ACDF → EG}. The minimal cover of this set of dependencies is

Q8.

Match List I with List II. List I: A. BCNF, B. 3NF, C. 2NF, D. 4NF. List II: I. Removes multivalued dependency, II. Not always dependency preserving, III. Removes transitive dependency, IV. Removes partial functional dependency.

Q9.

Given R(x, y, z, w) with F = {x → y, z → w}, where all attributes are atomic: A. R is in First Normal Form. B. R is in Second Normal Form. C. The primary key of R is xz.

Directions (Q96–100): An organization maintains a database with five attributes A, B, C, D, E. Consider the universal relation R(A, B, C, D, E) with functional dependency set F = {A → BC, D → E, BC → D, A → D}. All attributes are simple and atomic.

Q10.

Minimal cover of functional F dependency set is

Directions (Q96–100): An organization maintains a database with five attributes A, B, C, D, E. Consider the universal relation R(A, B, C, D, E) with functional dependency set F = {A → BC, D → E, BC → D, A → D}. All attributes are simple and atomic.

Q11.

Identify the normal form in which relation R belong to

Directions (Q96–100): An organization maintains a database with five attributes A, B, C, D, E. Consider the universal relation R(A, B, C, D, E) with functional dependency set F = {A → BC, D → E, BC → D, A → D}. All attributes are simple and atomic.

Q12.

Identify the redundant functional dependency in F

Directions (Q96–100): An organization maintains a database with five attributes A, B, C, D, E. Consider the universal relation R(A, B, C, D, E) with functional dependency set F = {A → BC, D → E, BC → D, A → D}. All attributes are simple and atomic.

Q13.

Assume that given table R is decomposed in two tables R (A, B, C) 1 with functional dependency set f = {A → B, A → C} 1 and R (A, D, E) FD 2 with set F = {A → D, D → E} 2 . Which of the following option is true w.r.t. given decomposition?

Q14.

In relational databases, if relation is in , then which of the following is true about relation R ?

Q15.

For a database relation R(a, b, c, d) where the domains of a, b, c and d include only atomic values, and only the following functional dependencies and those that can be inferred from them hold :

a → c

b → d The relation is in _________.