BCA / B.Tech 65 min read

RDBMS Model Paper with answers (MDSU)

RDBMS Exam – Paper 1

Part A (10 × 1.5 = 15 marks)

  1. What is Object-Oriented Modeling, and why is it used in databases?
  2. Define Generalization and Specialization in the E-R model.
  3. What is Encapsulation, and how is it implemented in Object-Oriented Databases?
  4. What are the key components of Distributed Database Design?
  5. Explain the concept of Data Placement in DDBMS.
  6. Define Two-Phase Locking in concurrency control.
  7. What is the difference between Heuristic and Cost-Based Query Optimization?
  8. Explain the need for Temporal Databases with an example.
  9. What is Public Key Cryptography, and why is it important in database security?
  10. What are Security Specifications in SQL?

Part B (5 × 3 = 15 marks)

  1. How does Inheritance work in Object-Oriented Database Models?
  2. Explain the architecture of Distributed Processing Systems.
  3. What is Concurrency Control, and why is it necessary?
  4. What are the different types of Encryption Techniques used in databases?
  5. Explain the DTD Schema in XML with an example.

Part C (3 × (7+7+6) = 20 marks)

  1. (a) Explain in detail the Architecture of a Distributed Database System. (7)
    OR
    (b) Describe the different types of attributes in Object-Oriented Modeling. (7)

  2. (a) Explain the algorithm for External Sorting used in query processing. (7)
    OR
    (b) Describe the importance of Query Optimization and different techniques. (7)

  3. (a) What is Data Mining? Explain Association Rules and their applications. (6)
    OR
    (b) Explain Security and Integrity Constraints in Databases. (6)


Part A (10 × 1.5 = 15 Marks)

1. Object-Oriented Modeling क्या है और इसे डेटाबेस में क्यों उपयोग किया जाता है?

उत्तर:
Object-Oriented Modeling (OOM) एक डेटाबेस डिज़ाइन की method है, जिसमें डेटा को objects और classes के रूप में रखा जाता है। इसमें Encapsulation, Inheritance, Polymorphism, और Abstraction जैसी concepts होती हैं।
इसे उपयोग करने के कारण:

  • डेटा को अच्छे से store और manage किया जा सकता है।
  • बार-बार लिखने की जरूरत नहीं होती, जिससे सिस्टम को संभालना आसान हो जाता है।
  • कठिन डेटा को भी सरल रूप में समझा और उपयोग किया जा सकता है।

2. Generalization और Specialization क्या हैं?

उत्तर:

  • Generalization: इसमें एक से अधिक entities को मिलाकर एक general entity बनाई जाती है
    उदाहरण: "Car" और "Bike" को मिलाकर "Vehicle" बनाया जा सकता है।
  • Specialization: इसमें एक entity को छोटे-छोटे हिस्सों में बांटा जाता है
    उदाहरण: "Employee" को "Manager" और "Clerk" में बांटा जा सकता है।

3. Encapsulation क्या है और इसे Object-Oriented Databases में कैसे लागू किया जाता है?

उत्तर:
Encapsulation का मतलब डेटा और उससे जुड़े functions (methods) को एक साथ रखना है।
इसे Object-Oriented Databases में Classes और Objects के जरिए लागू किया जाता है, जहाँ

  • Data fields (attributes) और
  • Methods (functions)
    एक साथ रखे जाते हैं।

उदाहरण:

class Student {
    private int rollNo;  
    public void setRollNo(int r) { rollNo = r; }
    public int getRollNo() { return rollNo; }
}

इससे डेटा को बिना अनुमति के बदला नहीं जा सकता।


4. Distributed Database Design के मुख्य parts क्या हैं?

उत्तर:
Distributed Database System (DDBMS) के मुख्य parts ये हैं:

  1. Data Fragmentation – डेटा को छोटे-छोटे parts में बांटना।
  2. Data Replication – डेटा की कई copies रखना।
  3. Data Allocation – डेटा को सही जगह store करना।
  4. Concurrency Control – कई users द्वारा डेटा एक्सेस करने पर control रखना।
  5. Recovery Mechanism – सिस्टम खराब होने पर डेटा को वापस लाना।

5. Data Placement क्या है और यह DDBMS में क्यों जरूरी है?

