……… डेटाबेस के डेटा के बारे में जानकारी रखता है और किसी भी डेटा मैनिपुलेशन ऑपरेशन से पहले DBMS उससे परामर्श करता है।
The ……… contains information on the data in the database and is consulted by the DBMS before any data manipulation operation.
Aडेटा डिक्शनरी (Data dictionary)Data dictionary
Bडेटा टेबल (Data table)Data table
Cव्यू (View)View
Dनेटवर्क कैटलॉग (Network catalog)Network catalog
सही उत्तर / Answer: (A)
हल / Solution
Data dictionary में डेटा के बारे में डेटा यानी metadata रहता है। इसमें tables के नाम, columns, उनके data type, constraints और access की अनुमतियाँ लिखी होती हैं। कोई भी query चलाने से पहले DBMS इसी से जाँचता है कि table और column मौजूद हैं या नहीं। Data table में असली डेटा रहता है। View एक आभासी table है। Network catalog मानक DBMS शब्द नहीं है। इसलिए उत्तर Data dictionary है।
A data dictionary stores data about data, called metadata. It lists table names, columns, their data types, constraints and access permissions. Before running any query, the DBMS checks it to confirm that the tables and columns exist. A data table holds the actual data. A view is a virtual table. Network catalog is not a standard DBMS term. So the answer is Data dictionary.
सामान्य प्रयोजन (general purpose) प्रोग्रामिंग भाषाओं में कौन-सी कमांड शामिल की जाती हैं?
Which commands are included in general purpose programming languages?
ADDL
BDML
CDSL
DVDL
सही उत्तर / Answer: (B)
हल / Solution
प्रोग्राम को चलते समय डेटा पढ़ना, जोड़ना और बदलना पड़ता है। इसलिए DML की कमांड, जैसे SELECT, INSERT, UPDATE, DELETE, C, COBOL या Java जैसी general purpose भाषाओं के अंदर embed की जाती हैं। इस भाषा को host language कहते हैं। DDL से ढाँचा आम तौर पर एक बार बनता है, बार-बार प्रोग्राम में नहीं। VDL views बताती है। DSL यहाँ कोई मानक श्रेणी नहीं है। इसलिए उत्तर DML है।
A program has to read, add and change data while it runs. So DML commands such as SELECT, INSERT, UPDATE and DELETE are embedded inside general purpose languages like C, COBOL or Java. Such a language is called the host language. DDL is usually used once to build the structure, not again and again inside programs. VDL defines views. DSL is not a standard category here. So the answer is DML.
निम्नलिखित में से कौन-सा रिलेशनल अलजेब्रा का मौलिक (fundamental) ऑपरेशन है?
Which of the following is a fundamental operation in relational algebra?
ASet intersection (प्रतिच्छेदन)Set intersection
BNatural join (प्राकृतिक जोड़)Natural join
CAssignment (नियतन)Assignment
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (D)
हल / Solution
रिलेशनल अलजेब्रा के छह मौलिक ऑपरेशन हैं: select, project, union, set difference, Cartesian product और rename। बाक़ी ऑपरेशन इन्हीं से बनाए जाते हैं। Set intersection को R − (R − S) लिखकर पाया जा सकता है। Natural join, Cartesian product के ऊपर select और project लगाकर बनता है। Assignment (←) बस बीच का नतीजा एक नाम में रखता है। तीनों अतिरिक्त ऑपरेशन हैं, इसलिए सही उत्तर 'इनमें से कोई नहीं' है।
Relational algebra has six fundamental operations: select, project, union, set difference, Cartesian product and rename. All other operations are built from these. Set intersection can be written as R − (R − S). Natural join is a Cartesian product followed by select and project. Assignment (←) only stores an intermediate result under a name. All three are additional operations, so the correct answer is 'None of the mentioned'.
Korth की ER notation में entity set को दो भागों वाले rectangle से दिखाते हैं। ऊपर के भाग में entity set का नाम होता है और नीचे के भाग में उसके सभी attributes की सूची। Relationship set diamond से बनता है। Relationship set के attributes बिना बँटे (undivided) rectangle में लिखे जाते हैं। Primary key के attributes को underline करते हैं। इसलिए सही उत्तर Entity set है।
In the Korth ER notation an entity set is drawn as a rectangle divided into two parts. The top part holds the name of the entity set and the lower part lists all its attributes. A relationship set is drawn as a diamond. The attributes of a relationship set go in an undivided rectangle. Primary key attributes are underlined. So the answer is Entity set.
एक primary key को foreign key के साथ जोड़ने पर क्या बनता है?
A primary key, if combined with a foreign key, creates:
Aउन्हें जोड़ने वाली tables के बीच Parent-Child संबंधParent- Child relationship between the tables that connect them
Bउन्हें जोड़ने वाली tables के बीच Many-to-Many संबंधMany to many relationship between the tables that connect them
Cउन्हें जोड़ने वाली tables के बीच Network मॉडलNetwork model between the tables that connect them
Dइनमें से कोई नहींNone of the above
सही उत्तर / Answer: (A)
हल / Solution
जब एक table की primary key दूसरी table में foreign key बनकर आती है, तो पहली table parent और दूसरी child बन जाती है। जैसे Department(DeptID) parent है और Employee(DeptID) child है। एक parent row से कई child rows जुड़ सकती हैं। Many-to-many संबंध के लिए अलग junction table चाहिए, सिर्फ़ एक key-जोड़ी से वह नहीं बनता। Network एक पूरा database मॉडल है। इसलिए उत्तर parent-child संबंध है।
When the primary key of one table appears as a foreign key in another table, the first table becomes the parent and the second the child. For example, Department(DeptID) is the parent and Employee(DeptID) is the child. One parent row can be linked to many child rows. A many-to-many relationship needs a separate junction table, not just one key pair. Network is a whole database model. So the answer is a parent-child relationship.
OLAP का पूरा नाम Online Analytical Processing है। यह बड़े डेटा का कई दिशाओं से विश्लेषण करने की तकनीक है, जैसे साल, क्षेत्र और उत्पाद के हिसाब से बिक्री देखना। Data warehouse में इसका ख़ूब उपयोग होता है। इसके उलट OLTP यानी Online Transaction Processing रोज़ के छोटे लेन-देन सँभालता है, जैसे बैंक में पैसा जमा करना। Analysis और Aggregate वाले नाम मानक नहीं हैं।
OLAP stands for Online Analytical Processing. It is used to analyse large amounts of data from many angles, such as sales by year, region and product. It is widely used with data warehouses. In contrast, Online Transaction Processing (OLTP) handles small daily transactions, like depositing money in a bank. The names with Analysis and Aggregate are not standard terms. So the first option is correct.
उपयोगकर्ता के views और conceptual schema से उनकी mapping निर्दिष्ट करने के लिए किसका उपयोग किया जाता है?
Which is used to specify the user views and their mappings to the conceptual schema?
ADDL
BDML
CSDL
DVDL
सही उत्तर / Answer: (D)
हल / Solution
तीन-स्तर वाले ढाँचे में हर स्तर की अपनी भाषा मानी जाती है। VDL यानी View Definition Language external स्तर के user views और उनकी conceptual schema से mapping बताती है। DDL conceptual schema यानी तार्किक ढाँचा बताती है। SDL internal schema यानी भंडारण का ढाँचा बताती है। DML डेटा निकालने और बदलने का काम करती है। इसलिए views और उनकी mapping के लिए सही उत्तर VDL है।
In the three-schema setup, each level has its own language. VDL, the View Definition Language, specifies the user views at the external level and their mappings to the conceptual schema. DDL specifies the conceptual schema, the logical structure. SDL specifies the internal schema, the storage structure. DML is used to retrieve and change data. So the language for user views and their mappings is VDL.
रिलेशनल अलजेब्रा एक __________ क्वेरी भाषा है, जो दो relations को इनपुट के रूप में लेती है और क्वेरी के आउटपुट के रूप में एक नया relation देती है।
Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.
Aरिलेशनल (Relational)Relational
Bसंरचनात्मक (Structural)Structural
Cप्रोसीजरल (Procedural)Procedural
Dमौलिक (Fundamental)Fundamental
सही उत्तर / Answer: (C)
हल / Solution
रिलेशनल अलजेब्रा को procedural भाषा कहते हैं, क्योंकि क्वेरी लिखने वाला ऑपरेशन का क्रम ख़ुद तय करता है। हर ऑपरेशन एक या दो relation लेकर नया relation देता है, इसलिए कई ऑपरेशन एक के ऊपर एक लगाए जा सकते हैं। Relational calculus में सिर्फ़ चाहिए हुए डेटा की शर्त लिखी जाती है, इसलिए वह non-procedural है। Relational, structural और fundamental क्वेरी भाषा के प्रकार नहीं हैं।
Relational algebra is called procedural because the person writing the query decides the order of operations. Each operation takes one or two relations and returns a new relation, so operations can be nested one inside another. In relational calculus only the condition on the required data is written, so it is non-procedural. Relational, structural and fundamental are not recognised types of query languages.
ER आरेख में entity relationship set को किससे दर्शाया जाता है?
The entity relationship set is represented in E-R diagram as
ADouble diamonds
BUndivided rectangles
CDashed lines
DDiamond
सही उत्तर / Answer: (D)
हल / Solution
ER आरेख में relationship set को diamond से दिखाते हैं, और उसके दोनों ओर entity के rectangles lines से जुड़ते हैं। Double diamond सिर्फ़ identifying relationship के लिए है, जो weak entity को उसके owner से जोड़ता है। Undivided rectangle relationship set के attributes दिखाता है। Dashed line उन attributes को relationship से जोड़ती है। इसलिए सामान्य relationship set का चिह्न Diamond है।
In an ER diagram a relationship set is drawn as a diamond, with lines joining it to the entity rectangles. A double diamond is used only for an identifying relationship, which links a weak entity set to its owner. Undivided rectangles show the attributes of a relationship set, and dashed lines connect those attributes to the relationship. So the symbol for an ordinary relationship set is the Diamond.
tables के बीच संबंध दर्शाने वाली key क्या कहलाती है?
The key used to represent a relationship between tables is called a:
Aप्राइमरी कीPrimary key
Bसेकेंडरी कीSecondary key
Cफ़ॉरेन कीForeign key
Dइनमें से कोई नहींNone of the above
सही उत्तर / Answer: (C)
हल / Solution
दो tables को जोड़ने के लिए एक table में ऐसा column रखा जाता है जो दूसरी table की primary key की ओर इशारा करे। इसी column को foreign key कहते हैं। जैसे Order table का Customer_ID, Customer table की primary key से जुड़ता है। Primary key अपनी ही table की rows पहचानती है। Secondary key खोजने और index बनाने में काम आती है। क्योंकि foreign key मौजूद है, इसलिए 'कोई नहीं' ग़लत है।
To link two tables, one table holds a column that points to the primary key of the other table. That column is called a foreign key. For example, Customer_ID in an Order table links to the primary key of the Customer table. A primary key only identifies rows inside its own table. A secondary key is used for searching and indexing. Since foreign key is listed, None of the above is wrong.
आगे के 10 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
मान लीजिए E, relationship set R में भाग लेने वाला एक entity set है। यदि E की हर entity, R के कम से कम एक relationship में भाग लेती है, तो R में E की भागीदारी ______ है।
Let E be an entity set in a relationship set R. If every entity in E participates in at least one relationship in R, then the participation of E in R is ______