NPTEL Data Base Management System Week 4 Assignment Answers 2024 (July-October)

 NPTEL Week 4 Assignment Solutions provides the solutions for Week 4 of the NPTEL course. Each question has been carefully analyzed, and the...

 NPTEL Week 4 Assignment Solutions

provides the solutions for Week 4 of the NPTEL course. Each question has been carefully analyzed, and the correct answer is selected along with a detailed explanation for each. The topics covered include functional dependencies, normalization forms, candidate keys, canonical covers, and decomposition of relations.

Question 1: Find the functional dependencies that stand valid on the part of the relation shown below:

RPQ
A1C
B2C
A1C
B2C

Options: a) PQ,PRP \rightarrow Q, P \rightarrow R
b) QP,RPQ \rightarrow P, R \rightarrow P
c) PR,RP,PRP \rightarrow R, R \rightarrow P, P \rightarrow R
d) PQ,RP,RPP \rightarrow Q, R \rightarrow P, R \rightarrow P

Answer: a) PQ,PRP \rightarrow Q, P \rightarrow R

Explanation: From the table, it's clear that for each unique value of PP, the values of QQ and RR are consistent. This means that PP can determine QQ and RR, so the functional dependency PQ,PRP \rightarrow Q, P \rightarrow R is valid.


Question 2: Consider the relation Email(Gender, Receiver, Date, Time, Subject) with the following functional dependencies:

  • FD1: (Receiver, Date)Time\text{(Receiver, Date)} \rightarrow \text{Time}
  • FD2: (Receiver, Date)Subject\text{(Receiver, Date)} \rightarrow \text{Subject}
  • FD3: ReceiverSubject\text{Receiver} \rightarrow \text{Subject}

What is the highest normal form for the given relation?

Options: a) 1 NF
b) 2 NF
c) 3 NF
d) BCNF

Answer: b) 2 NF

Explanation: The relation is in 2NF because it does not have any partial dependencies (a non-prime attribute is not dependent on a part of a candidate key). However, since there is a transitive dependency (Receiver → Subject), it is not in 3NF or BCNF.


Question 3: Consider the relation Office(OID, Emp, Branch, Dept) with the following functional dependencies:

  • FD1: (OID,Emp)Branch(\text{OID}, \text{Emp}) \rightarrow \text{Branch}
  • FD2: BranchDept\text{Branch} \rightarrow \text{Dept}
  • FD3: DeptOID\text{Dept} \rightarrow \text{OID}

How many candidate keys are there for the given relation?

Options: a) 1
b) 2
c) 3
d) 4

Answer: c) 3

Explanation: The candidate keys for the relation can be determined by examining the dependencies and possible keys. The keys that satisfy all functional dependencies are combinations of attributes that can uniquely identify a tuple in the relation.


Question 4: Consider the relation TICKET(PNR, DEPARTURE, ARRIVAL, SEATNO, COACHNO) with the following functional dependencies:

  • FD1: (PNR,DEPARTURE)ARRIVAL(\text{PNR}, \text{DEPARTURE}) \rightarrow \text{ARRIVAL}
  • FD2: ARRIVALSEATNO\text{ARRIVAL} \rightarrow \text{SEATNO}
  • FD3: (DEPARTURE,SEATNO)COACHNO(\text{DEPARTURE}, \text{SEATNO}) \rightarrow \text{COACHNO}

Which of the following attributes cannot functionally determine COACHNO?

Options: a) ARRIVAL
b) (PNR,DEPARTURE)(\text{PNR}, \text{DEPARTURE})
c) (PNR,DEPARTURE,ARRIVAL)(\text{PNR}, \text{DEPARTURE}, \text{ARRIVAL})
d) (DEPARTURE,ARRIVAL)(\text{DEPARTURE}, \text{ARRIVAL})

Answer: a) ARRIVAL

Explanation: According to the given functional dependencies, ARRIVAL alone does not have any direct influence on COACHNO. Therefore, ARRIVAL cannot functionally determine COACHNO.


Question 5: Find the canonical cover of Relation R={A, B, C} where P={A→BC, B→C, A→B, AB→C}?

Options: a) ABCA \rightarrow BC
b) AB,BCA \rightarrow B, B \rightarrow C
c) AB,ABCA \rightarrow B, AB \rightarrow C
d) AB,ABCA \rightarrow B, AB \rightarrow C

Answer: b) AB,BCA \rightarrow B, B \rightarrow C

Explanation: The canonical cover is a minimal set of functional dependencies that preserves the closure of the original set. In this case, the minimal set is ABA \rightarrow B and BCB \rightarrow C.


Question 6: Consider the following relational table FRUIT_STORE:

F-IDE-NameCategoryPriceOwner
1281AppleUttar Pradesh100W. Hauna
1282MangoUttar Pradesh150C. Buck
1283MangoWest Bengal150K. Bhardwaj
1284BananaTamil Nadu50O. Kozmkov

If (F-Name, Owner) is a key for this instance, what may be the value of X?

Options: a) W. Hauna
b) C. Buck
c) W. Hauna or K. Bhardwaj
d) O. Kozmkov

Answer: c) W. Hauna or K. Bhardwaj

Explanation: Given that (F-Name, Owner) is a key, there could be multiple valid combinations of F-Name and Owner. The only options that match the provided data are W. Hauna and K. Bhardwaj, who own Apple and Mango, respectively.


Question 7: Consider a relation Customer(CID, NAME, ADDRESS) with the following functional dependencies:

  • FD1: CIDNAME\text{CID} \rightarrow \text{NAME}
  • FD2: NAMEADDRESS\text{NAME} \rightarrow \text{ADDRESS}