उत्तर:
Data Placement का मतलब है डेटा को सही जगह रखना ताकि system की speed अच्छी रहे।
DDBMS में तीन तरह के Data Placement होते हैं:

  1. Centralized Placement – सभी डेटा एक जगह रखा जाता है।
  2. Partitioned Placement – डेटा को छोटे-छोटे हिस्सों में बांटकर अलग-अलग सर्वर पर रखा जाता है।
  3. Replicated Placement – डेटा की कई copies बनाई जाती हैं।

यह जरूरी है क्योंकि:

  • सिस्टम तेज़ काम करता है।
  • नेटवर्क पर दबाव कम पड़ता है।
  • डेटा सुरक्षित रहता है।

6. Two-Phase Locking क्या है?

उत्तर:
Two-Phase Locking (2PL) एक तरीका है जिससे डेटाबेस में एक ही समय पर होने वाले कई कार्यों को control किया जाता है ताकि डेटा corrupt न हो।
इसमें दो चरण होते हैं:

  1. Growing Phase – Lock लिए जा सकते हैं लेकिन हटाए नहीं जा सकते।
  2. Shrinking Phase – Lock हटाए जा सकते हैं लेकिन नए नहीं लिए जा सकते।

उदाहरण:
अगर एक बैंक अकाउंट update हो रहा है, तो जब तक पूरा काम पूरा नहीं हो जाता, कोई दूसरा user उसे access नहीं कर सकता।


7. Heuristic और Cost-Based Query Optimization में क्या अंतर है?

उत्तर:

Heuristic Optimization Cost-Based Optimization
यह fixed rules पर काम करता है। यह execution cost पर काम करता है।
जल्दी result देता है। ज़्यादा सटीक result देता है।
Indexing और Joins के predefined rules पर चलता है। Execution Cost को analyze कर Query Plan बनाता है।

8. Temporal Database की आवश्यकता क्यों है? उदाहरण दें।

उत्तर:
Temporal Database वह डेटाबेस होता है जो डेटा के समय (time) के हिसाब से बदलाव को store करता है
उदाहरण:

  • अगर किसी कर्मचारी की salary 2015 में ₹20,000 थी और 2023 में ₹50,000 हो गई, तो Temporal Database दोनों data store करेगा।
  • हॉस्पिटल में रोगी की बीमारी का record रखना।

9. Public Key Cryptography क्या है और यह Database Security के लिए क्यों जरूरी है?

उत्तर:
Public Key Cryptography में दो चाबियाँ (keys) होती हैं:

  1. Public Key – सभी को पता होती है।
  2. Private Key – सिर्फ receiver के पास होती है।

Database Security के लिए यह जरूरी है क्योंकि:

  • डेटा को सुरक्षित रखा जाता है।
  • Unauthorized Access को रोका जाता है।
  • सुरक्षित communication किया जा सकता है।

10. SQL में Security Specifications क्या हैं?

उत्तर:
SQL में डेटाबेस की सुरक्षा के लिए यह तरीके होते हैं:

  1. Access Control – कौन-कौन डेटा को access कर सकता है, यह तय करना।
  2. Flow Control – डेटा कैसे भेजा और लिया जाएगा, यह control करना।
  3. Encryption – डेटा को सुरक्षित format में store करना।
  4. User Authentication – Password और Login System से user की पहचान करना।

उदाहरण:

GRANT SELECT ON employees TO user1;  
REVOKE INSERT ON employees FROM user2;

Part B (5 × 3 = 15 Marks)

11. Inheritance Object-Oriented Databases में कैसे काम करता है?

उत्तर:
Inheritance का मतलब है कि एक class दूसरी class की properties और methods को use कर सकती है।
उदाहरण:

class Animal {  
    void eat() { System.out.println("Eating..."); }  
}  
class Dog extends Animal {  
    void bark() { System.out.println("Barking..."); }  
}

इसमें "Dog" को "Animal" के गुण मिल जाते हैं।


12. Distributed Processing System की Architecture समझाइए।

उत्तर:
Distributed Processing System में डेटा और प्रोसेसिंग को कई कंप्यूटरों पर बांटा जाता है ताकि performance अच्छी हो।
इसके मुख्य प्रकार:

  1. Client-Server Architecture – Client data मांगता है, Server data देता है।
  2. Peer-to-Peer Architecture – सभी सिस्टम एक-दूसरे से directly जुड़े होते हैं।
  3. Multi-Tier Architecture – डेटा को अलग-अलग levels पर manage किया जाता है।

