पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
डेटाबेस डिज़ाइन में normalization का मुख्य लक्ष्य क्या है?
What is the primary goal of normalization in database design?
Aडेटाबेस में टेबल की संख्या घटानाTo reduce the number of tables in the database
Bडेटा का दोहराव (redundancy) घटाना और बदलाव की गड़बड़ियाँ (update anomalies) मिटानाTo reduce data redundancy and remove update anomalies
Cडेटाबेस के ढाँचे को और जटिल बनानाTo increase the complexity of the database schema
Dडेटाबेस query की रफ़्तार बढ़ानाTo improve the performance of database queries
सही उत्तर / Answer: (B)
हल / Solution
normalization रिलेशन को उसकी functional dependency के हिसाब से तोड़ती है, ताकि एक तथ्य एक ही जगह रखा जाए। इससे दोहराव घटता है और जोड़ने, बदलने तथा मिटाने की गड़बड़ियाँ ख़त्म होती हैं। ध्यान रखिए, हर तरह का दोहराव मिटता नहीं, क्योंकि foreign key का मान तो दोनों टेबल में रहता ही है। विकल्प 1 उलटा है, टेबल बढ़ती हैं। विकल्प 3 बेतुका है। और रफ़्तार लक्ष्य नहीं, join बढ़ने से वह घट भी सकती है।
Normalization splits a relation according to its functional dependencies so that one fact is stored in exactly one place. Redundancy therefore drops and the insert, update and delete anomalies disappear. Note that not every kind of repetition goes away, since a foreign key value still sits in both tables. Option 1 is backwards because the number of tables grows, option 3 is absurd, and speed is not the goal, as extra joins can even reduce it.
प्रश्न 2उत्तर + हल
एक ई-कॉमर्स डेटाबेस के रिलेशन में attribute Order_ID, Customer_ID, Product_ID और Quantity हैं। functional dependency {Order_ID, Product_ID → Customer_ID, Order_ID → Quantity} दी हैं। इनका minimal cover क्या होगा?
In an e-commerce database, consider a relation containing attributes Order_ID, Customer_ID, Product_ID, and Quantity. Given the functional dependencies {Order_ID, Product_ID → Customer_ID, Order_ID → Quantity}, what is the minimal cover for these dependencies?
पहली dependency के बाएँ पक्ष में Product_ID फ़ालतू है या नहीं, यह closure से तय होगा। अकेले Order_ID का closure {Order_ID, Quantity} है, उसमें Customer_ID नहीं मिलता, इसलिए Product_ID ज़रूरी है। अकेले Product_ID से भी कुछ नहीं निकलता। दूसरी dependency अलग बात कहती है, इसलिए वह भी हटाई नहीं जा सकती। यानी दिया हुआ समुच्चय ही minimal cover है। विकल्प 2 नई dependency जोड़ता है और विकल्प 3 बाएँ पक्ष से Product_ID गिरा देता है।
Whether Product_ID is extraneous on the left of the first dependency is settled by a closure. The closure of Order_ID alone is {Order_ID, Quantity} and does not contain Customer_ID, so Product_ID is needed, and Product_ID alone determines nothing. The second dependency states something else, so it cannot be dropped either. The given set is therefore the minimal cover. Option 2 adds a dependency that does not follow, and option 3 drops Product_ID from the left side.
प्रश्न 3उत्तर + हल
एक पुस्तकालय (library) डेटाबेस के रिलेशन में attribute Book_ID, Title, Author और Genre हैं। functional dependency {Book_ID → Title, Book_ID → Author} दी हैं। इनका minimal cover क्या होगा?
Consider a database for a library system with a relation containing attributes Book_ID, Title, Author, and Genre. Given the functional dependencies {Book_ID → Title, Book_ID → Author}, what is the minimal cover for these dependencies?
A{Book_ID → Title, Book_ID → Author}
B{Book_ID → Title, Book_ID → Author, Title → Author}
minimal cover की तीन शर्तें परखिए। दोनों पक्षों में एक-एक attribute है, तो फ़ालतू कुछ नहीं। और दोनों में से कोई हटाने पर Book_ID उस attribute तक नहीं पहुँचता। इसलिए जो दिया है वही minimal cover है। विकल्प 2 और 3 शीर्षक तथा लेखक के बीच नई dependency मान लेते हैं, जो निकलती नहीं, क्योंकि एक ही शीर्षक की किताबें अलग लेखकों की हो सकती हैं। विकल्प 4 में Book_ID छोड़ दिया गया है।
Test the three conditions of a minimal cover here. Each right side is already a single attribute, each left side is a single attribute too, so nothing is extraneous, and dropping either dependency leaves Book_ID unable to reach that attribute. So the given set is the minimal cover. Options 2 and 3 assume a new dependency between title and author, which does not follow, as two different books may share a title. Option 4 drops Book_ID.
प्रश्न 4उत्तर + हल
एक कूरियर कंपनी (shipping company) के डेटाबेस में एक रिलेशन में attribute Package_ID, Sender_Name, Receiver_Name और Destination हैं। functional dependency {Package_ID → Sender_Name, Package_ID → Receiver_Name} दी हैं। इनका minimal cover क्या होगा?
Suppose you have a database for a shipping company with a relation containing attributes Package_ID, Sender_Name, Receiver_Name, and Destination. Given the functional dependencies {Package_ID → Sender_Name, Package_ID → Receiver_Name}, what is the minimal cover for these dependencies?
दोनों dependency का बायाँ पक्ष एक ही attribute है और दायाँ पक्ष भी एक-एक, इसलिए घटाने की कोई जगह नहीं। एक को हटाइए तो Package_ID से वह नाम मिलना बंद हो जाता है, यानी closure घटता है और दोनों ज़रूरी हैं। इसलिए दिया हुआ समुच्चय ही minimal cover है। विकल्प 2 और 3 में दोनों नामों के बीच नई dependency मान ली गई है, जो दिए तथ्यों से निकलती नहीं, और विकल्प 4 में Package_ID ही छूट गया है।
Both dependencies have a single attribute on the left and a single attribute on the right, so there is nothing left to shorten. Drop either one and Package_ID stops determining that name, which shrinks the closure, so both are needed and the given set is itself the minimal cover. Options 2 and 3 assume a new dependency between the two names that does not follow from the given facts, and option 4 drops Package_ID altogether.
प्रश्न 5उत्तर + हल
functional dependency {AB → C, C → D, AD → E} का minimal cover क्या है?
What is the minimal cover for the functional dependencies {AB → C, C → D, AD → E}?
A{AB → C, C → D, AD → E}
B{AB → C, C → D, AD → E, D → E}
C{AB → C, C → D, AD → E, A → D}
D{AB → C, C → D, AD → E, A → B}
सही उत्तर / Answer: (A)
हल / Solution
तीनों dependency का दायाँ पक्ष एक attribute का है। अब बायाँ पक्ष जाँचिए। AB → C में A या B अकेला कुछ तय नहीं करता, इसलिए दोनों ज़रूरी हैं। AD → E में भी A का closure {A} और D का {D} है। कोई dependency हटाइए तो closure घट जाता है। इसलिए दिया हुआ समुच्चय minimal cover है। बाक़ी विकल्प D → E, A → D या A → B जोड़ देते हैं, जो दिए समुच्चय से निकलते ही नहीं।
Every right side here is a single attribute. Check the left sides: in AB → C neither A nor B alone determines anything, so both are needed, and in AD → E the closure of A is {A} and of D is {D}, so nothing is extraneous. Removing any dependency shrinks the closure. So the given set is already a minimal cover. The other options add D → E, A → D or A → B, none of which follows.
प्रश्न 6उत्तर + हल
डेटाबेस डिज़ाइन में functional dependency का minimal cover रखने का फ़ायदा क्या है?
What is the benefit of having a minimal cover of functional dependencies in database design?
Aइससे डेटा के बेमेल (inconsistency) होने का ख़तरा घटता हैIt reduces the risk of data inconsistency
Bइससे डेटाबेस के लिए ज़्यादा जगह चाहिए होती हैIt increases the storage space required for the database
Cइससे query चलने की रफ़्तार बढ़ जाती हैIt speeds up query processing
Dइससे रिलेशन में नई पंक्ति जोड़ना आसान हो जाता हैIt allows for easier insertion of new tuples into the relation
सही उत्तर / Answer: (A)
हल / Solution
छोटे और साफ़ dependency समुच्चय पर normalization करने से हर तथ्य अपनी एक ही जगह बैठता है। एक जगह बदलाव करने पर दूसरी जगह पुराना मान बचा नहीं रहता, इसलिए बेमेल डेटा का ख़तरा घटता है। विकल्प 2 उलटा है, क्योंकि दोहराव घटने से जगह बचती है। विकल्प 3 भी ठीक नहीं, टेबल बँटने से join बढ़ते हैं और query अक्सर धीमी पड़ती है। विकल्प 4 cover का काम नहीं, वह टेबल के ढाँचे से तय होता है।
When normalization is carried out on a small, clean dependency set, every fact sits in exactly one place. A change made in that one place leaves no stale copy behind, so the risk of inconsistent data goes down. Option 2 is backwards, since less redundancy saves space. Option 3 is not right either, because splitting tables adds joins and often slows queries down. Option 4 depends on table structure, not on the cover.
प्रश्न 7उत्तर + हल
रिलेशन R(A, B, C, D) में functional dependency {A → B, B → C, C → D} हैं। इस रिलेशन की dependency का minimal cover क्या होगा?
Consider a relation R(A, B, C, D) with functional dependencies {A → B, B → C, C → D}. What is the minimal cover of functional dependencies for this relation?
A{A → B, B → C, C → D}
B{A → B, B → C}
C{A → B, B → C, C → D, A → D}
D{A → B, B → C, C → D, D → A}
सही उत्तर / Answer: (A)
हल / Solution
तीनों dependency के दोनों पक्षों में एक-एक attribute है, इसलिए वहाँ कुछ फ़ालतू नहीं। अब हटाकर देखिए। A → B हटाने पर A का closure सिर्फ़ {A} रह जाता है, B → C हटाने पर C नहीं मिलता, और C → D हटाने पर D छूट जाता है। यानी तीनों ज़रूरी हैं। विकल्प 3 का A → D पहले से निकलता है, इसलिए अनावश्यक है, और विकल्प 4 का D → A निकलता ही नहीं।
Each given dependency has one attribute on each side, so nothing is extraneous. Now test removal: without A → B the closure of A is only {A}, without B → C we never reach C, and without C → D the attribute D is lost. All three are needed. Option 3 adds A → D, which already follows and is therefore redundant, and option 4 adds D → A, which does not follow.
प्रश्न 8उत्तर + हल
minimal cover निकालने के संदर्भ में attribute के closure समुच्चय का क्या महत्त्व है?
What is the significance of the closure set of attributes in the context of finding the minimal cover of functional dependencies?
Aयह रिलेशन के बेमतलब attribute पहचानने में मदद करता हैIt helps identify irrelevant attributes in the relation
Bयह रिलेशन की primary key का काम करता हैIt serves as the primary key of the relation
Cयह तय करने का आधार देता है कि कौन-सी functional dependency ज़रूरी हैIt provides a starting point for determining essential functional dependencies
Dयह बताता है कि रिलेशन में कुल कितने attribute हैंIt indicates the total number of attributes in the relation
सही उत्तर / Answer: (C)
हल / Solution
हर कटौती का फ़ैसला closure से होता है। कोई dependency हटाकर उसके बाएँ पक्ष का closure निकालिए; उसमें दायाँ पक्ष अब भी मिल जाए तो वह dependency ज़रूरी नहीं थी, और न मिले तो वह ज़रूरी है। बाएँ पक्ष का फ़ालतू attribute भी इसी जाँच से पकड़ा जाता है। closure न primary key तय करता है, जैसा विकल्प 2 कहता है, और न attribute गिनता है; रिलेशन के बेमतलब attribute ढूँढ़ना भी इसका काम नहीं।
Every reduction is decided by a closure. Drop a dependency, then work out the closure of its left side: if the right side still shows up, that dependency was not essential, and if it does not, the dependency has to stay. The same test catches an extraneous attribute on a left side. A closure neither fixes the primary key, as option 2 claims, nor counts attributes, and finding pointless attributes of the relation is not its job.
प्रश्न 9उत्तर + हल
minimal cover निकालते समय मुख्य उद्देश्य क्या होता है?
When finding the minimal cover of functional dependencies, what is the primary objective?
Aरिलेशन से सारी dependency हटा देनाTo remove all dependencies from the relation
Bयह पक्का करना कि हर attribute किसी दूसरे attribute को विशिष्ट रूप से तय करेTo ensure each attribute uniquely determines another attribute
Cअनावश्यक dependency हटाना, पर attribute का closure वैसा ही रखनाTo eliminate redundant dependencies while preserving the closure of attributes
Dरिलेशन में functional dependency की संख्या बढ़ानाTo increase the number of functional dependencies in the relation
सही उत्तर / Answer: (C)
हल / Solution
मक़सद दो हिस्सों का है। समुच्चय छोटा कीजिए, पर उसकी ताक़त वही रहने दीजिए। इसलिए हर कटौती के बाद closure से जाँचा जाता है कि पुरानी हर dependency अब भी निकल रही है या नहीं; निकलती रहे तो कटौती पक्की, वरना वापस। विकल्प 1 में सब हटाने की बात है, जिससे जानकारी ही ख़त्म हो जाएगी। विकल्प 2 key की शर्त जैसा लगता है, और विकल्प 4 ठीक उलटी दिशा में जाता है।
The aim has two halves: make the set smaller, but keep its power unchanged. So after every reduction a closure test checks whether each original dependency can still be derived. If it can, the reduction stands; if it cannot, the reduction is undone. Option 1 would delete the information itself, option 2 reads like a condition on keys rather than on a cover, and option 4 moves in the opposite direction.
प्रश्न 10उत्तर + हल
functional dependency के संदर्भ में अघटनीय (irreducible) का क्या अर्थ है?
In the context of functional dependencies, what does 'irreducible' mean?
Aवे dependency जिन्हें और सरल नहीं किया जा सकताDependencies that cannot be simplified further
Bवे dependency जो normalization के लिए ज़रूरी हैंDependencies that are essential for normalization
Cवे dependency जो अनावश्यक हैंDependencies that are redundant
Dवे dependency जो रिलेशन में मौजूद ही नहीं हैंDependencies that are missing in the relation
सही उत्तर / Answer: (A)
हल / Solution
अघटनीय (irreducible) समुच्चय उसे कहते हैं जिसमें कटौती की जगह बची ही न हो। दायाँ पक्ष एक-एक attribute का हो, बाएँ पक्ष में कोई फ़ालतू attribute न हो, और कोई भी dependency हटाने पर closure घट जाए। इसी वजह से minimal cover को irreducible cover भी कहा जाता है। विकल्प 3 उलटी बात है, क्योंकि अनावश्यक dependency तो हटा दी जाती हैं। विकल्प 2 और 4 परिभाषा नहीं, बस आसपास की बातें कहते हैं।
An irreducible set is one in which no reduction is left to make: every right side is a single attribute, no left side carries an extraneous attribute, and dropping any dependency would shrink the closure. This is why a minimal cover is also called an irreducible cover. Option 3 says the opposite, because redundant dependencies are the ones thrown away, while options 2 and 4 state loose remarks instead of the definition.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
minimal cover निकालते समय cover शब्द का आशय किससे है?
When finding the minimal cover of functional dependencies, what does the term 'cover' refer to?
Aरिलेशन में संभव सारी functional dependency का समुच्चयThe set of all possible functional dependencies in the relation
Bdependency का ऐसा सबसे छोटा समुच्चय जिससे रिलेशन की बाक़ी सारी dependency तार्किक रूप से निकल आएँA minimal set of functional dependencies that logically implies all other dependencies in the relation
Cरिलेशन की primary keyThe primary key of the relation
Dवह attribute समुच्चय जो बाक़ी सारे attribute तय कर देता हैThe set of attributes that determines all other attributes in the relation
एक निर्माण कंपनी (manufacturing company) के डेटाबेस में production order वाले रिलेशन में attribute Order_ID, Product_ID, Quantity और Deadline_Date हैं। functional dependency है {Order_ID, Product_ID → Quantity, Deadline_Date}। इस रिलेशन की संभावित candidate key क्या है?
In a database for a manufacturing company, consider a relation representing production orders with attributes Order_ID, Product_ID, Quantity, and Deadline_Date. The functional dependencies are {Order_ID, Product_ID → Quantity, Deadline_Date}. What is a potential candidate key for this relation?
एक ऑनलाइन नीलामी (online auction) डेटाबेस के रिलेशन में attribute Auction_ID, Item_ID, Bidder_ID और Bid_Amount हैं। functional dependency है {Auction_ID, Item_ID → Bidder_ID, Bid_Amount}। इस रिलेशन की candidate key क्या हो सकती है?
Consider a database for an online auction platform with a relation containing attributes Auction_ID, Item_ID, Bidder_ID, and Bid_Amount. The functional dependencies are {Auction_ID, Item_ID → Bidder_ID, Bid_Amount}. What could be a candidate key for this relation?
एक होटल प्रबंधन (hotel management) डेटाबेस के रिलेशन में attribute Reservation_ID, Guest_ID, Room_Number और Check-in_Date हैं। functional dependency है {Reservation_ID → Guest_ID, Room_Number, Check-in_Date}। इस रिलेशन की candidate key क्या हो सकती है?
Consider a database for a hotel management system with a relation containing attributes Reservation_ID, Guest_ID, Room_Number, and Check-in_Date. The functional dependencies are {Reservation_ID → Guest_ID, Room_Number, Check-in_Date}. What could be a candidate key for this relation?
एक सोशल नेटवर्किंग (social networking) डेटाबेस के रिलेशन में attribute User_ID, Post_ID, Content और Timestamp हैं। functional dependency है {User_ID, Post_ID → Content, Timestamp}। इस रिलेशन की संभावित candidate key क्या है?
Suppose you have a database for a social networking platform with a relation containing attributes User_ID, Post_ID, Content, and Timestamp. The functional dependencies are {User_ID, Post_ID → Content, Timestamp}. What is a potential candidate key for this relation?
किसी कर्मचारी प्रबंधन डेटाबेस में कर्मचारी का रिकॉर्ड Employee_ID, Name, Department और Manager_ID एट्रिब्यूट में रखा जाता है। यदि functional dependency {Employee_ID → Name, Name → Department} हों, तो इस रिलेशन की candidate key क्या होगी?
Consider an employee management database system where a relation stores employee records with attributes Employee_ID, Name, Department, and Manager_ID. If the functional dependencies are {Employee_ID → Name, Name → Department}, what is a candidate key for the employee relation?
किसी अस्पताल के डेटाबेस में मरीज़ का विवरण Patient_ID, Name, Date_of_Birth और Insurance_ID एट्रिब्यूट में रखा जाता है। यदि functional dependency {Patient_ID → Name, Name → Date_of_Birth} हों, तो इस रिलेशन की candidate key क्या होगी?
Consider a hospital database system where a relation stores patient details with attributes Patient_ID, Name, Date_of_Birth, and Insurance_ID. If the functional dependencies are {Patient_ID → Name, Name → Date_of_Birth}, what is a candidate key for the patient relation?
किसी विश्वविद्यालय के डेटाबेस में छात्र का रिकॉर्ड Student_ID, Name, Email और Phone_Number एट्रिब्यूट में रखा जाता है। यदि functional dependency {Student_ID → Name, Name → Email, Email → Phone_Number} हों, तो इस रिलेशन की candidate key क्या होगी?
In a university database system, a relation stores student records with attributes Student_ID, Name, Email, and Phone_Number. If the functional dependencies are {Student_ID → Name, Name → Email, Email → Phone_Number}, what is a candidate key for the student relation?
रिलेशन R(A, B, C, D, E) में functional dependency {AB → C, C → D, D → AE} हैं। इनमें से कौन-सा समूह इस रिलेशन की candidate key है?
Given a relation R(A, B, C, D, E) with functional dependencies {AB → C, C → D, D → AE}. Which of the following sets of attributes is a candidate key for relation R?