The current instance of the schema contains the tuple (121, Lucy, Delhi). Which of the following tuples can be inserted?

Options: a) (256, Tom, Kolkata)
b) (137, Lucy, Delhi)
c) (233, Lucy, Mumbai)
d) (121, Jenny, Kolkata)

Answer: a) (256, Tom, Kolkata)

Explanation: To maintain the functional dependencies, the tuple with CID 121 must have the same NAME and ADDRESS. Therefore, the tuple with different NAME and ADDRESS can only be inserted if CID is different.


Question 8: The relation R(A, B, C, D, E, F, G) with the functional dependencies: {A → B, A → C, AE → D, BE → C, D → G} is normalized into BCNF. Which of the following decomposition is obtained as a result of this normalization?

Options: a) R(A, B, E, F), R(C, D, G)
b) R(A, C, D), R(A, E, D, F)
c) R(A, B, C, E), R(A, C, D, G)
d) None of the above\text{None of the above}

Answer: b) R(A, C, D), R(A, E, D, F)

Explanation: The BCNF decomposition will ensure that all resulting relations have candidate keys as their sole determinants. The provided functional dependencies indicate that the second option aligns with the correct decomposition.


Question 9: Consider a relation STUDENT(Name, Subject, Location, Marks).

NameSubjectLocationMarks
JohnCompNY96
JohnDBMSNY100

STUDENT is decomposed into the following:

  1. STUD1(Name, Subject, Location) and STUD2(Name, Subject, Marks)
  2. STUD1(Name, Location) and STUD2(Subject, Marks)

Which of the following is TRUE?

Options: a) 1 is lossless but 2 lossy.
b) 1 is lossy but 2 lossless.
c) Both 1 and 2 are lossless.
d) Both 1 and 2 are lossy.

Answer: a) 1 is lossless but 2 lossy.

Explanation: The decomposition 1 maintains the original relation by preserving the information, making it lossless. The second decomposition loses information about the relationship between the Name and Subject attributes, making it lossy.


Question 10: Consider the relation DVDLibrary(Name, Company, Format, Price) with the following functional dependencies:

  • FD1: (Name, Company)(Format, Price)\text{(Name, Company)} \rightarrow (\text{Format, Price})
  • FD2: CompanyFormat\text{Company} \rightarrow \text{Format}
  • FD3: FormatPrice\text{Format} \rightarrow \text{Price}

Which of the following statements is (are) true?

Options: a) The primary key for DVDLibrary is Company.
b) DVDLibrary is in 2NF.
c) Decomposition of DVDLibrary into DVDLibrary1(Name, Company, Format), DVDLibrary2(Company, Price) will be dependency-preserving.
d) Decomposition of DVDLibrary into DVDLibrary1(Name, Company, Format), DVDLibrary2(Company, Price) will be lossless.

Answer: b) DVDLibrary is in 2NF.

Explanation: The relation DVDLibrary is in 2NF because there are no partial dependencies with respect to any candidate key.


These answers cover the questions from Week 4 Assignment with a detailed explanation of each solution, ensuring clarity in understanding.

COMMENTS

Name

1sem,1,1st Sem,33,1st year,2,2 sem,1,2nd Sem,29,2sem,1,3rd Sem,40,4th sem,9,5th sem,28,6th sem,19,7th sem,8,8th sem,6,About BEU,1,ABOUT MAKAUT,1,aku civil Notes,15,Aku EE/EC Notes,14,aku ME Notes,14,aku notes,45,aku papers,11,aku syllabus,6,All Branch,2,all semester,19,B pharm,1,BAU Question Papers,1,BCA Notes,1,BEU Collage,12,BEU Model Paper Question,3,BEU Notes,10,BEU Organizer,31,BEU Previous Year Questions,2,Beu pyq,4,BEU PYQ Ans,5,BEU syllabus,8,Blogs,1,Btech results,1,Civil Branch,2,Civil Engineering,8,CS Engineering,8,CSE Branch,1,CSE Notes,19,Developing Soft Skills And Personality,13,EC Engineering,10,EE Branch,2,EE Engineering,9,engineering chemistry,5,Gate,1,internship,3,Introduction To Internet Of Things,21,Introduction To Machine Learning,2,iot,1,MAKAUT CE Organizer,6,MAKAUT CSE Organizer,5,MAKAUT ECE Organizer,3,MAKAUT EE Organizer,2,MAKAUT ME Organizer,4,MAKAUT Notes,5,MAKAUT Organizer,8,MAKAUT Question Paper,1,MAKAUT Syllabus,1,make money,6,ME Engineering,19,NPTEL,92,NPTEL COURSE,91,Programming Tutorial,12,Public Speaking,22,PYQ Solution,4,Question Bank,19,Soft Skills,33,Traffic & SEO,9,week 1,7,week 10,3,week 11,3,week 12,3,week 2,10,week 3,6,week 4,7,week 5,5,week 6,4,week 7,4,week 8,4,week 9,3,WEEK1,4,WEEK10,3,WEEK11,3,WEEK12,3,WEEK2,5,WEEK3,6,WEEK4,6,WEEK5,5,WEEK6,3,WEEK7,4,WEEK9,1,ztest,6,
ltr
item
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions: NPTEL Data Base Management System Week 4 Assignment Answers 2024 (July-October)
NPTEL Data Base Management System Week 4 Assignment Answers 2024 (July-October)
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions
https://www.beubihar.org.in/2024/08/nptel-data-base-management-system-week_20.html
https://www.beubihar.org.in/
https://www.beubihar.org.in/
https://www.beubihar.org.in/2024/08/nptel-data-base-management-system-week_20.html
true
8161375692651428750
UTF-8
Loaded All Posts Not found any posts VIEW ALL Read More Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content
×