13. Concurrency Control क्या है और क्यों जरूरी है?

उत्तर:
Concurrency Control एक तरीका है जिससे एक समय में कई users एक ही डेटा को सही तरीके से use कर सकें।
जरूरी क्यों है?

  • डेटा खराब होने से बचता है।
  • Deadlock की समस्या कम होती है।
  • सिस्टम की performance अच्छी रहती है।

Part C (3 × (7+7+6) = 20 Marks)

1 (a) Distributed Database System की Architecture को विस्तार से समझाइए। (7 Marks)

उत्तर:
Distributed Database System (DDBMS) एक ऐसा सिस्टम है जिसमें डेटा को कई कंप्यूटरों या सर्वरों में बांटा जाता है और सभी सिस्टम एक साथ मिलकर काम करते हैं।

DDBMS की Architecture के मुख्य भाग:

  1. Centralized Architecture:

    • इसमें एक मुख्य सर्वर होता है जो सभी डेटा को कंट्रोल करता है।
    • डेटा को एक्सेस करने के लिए सभी क्लाइंट इसी सर्वर से जुड़ते हैं।
  2. Client-Server Architecture:

    • इसमें क्लाइंट्स डेटा की रिक्वेस्ट भेजते हैं, और सर्वर उसे प्रोसेस करके जवाब देता है।
    • उदाहरण: बैंकिंग सिस्टम में ग्राहक (Client) जब अकाउंट चेक करता है, तो सर्वर से डेटा मिलता है।
  3. Peer-to-Peer Architecture:

    • इसमें सभी सिस्टम एक-दूसरे से डायरेक्ट जुड़ते हैं और सर्वर की जरूरत नहीं होती।
    • उदाहरण: Bitcoin और Torrent सिस्टम इसी प्रकार के होते हैं।
  4. Multi-Tier Architecture:

    • इसमें डेटा को अलग-अलग लेवल (Layers) पर प्रोसेस किया जाता है
    • उदाहरण: एक ई-कॉमर्स वेबसाइट में UI (फ्रंट-एंड), सर्वर (बैक-एंड), और डेटाबेस तीन लेयर में काम करते हैं।

OR

1 (b) Object-Oriented Modeling में विभिन्न प्रकार के Attributes को समझाइए। (7 Marks)

उत्तर:
Object-Oriented Modeling (OOM) में Attributes का उपयोग डेटा स्टोर करने के लिए किया जाता है।

मुख्य प्रकार के Attributes:

  1. Simple Attribute:

    • इसमें सिर्फ एक value स्टोर होती है
    • उदाहरण: Student entity में "Roll No" एक Simple Attribute है।
  2. Composite Attribute:

    • इसमें एक से ज्यादा sub-attributes होते हैं
    • उदाहरण: "Name" एक Composite Attribute है, जिसके अंदर "First Name" और "Last Name" हो सकते हैं।
  3. Derived Attribute:

    • यह किसी और attribute की value से निकाला गया डेटा होता है
    • उदाहरण: "Age" को "Date of Birth" से निकाला जा सकता है।
  4. Multivalued Attribute:

    • इसमें एक से अधिक values स्टोर हो सकती हैं
    • उदाहरण: "Phone Numbers" एक Multivalued Attribute है क्योंकि एक व्यक्ति के पास एक से अधिक नंबर हो सकते हैं।
  5. Key Attribute:

    • यह एक Unique Identifier होता है जो किसी entity को अलग करता है।
    • उदाहरण: "Aadhar Number" या "Roll No" एक Key Attribute हो सकता है।

2 (a) Query Processing में External Sorting के लिए उपयोग किए जाने वाले Algorithm को समझाइए। (7 Marks)

उत्तर:
External Sorting वह प्रक्रिया है जिसमें बड़े डेटाबेस को Sort करने के लिए Secondary Storage (जैसे हार्ड डिस्क) का उपयोग किया जाता है

External Sorting के लिए Algorithm:

  1. Merge Sort Algorithm:

    • इसमें डेटा को छोटे parts में बांटकर sort किया जाता है और फिर merge करके पूरा dataset तैयार किया जाता है।
  2. Multiway Merge Sort:

    • यह Traditional Merge Sort से अलग होता है क्योंकि इसमें एक साथ कई sequences को merge किया जाता है।
  3. Replacement Selection Sort:

    • इसमें डेटा को कुछ हिस्सों में store किया जाता है और जो डेटा ज़्यादा उपयोग में आता है, उसे जल्दी access किया जाता है।

