पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
किसी table में primary key unique होनी चाहिए ताकि वह हर row की पहचान कर सके। निम्नलिखित में से कौन-सी constraint (बाधा) इस शर्त को दर्शाती है?
Within a table, the primary key must be unique so that it will identify each row. Which of the following constraints exhibits the above criterion?
Aरेफ़रेंशियल इंटीग्रिटीReferential integrity
Bएंटिटी इंटीग्रिटीEntity integrity
Cएनफ़ोर्स्ड इंटीग्रिटीEnforced integrity
Dडोमेन इंटीग्रिटीDomain integrity
सही उत्तर / Answer: (B)
हल / Solution
Primary key का unique और NOT NULL होना entity integrity कहलाता है। इससे हर row की अलग पहचान पक्की रहती है। Referential integrity foreign key और primary key के मेल की जाँच करती है, एक table के अंदर पहचान की नहीं। Domain integrity देखती है कि हर column में उसके domain के सही मान ही आएँ, जैसे उम्र में अक्षर न हों। Enforced integrity कोई मानक प्रकार नहीं है।
A primary key being unique and NOT NULL is called entity integrity. It keeps the identity of every row certain. Referential integrity checks that foreign keys match primary keys, not identity within one table. Domain integrity checks that each column only holds valid values from its domain, such as no letters in an age column. Enforced integrity is not a standard type. So entity integrity is the constraint described.
प्रश्न 2उत्तर + हल
एक foreign key को:
A foreign key must:
Aन्यूमेरिक होना चाहिएBe numeric
Bयूनिक होना चाहिएBe unique
Cdatabase की सभी tables में परिभाषित होना चाहिएBe defined in all tables within the database
Dसंबंधित table की primary key के field मान से मेल खाना चाहिएMatch the field value of a primary key in a related table
सही उत्तर / Answer: (D)
हल / Solution
Foreign key का काम दूसरी table से जुड़ना है, इसलिए उसका हर मान संबंधित table की किसी primary key के मान से मेल खाना चाहिए। यही referential integrity है। Foreign key का numeric होना ज़रूरी नहीं, वह text भी हो सकती है। वह unique भी नहीं होती, जैसे कई orders में एक ही Customer_ID। उसे हर table में रखना भी ज़रूरी नहीं, वह सिर्फ़ जुड़ने वाली tables में होती है।
A foreign key exists to link to another table, so each of its values must match a primary key value in the related table. This is referential integrity. A foreign key need not be numeric; it can be text. It is not unique either, since many orders can share one Customer_ID. It also need not be defined in every table, only in the tables that are linked. So option 4 is correct.
प्रश्न 3उत्तर + हल
जिस relation में कोई partial dependency (आंशिक निर्भरता) नहीं है, वह ___________ normal form में होता है।
A relation that has no partial dependencies is in ___________ normal form.
Aपहले (First)First
Bदूसरे (Second)Second
Cतीसरे (Third)Third
Dचौथे (Fourth)Fourth
सही उत्तर / Answer: (B)
हल / Solution
Partial dependency तब होती है जब कोई non-key attribute composite primary key के सिर्फ़ एक हिस्से पर निर्भर हो। जैसे key (StudentID, CourseID) हो और CourseID → TeacherName। 1NF में रहते हुए यह निर्भरता हटा दी जाए, तो relation 2NF में आ जाता है। 1NF सिर्फ़ atomic मान माँगता है। 3NF में transitive dependency भी हटानी पड़ती है। 4NF multivalued dependency से जुड़ा है।
A partial dependency exists when a non-key attribute depends on only part of a composite primary key. For example, with key (StudentID, CourseID), the dependency CourseID → TeacherName is partial. When a 1NF relation has no such dependency, it is in 2NF. 1NF only asks for atomic values. 3NF also removes transitive dependencies. 4NF deals with multivalued dependencies, so the answer is the second normal form.
प्रश्न 4उत्तर + हल
यह key हर record की अलग पहचान करती है-
This key uniquely identifies each record-
Aयूनिक कीunique key
Bकी रिकॉर्डkey record
Cफ़ील्ड का नामfield name
Dप्राइमरी कीprimary key
सही उत्तर / Answer: (D)
हल / Solution
Primary key हर record की पक्की पहचान है। इसके मान unique होते हैं और NULL नहीं हो सकते, इसलिए हर row इससे अलग पहचानी जाती है। Unique key भी duplicate रोकती है, पर उसमें NULL की छूट होती है। इसलिए उससे हर record की पहचान पक्की नहीं होती। Key record कोई मानक शब्द नहीं है। Field name सिर्फ़ column का नाम है, वह किसी record को नहीं पहचानता।
The primary key is the firm identifier of every record. Its values are unique and cannot be NULL, so each row can be told apart by it. A unique key also blocks duplicates, but it allows NULL, so it does not guarantee that every record is identified. Key record is not a standard term. A field name is just the name of a column and does not identify any record.
प्रश्न 5उत्तर + हल
A_____________ database के किसी relation का वह attribute है जो उसी database के किसी दूसरे relation की primary key का काम करता है।
A_____________ is an attribute in a relation of a database that serves as the primary key of another relation in the same database.
Aकम्पोज़िट कीComposite Key
Bफ़ॉरेन कीForeign Key
Cप्राइमरी कीPrimary Key
Dयूनिक कीUnique Key
सही उत्तर / Answer: (B)
हल / Solution
जो attribute एक relation में रखा हो पर किसी दूसरे relation की primary key हो, वह foreign key है। जैसे Result table का Student_ID, Student table की primary key है। इसी से दोनों tables जुड़ती हैं। Composite key कई attributes से बनी key है। Primary key अपनी ही table की rows पहचानती है, दूसरी की नहीं। Unique key सिर्फ़ duplicate मान रोकती है, किसी दूसरी table से नहीं जुड़ती।
An attribute that sits in one relation but is the primary key of another relation is a foreign key. For example, Student_ID in the Result table is the primary key of the Student table, and this links the two tables. A composite key is a key made of several attributes. A primary key identifies rows of its own table, not another's. A unique key only prevents duplicates and does not link tables.
प्रश्न 6उत्तर + हल
किस database संरचना में दो या अधिक संबंधित tables का समूह होता है, जिनके बीच कम से कम एक साझा field होता है?
Which database structure consists of a set of two or more related tables with a minimum of one shared field between them?
Aहायरार्किकल (पदानुक्रमित)Hierarchical
Bनेटवर्कNetwork
Cऑब्जेक्ट-ओरिएंटेडObject-oriented
DरिलेशनलRelational
सही उत्तर / Answer: (D)
हल / Solution
Relational database में data कई tables में बँटा रहता है। ये tables किसी साझा field से जुड़ती हैं, जैसे Student और Marks दोनों में StudentID। यही साझा field joins को संभव बनाती है। Hierarchical मॉडल में data पेड़ जैसी parent-child संरचना में होता है। Network मॉडल में records graph की तरह pointers से जुड़े होते हैं। Object-oriented मॉडल objects और classes पर टिका है, tables पर नहीं।
In a relational database, data is split across several tables. These tables are linked through a shared field, for example StudentID in both Student and Marks. This shared field is what makes joins possible. The hierarchical model keeps data in a tree-like parent-child structure. In the network model, records are linked by pointers like a graph. The object-oriented model is built on objects and classes, not tables.
प्रश्न 7उत्तर + हल
referential integrity (संदर्भात्मक अखंडता) नियम के अनुसार ज़रूरी है कि ________
The referential integrity rule requires that ________
Aहर null foreign key मान किसी मौजूद primary key मान को refer करेEvery null foreign key value must reference an existing primary key value
Bकिसी attribute का एक संगत मान होAn attribute have a corresponding value
Cआपने एक table की वह row मिटाई जिसकी primary key का दूसरी table में कोई मिलता foreign key मान नहीं हैYou deleted a row in one table whose primary key does not have a matching foreign key value in another table
Dहर non-null foreign key मान किसी मौजूद primary key मान को refer करेEvery non-null foreign key value reference an existing primary key value
सही उत्तर / Answer: (D)
हल / Solution
Referential integrity नियम कहता है कि foreign key में जो भी असली मान लिखा है, वह दूसरी table की किसी मौजूद primary key से मेल खाना चाहिए। NULL का मतलब है कि अभी कोई जुड़ाव नहीं है, इसलिए NULL को refer करने की ज़रूरत नहीं। इसी वजह से पहला विकल्प ग़लत है। दूसरा विकल्प अधूरी और गोल-मोल बात है। तीसरा विकल्प एक delete की घटना बताता है, नियम नहीं।
The referential integrity rule says that every actual value stored in a foreign key must match an existing primary key value in the other table. NULL means there is no link yet, so a NULL does not need to refer to anything. That is why option 1 is wrong. Option 2 is vague and incomplete. Option 3 describes a delete event, not a rule. So option 4 states the rule correctly.
प्रश्न 8उत्तर + हल
………… attributes का एक समूह है जिसका उपयोग किसी एक entity instance की पहचान के लिए किया जाता है।
………… is a group of attributes used to identify a single entity instance.
Aकैंडिडेट कीCandidate key
Bकॉन्कैटिनेटेड की (संयोजित कुंजी)Concatenated key
Cऑल्टरनेट कीAlternate key
Dप्राइमरी कीPrimary key
सही उत्तर / Answer: (B)
हल / Solution
जब अकेला कोई attribute पहचान के लिए काफ़ी न हो, तो कई attributes को जोड़कर key बनाई जाती है। ऐसी key को concatenated key या composite key कहते हैं। जैसे Student_ID और Course_ID मिलकर एक enrolment की पहचान करते हैं। Candidate key और primary key एक attribute की भी हो सकती हैं, इसलिए 'समूह' उनकी पहचान नहीं है। Alternate key वह candidate key है जो primary key नहीं चुनी गई।
When no single attribute is enough to identify an instance, several attributes are joined to form the key. Such a key is called a concatenated key or composite key. For example, Student_ID and Course_ID together identify one enrolment. Candidate keys and primary keys can be a single attribute, so being a group is not what defines them. An alternate key is a candidate key that was not chosen as primary.
प्रश्न 9उत्तर + हल
दो या अधिक non-key (गैर-कुंजी) attributes के बीच की functional dependency क्या कहलाती है?
A functional dependency between two or more non-key attributes is called a:
जब एक non-key attribute किसी दूसरे non-key attribute को तय करता है, तो key का असर उस तक एक बीच वाले attribute से होकर पहुँचता है। जैसे StudentID → DeptID और DeptID → DeptName, तो StudentID → DeptName transitive है। इसे transitive dependency कहते हैं और 3NF इसे हटाता है। Partial dependency में non-key attribute composite key के सिर्फ़ एक हिस्से पर निर्भर होता है। बाक़ी दो नाम मानक शब्द नहीं हैं।
When one non-key attribute determines another non-key attribute, the key reaches it only through a middle attribute. For example, StudentID → DeptID and DeptID → DeptName make StudentID → DeptName transitive. This is called a transitive dependency, and 3NF removes it. In a partial dependency, a non-key attribute depends on only part of a composite key. The other two names are not standard terms.
प्रश्न 10उत्तर + हल
यदि K किसी relation R1 में foreign key है, तो:
If K is a foreign key in a relation R1, then:
AR1 के हर tuple में K का मान अलग होता हैEvery tuple of R1 has a distinct value for K
BR1 के tuples में K का मान null नहीं हो सकताK cannot have a null value for tuples in R1
CK किसी दूसरे relation की key हैK is a key for some other relation
DK, R1 की primary key हैK is a primary key for R1
सही उत्तर / Answer: (C)
हल / Solution
Foreign key की पहचान यही है कि वह किसी दूसरे relation की primary key या candidate key को refer करती है। इसलिए K किसी दूसरे relation की key है। R1 में K के मान दोहराए जा सकते हैं, जैसे कई कर्मचारियों का एक ही DeptID, इसलिए पहला विकल्प ग़लत है। Foreign key NULL भी हो सकती है, जब तक कोई और रोक न हो। K का R1 की primary key होना ज़रूरी नहीं।
The defining property of a foreign key is that it refers to the primary key or candidate key of another relation. So K is a key of some other relation. Values of K may repeat in R1, such as many employees sharing one DeptID, so option 1 is wrong. A foreign key may also be NULL unless another rule forbids it. K need not be the primary key of R1 itself.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
database table के संदर्भ में, कथन "A determines B" (A, B को निर्धारित करता है) क्या बताता है?
In the context of a database table, the statement “A determines B” indicates that:
Aattribute A का मान जानकर आप attribute B का मान नहीं खोज सकतेKnowing the value of attribute A you can not look up the value of attribute B
Battribute B का मान खोजने के लिए आपको attribute A का मान जानने की ज़रूरत नहीं हैYou do not need to know the value of attribute A in order to look up the value of attribute B
Cattribute B का मान जानकर आप attribute A का मान खोज सकते हैंKnowing the value of attribute B you can look up the value of attribute A
Dattribute A का मान जानकर आप attribute B का मान खोज सकते हैंKnowing the value of attribute A you can look up the value of attribute B
ER और relational मॉडलों के लिए निम्नलिखित में से कौन-सा कथन सही है?
Which of the following statements is correct for ER and relational models?
Aकिसी entity का attribute composite (संयुक्त) हो सकता हैAn attribute of an entity can be composite
Bकिसी entity के attribute के एक से अधिक मान हो सकते हैंAn attribute of an entity can have more than one value
Crelational table की किसी row में एक attribute का ठीक एक मान या NULL मान हो सकता हैIn a row of a relational table, an attribute can have exactly one value or a NULL value
वह relation जिसमें हर non-key attribute primary key पर पूरी तरह functionally dependent (कार्यात्मक रूप से निर्भर) हो और कोई transitive dependency (सकर्मक निर्भरता) न हो, किस रूप में होता है?
A relation in which every non-key attribute is fully functionally dependent on the primary key and which has no transitive dependency is in:
Aprimary key data की कोई ज़रूरत नहीं होतीIs no need for primary key data
Bकुछ दूसरे database मॉडलों की तुलना में कहीं अधिक data independence (डेटा स्वतंत्रता) होती हैIs much more data independence than some other database models
Crecords के बीच स्पष्ट (explicit) संबंध होते हैंAre explicit relationships among records.
Dकई आयामों वाली tables होती हैंAre table with many dimensions