OR

2 (b) Query Optimization के महत्व को समझाइए और विभिन्न Techniques को बताइए। (7 Marks)

उत्तर:
Query Optimization का मतलब है Query को इस तरह से Execute करना कि वह सबसे कम समय और Resources में पूरी हो।

Query Optimization की जरूरत क्यों है?

  • Execution Time कम करता है।
  • Server Load कम करता है।
  • Database Performance को बेहतर बनाता है।

Query Optimization की Techniques:

  1. Heuristic-Based Optimization:

    • इसमें Predefined Rules के हिसाब से Query को Optimize किया जाता है।
    • उदाहरण: SQL में *"SELECT " की जगह "SELECT column_name" का उपयोग करना।
  2. Cost-Based Optimization:

    • इसमें Query Execution Plan को Analyze किया जाता है और सबसे कम cost वाली Query को चुना जाता है।
  3. Join Optimization:

    • इसमें Tables को Join करने के लिए सबसे Efficient तरीका चुना जाता है।
    • उदाहरण: Nested Loop Join, Hash Join, Merge Join।

3 (a) Data Mining क्या है? Association Rules और उनके उपयोग समझाइए। (6 Marks)

उत्तर:
Data Mining वह प्रक्रिया है जिसमें डेटाबेस से महत्वपूर्ण जानकारी निकाली जाती है और उसे निर्णय लेने के लिए उपयोग किया जाता है।

Association Rules क्या हैं?

Association Rules वे नियम होते हैं जो यह बताते हैं कि कौन-सी चीज़ें एक साथ ज्यादा बार उपयोग होती हैं।

उदाहरण:

अगर 80% ग्राहक जो "Bread" खरीदते हैं, वे "Butter" भी खरीदते हैं, तो यह एक Association Rule बन जाता है।

Association Rules के उपयोग:

  1. Market Basket Analysis:
    • कंपनियां यह जानने के लिए कि कौन-कौन से प्रोडक्ट साथ में ज्यादा खरीदे जाते हैं, इसका उपयोग करती हैं।
  2. Fraud Detection:
    • बैंक और क्रेडिट कार्ड कंपनियां इस तकनीक का उपयोग धोखाधड़ी का पता लगाने के लिए करती हैं।
  3. Recommendation Systems:
    • Amazon, Netflix जैसी कंपनियां यूजर की पसंद के हिसाब से Products और Movies Suggest करती हैं।

OR

3 (b) Database में Security और Integrity Constraints को समझाइए। (6 Marks)

उत्तर:
Database Security का मतलब है डेटा को Unauthorized Access से बचाना और Integrity Constraints का मतलब है डेटा की शुद्धता बनाए रखना

Database Security के महत्वपूर्ण भाग:

  1. Authentication:
    • Username और Password से User की पहचान करना।
  2. Authorization:
    • कौन User कौन-सा डेटा देख या बदल सकता है, यह तय करना।
  3. Encryption:
    • डेटा को सुरक्षित रखने के लिए Code Format में बदलना

Integrity Constraints के प्रकार:

  1. Primary Key Constraint:

    • हर Row का एक Unique ID होना चाहिए।
    • उदाहरण: Student Table में Roll No हमेशा Unique रहेगा।
  2. Foreign Key Constraint:

    • एक Table दूसरी Table से जुड़ी होती है और डेटा में संबंध बनाए रखना जरूरी होता है।
  3. Not Null Constraint:

    • कुछ डेटा Fields को खाली नहीं छोड़ा जा सकता।
    • उदाहरण: Employee Table में "Employee ID" खाली नहीं रह सकता।
  4. Check Constraint:

    • किसी Column की value को एक निश्चित सीमा में रखने के लिए इस्तेमाल किया जाता है।
    • उदाहरण: Salary > 5000 होना चाहिए।

RDBMS Exam – Paper 2

Part A (10 × 1.5 = 15 marks)

  1. What is a Relational Database?
  2. Define Aggregation in the E-R model.
  3. What is the role of Data Communication in DDBMS?
  4. Explain the Need for Transaction Recovery.
  5. What is the difference between Data Warehousing and Database Views?
  6. What is Serializability in Transactions?
  7. Define Multi-Media Databases with an example.
  8. Explain the XML Tree Data Model.
  9. What is the difference between Access Control and Flow Control in Database Security?
  10. What is a Data Layer in Data Warehousing?

Part B (5 × 3 = 15 marks)

  1. Explain Object and Set Operations in Query Processing.
  2. What is Classification in Data Mining? Give an example.
  3. Describe the Placement of DDBMS Components.
  4. What are the Recovery Techniques used in RDBMS?
  5. How does XML Query Processing work?

Part C (3 × (7+7+6) = 20 marks)

  1. (a) Explain Distributed Database Architecture in depth. (7)
    OR
    (b) Describe Data Warehousing: Need, Architecture, and Characteristics. (7)

  2. (a) Explain the concept of Cryptography and its different types. (7)
    OR
    (b) What is Flow Control in Databases, and how does it ensure security? (7)

  3. (a) What is Query Optimization? Explain its Heuristic Techniques. (6)
    OR
    (b) Describe the Concept of XML Document and its Structure. (6)


RDBMS Exam – Paper 2

Part A (10 × 1.5 = 15 marks)

  1. What is a Relational Database?
    उत्तर: Relational Database एक प्रकार का डेटाबेस है जिसमें डेटा को Tables (Relations) के रूप में store किया जाता है। प्रत्येक टेबल में Rows (Records) और Columns (Attributes) होते हैं। टेबल्स को Primary Key और Foreign Key की मदद से आपस में जोड़ा जाता है, जिससे डेटा को efficiently store, access और manage किया जा सकता है। Relational Databases के उदाहरण MySQL, PostgreSQL, और Oracle हैं।

  2. Define Aggregation in the E-R model.
    उत्तर: Aggregation E-R मॉडल की एक अवधारणा है जिसमें एक रिलेशन को किसी अन्य रिलेशन का हिस्सा माना जाता है। यह तब उपयोगी होता है जब हमें दो या अधिक Entities और उनके संबंधों को एक Higher-Level Entity में जोड़ना पड़ता है।

  3. What is the role of Data Communication in DDBMS?
    उत्तर: Data Communication का मुख्य कार्य Distributed Database System (DDBMS) में डेटा को अलग-अलग स्थानों (सर्वर) के बीच ट्रांसफर करना है। यह डेटा एक्सचेंज को तेजी और सुरक्षित रूप से संचालित करने में मदद करता है।

  4. Explain the Need for Transaction Recovery.
    उत्तर: Transaction Recovery की आवश्यकता तब होती है जब कोई सिस्टम क्रैश, नेटवर्क फेलियर या अन्य तकनीकी समस्या के कारण ट्रांजैक्शन अधूरी रह जाती है। यह डेटा को कंसिस्टेंट स्टेट में वापस लाने के लिए जरूरी होता है।

  5. What is the difference between Data Warehousing and Database Views?
    उत्तर:

    • Data Warehousing: यह बड़े पैमाने पर डेटा को संग्रहित और विश्लेषण करने के लिए एक तकनीक है।
    • Database Views: यह डेटाबेस की एक वर्चुअल टेबल होती है, जो डेटा को वास्तविक टेबल से एक्सेस करती है लेकिन खुद डेटा स्टोर नहीं करती।
  6. What is Serializability in Transactions?
    उत्तर: Serializability का मतलब है कि कई ट्रांजैक्शंस को इस तरह से Execute किया जाए कि उनका प्रभाव एक Sequential Execution की तरह हो। यह डेटा कंसिस्टेंसी बनाए रखने में मदद करता है।

  7. Define Multi-Media Databases with an example.
    उत्तर: Multi-Media Database वह डेटाबेस होता है जिसमें टेक्स्ट, इमेज, वीडियो, ऑडियो, ग्राफिक्स आदि स्टोर किए जाते हैं।
    उदाहरण: YouTube और Facebook जैसे प्लेटफ़ॉर्म्स मल्टीमीडिया डेटाबेस का उपयोग करते हैं।

  8. Explain the XML Tree Data Model.
    उत्तर: XML Tree Data Model में डेटा को Tree Structure में ऑर्गनाइज़ किया जाता है

    • इसमें Root Element सबसे ऊपर होता है।
    • उसके नीचे Sub-elements और Attributes होते हैं।
      उदाहरण:
    
        Rahul
        22
    
    
  9. What is the difference between Access Control and Flow Control in Database Security?
    उत्तर:

    • Access Control: यह तय करता है कि कौन यूजर कौन-सा डेटा एक्सेस कर सकता है
    • Flow Control: यह सुनिश्चित करता है कि डेटा सही तरीके से और सुरक्षित रूप से एक स्थान से दूसरे स्थान तक जाए
  10. What is a Data Layer in Data Warehousing?
    उत्तर: Data Layer वह लेयर होती है जहां डेटा को संग्रहित, प्रोसेस और विश्लेषण किया जाता है। यह Data Warehousing की महत्वपूर्ण परत होती है।


Part B (5 × 3 = 15 marks)

  1. Explain Object and Set Operations in Query Processing.
    उत्तर:

    • Object Operations: ये Objects पर आधारित होती हैं, जैसे Insert, Update, और Delete।
    • Set Operations: इसमें Union, Intersection, Difference, और Cartesian Product जैसी ऑपरेशन्स शामिल होती हैं
  2. What is Classification in Data Mining? Give an example.
    उत्तर: Classification एक Data Mining Technique है जिसमें डेटा को विभिन्न कैटेगरी में बांटा जाता है
    उदाहरण: बैंक में ग्राहकों को "Low Risk" और "High Risk" ग्राहकों के रूप में वर्गीकृत करना।

  3. Describe the Placement of DDBMS Components.
    उत्तर: DDBMS Components को डेटा का सही उपयोग और संसाधन को ऑप्टिमाइज़ करने के लिए रखा जाता है।

    • Centralized Placement: एक ही स्थान पर डेटा रखा जाता है।
    • Fragmented Placement: डेटा को विभाजित करके विभिन्न स्थानों पर रखा जाता है।
    • Replicated Placement: डेटा की कई Copies अलग-अलग स्थानों पर स्टोर की जाती हैं।
  4. What are the Recovery Techniques used in RDBMS?
    उत्तर:

    • Deferred Update: डेटा को तुरंत अपडेट नहीं किया जाता बल्कि बैकअप के रूप में स्टोर किया जाता है।
    • Shadow Paging: डेटा को Shadow Pages में स्टोर करके Backup रखा जाता है।
    • Write-Ahead Logging (WAL): सभी अपडेट पहले Log में स्टोर होते हैं फिर डेटाबेस में लागू किए जाते हैं।
  5. How does XML Query Processing work?
    उत्तर: XML Query Processing में XPath, XQuery और SQL/XML जैसी तकनीकों का उपयोग किया जाता है ताकि XML डेटा से आवश्यक जानकारी निकाली जा सके।


Part C (3 × (7+7+6) = 20 marks)

1 (a) Explain Distributed Database Architecture in depth. (7 Marks)

उत्तर:
Distributed Database Architecture वह मॉडल है जहां डेटा को कई अलग-अलग स्थानों (servers) पर store किया जाता है, लेकिन यह एक single system की तरह काम करता है।

इसके मुख्य प्रकार:

  1. Client-Server Architecture – इसमें Clients डेटा को request करते हैं और Server उसे process करके response देता है।
  2. Peer-to-Peer Architecture – सभी nodes समान होते हैं और एक-दूसरे से डेटा share कर सकते हैं।
  3. Multi-Tier Architecture – यह तीन स्तरों में बंटा होता है: Presentation Layer, Application Layer, और Database Layer।

इस architecture के लाभ:

  • डेटा redundancy कम होती है।
  • Load balancing अच्छा होता है।
  • Fault tolerance बेहतर होती है।

OR

1 (b) Describe Data Warehousing: Need, Architecture, and Characteristics. (7 Marks)

उत्तर:
Data Warehousing वह प्रक्रिया है जिसमें बड़े पैमाने पर डेटा को store और manage किया जाता है ताकि उसे analyze किया जा सके।

Need (आवश्यकता)

  • पुराने और नए डेटा का बेहतर integration करने के लिए।
  • Business decision-making को improve करने के लिए।
  • डेटा को एक centralized system में रखने के लिए।

Architecture (संरचना)

  1. Data Source Layer – डेटा अलग-अलग sources से आता है (Databases, Excel, APIs)।
  2. ETL (Extract, Transform, Load) Process – डेटा को clean और transform किया जाता है।
  3. Data Warehouse Layer – डेटा को एक जगह store किया जाता है।
  4. OLAP Servers (Online Analytical Processing) – Query execution और fast data retrieval में मदद करता है।

Characteristics (विशेषताएँ)

  • Subject-Oriented – डेटा specific subjects (Sales, Inventory) के आधार पर store होता है।
  • Integrated – विभिन्न sources का डेटा मिलाया जाता है।
  • Time-Variant – डेटा को समय के अनुसार store किया जाता है।
  • Non-Volatile – डेटा बार-बार change नहीं होता।

2 (a) Explain the concept of Cryptography and its different types. (7 Marks)

उत्तर:
Cryptography वह तकनीक है जिसमें डेटा को सुरक्षित करने के लिए उसे encryption और decryption किया जाता है।

Types of Cryptography:

  1. Symmetric Key Cryptography – एक ही key का उपयोग encryption और decryption के लिए किया जाता है। उदाहरण: AES, DES।
  2. Asymmetric Key Cryptography – इसमें दो keys होती हैं: Public Key (encrypt करने के लिए) और Private Key (decrypt करने के लिए)। उदाहरण: RSA Algorithm।
  3. Hashing – डेटा को एक fixed-size value में convert करता है, जिससे original डेटा को reverse नहीं किया जा सकता। उदाहरण: SHA-256, MD5।

Cryptography का उपयोग:

  • Online Transactions में security के लिए।
  • Data Integrity को बनाए रखने के लिए।
  • Unauthorized Access से बचाने के लिए।

OR

2 (b) What is Flow Control in Databases, and how does it ensure security? (7 Marks)

उत्तर:
Flow Control का उपयोग यह सुनिश्चित करने के लिए किया जाता है कि डेटा सही users तक पहुंचे और unauthorized access को रोका जा सके।

Flow Control Security Mechanisms:

  1. Access Control Policies – यह तय करता है कि कौन user किस डेटा को देख और modify कर सकता है।
  2. Data Leakage Prevention – Unwanted डेटा transfer को रोकने के लिए security rules लागू किए जाते हैं।
  3. Traffic Monitoring – डेटा flow को monitor किया जाता है ताकि suspicious activity को detect किया जा सके।

Flow Control से लाभ:

  • Unauthorized डेटा access को रोकता है।
  • Data Integrity और Confidentiality बनाए रखता है।
  • Network Traffic को efficiently manage करता है।

3 (a) What is Query Optimization? Explain its Heuristic Techniques. (6 Marks)

उत्तर:
Query Optimization का उद्देश्य Query को सबसे efficient तरीके से execute करना होता है ताकि performance बेहतर हो और execution time कम लगे।

Heuristic Query Optimization Techniques:

  1. Predicate Pushdown – Query में conditions को जल्दी evaluate करना।
  2. Join Order Optimization – Tables को इस तरह से join करना जिससे कम से कम time लगे।
  3. Index Utilization – Index का सही उपयोग करके query execution को fast बनाना।
  4. Projection Reduction – केवल आवश्यक columns को select करना ताकि unnecessary data retrieval को रोका जा सके।

Query Optimization से लाभ:

  • Query execution time कम होता है।
  • Database performance बेहतर होती है।
  • Resource utilization में सुधार आता है।

OR

3 (b) Describe the Concept of XML Document and its Structure. (6 Marks)

उत्तर:
XML (Extensible Markup Language) एक data format है जिसका उपयोग structured data को store और transmit करने के लिए किया जाता है।

XML Document Structure:

  1. Prolog () – यह XML file का शुरुआती हिस्सा होता है।
  2. Root Element () – पूरे XML डॉक्युमेंट को wrap करता है।
  3. Child Elements () – Sub-elements को store करता है।
  4. Attributes () – Extra metadata को store करने के लिए।
  5. Data Content (Title, Author, Price) – वास्तविक डेटा जो store किया जाता है।

Example of XML Document:



    
        Harry Potter
        J.K. Rowling
        500
    

XML के लाभ:

  • Platform-independent data storage।
  • Human और machine दोनों के लिए readable।
  • डेटा sharing के लिए उपयोगी (Web APIs, Data Interchange)।

RDBMS Exam – Paper 3

Part A (10 × 1.5 = 15 marks)

  1. What is Distributed Database Design, and why is it important?
  2. Explain Encapsulation in Object-Oriented Modeling.
  3. What are the challenges of Data Placement in DDBMS?
  4. Define Temporal Databases and give an example.
  5. What is Two-Phase Locking, and how does it help concurrency control?
  6. Explain the role of External Sorting in Query Processing.
  7. What is the importance of Multimedia Databases?
  8. What is a Data Warehouse, and why is it needed?
  9. Define Access Control in database security.
  10. What is a Digital Signature, and how is it used in databases?

Part B (5 × 3 = 15 marks)

  1. Explain the difference between Data Warehousing and Data Mining.
  2. How does Query Optimization improve database performance?
  3. What is Concurrency Control, and why is it necessary in DDBMS?
  4. Explain the concept of Flow Control in Database Security.
  5. What is the XML Tree Data Model, and how is it structured?

Part C (3 × (7+7+6) = 20 marks)

  1. (a) Explain the placement of components in a Distributed Database System. (7)
    OR
    (b) Describe different types of attributes in Object-Oriented Modeling. (7)

  2. (a) Discuss Transaction Recovery techniques in detail. (7)
    OR
    (b) Explain Classification Techniques in Data Mining with examples. (7)

  3. (a) What is Public Key Cryptography, and how does it secure databases? (6)
    OR
    (b) Explain the concept of DTD Schema in XML with an example. (6)


RDBMS Exam – Paper 4

Part A (10 × 1.5 = 15 marks)

  1. Define Generalization and Specialization in databases.
  2. What is the purpose of Distributed Database Management Systems (DDBMS)?
  3. What are the benefits of Data Warehousing?
  4. Explain Serializability in Transactions.
  5. What is Query Optimization, and why is it needed?
  6. Explain the concept of a Multimedia Database.
  7. What is the role of Encryption in database security?
  8. Define Association Rule Mining in Data Mining.
  9. What is a Query Execution Plan, and how is it created?
  10. Explain the differences between SQL and XML Query Processing.

Part B (5 × 3 = 15 marks)

  1. Describe Distributed Database System Architectures.
  2. What is the importance of Transaction Management?
  3. Explain the role of Data Communication in DDBMS.
  4. What are Object and Set Operations in Query Processing?
  5. Explain the key characteristics of a Data Warehouse.

Part C (3 × (7+7+6) = 20 marks)

  1. (a) Explain the need and architecture of Data Warehousing. (7)
    OR
    (b) Describe the different types of Data Models in RDBMS. (7)

  2. (a) Explain Temporal Database Concepts with an example. (7)
    OR
    (b) Discuss Security Specifications in SQL and their importance. (7)

  3. (a) What is the role of Flow Control in Database Security? (6)
    OR
    (b) Explain how XML Schema is used in database systems. (6)


RDBMS Exam – Paper 5

Part A (10 × 1.5 = 15 marks)

  1. Define Object-Oriented Database Models.
  2. What is Inheritance, and how is it implemented in databases?
  3. Explain Data Placement Strategies in DDBMS.
  4. What is Two-Phase Locking, and how does it ensure consistency?
  5. What is the importance of Query Processing Algorithms?
  6. What are the key differences between Data Mining and Data Warehousing?
  7. Explain how XML Queries work in database systems.
  8. What is Cryptography, and why is it used in database security?
  9. Explain the importance of Encryption Techniques in SQL Databases.
  10. Define Heuristic Query Optimization and give an example.

Part B (5 × 3 = 15 marks)

  1. Describe the types of Distributed Database System Architectures.
  2. What is the impact of Concurrency Control on transactions?
  3. Explain the need for Recovery Techniques in RDBMS.
  4. Describe how Classification in Data Mining helps in decision-making.
  5. What is a Digital Signature, and how does it ensure database security?

Part C (3 × (7+7+6) = 20 marks)

  1. (a) Explain how Data Warehousing is different from Database Views. (7)
    OR
    (b) Describe the role of Public Key Infrastructure in database security. (7)

  2. (a) Explain the need and applications of Temporal Databases. (7)
    OR
    (b) Discuss the impact of Query Optimization on database performance. (7)

  3. (a) What is Flow Control in Databases, and how does it ensure security? (6)
    OR
    (b) Explain the importance of DTD Schema in XML Query Processing. (6)

In this Chapter