FliQi Education App Download
विषय-वार प्रश्न-बैंक

Programmer DBMS — प्रश्न-बैंक

1,237 जाँचे हुए प्रश्न · 15 topics · 2 पिछले वर्षों के पेपरों से

Topics

किन परीक्षाओं में

नमूना प्रश्न

भाषा
प्रश्न 1उत्तर + हल The Entity–Relationship Model
समुच्चयन (aggregation) और संघटन (composition) के अंतर को कौन-सा कथन सबसे ठीक बताता है?
Which statement best describes the difference between aggregation and composition?
  1. Aसंघटन की तुलना में समुच्चयन में पूरे और उसके अंशों का रिश्ता अधिक कड़ा होता है।Aggregation represents a stronger relationship between the whole and its parts compared to composition.
  2. Bसमुच्चयन में अंश केवल पूरे के भीतर ही रह सकते हैं, संघटन में नहीं।Aggregation allows the parts to exist exclusively within the whole, while composition does not.
  3. Cसमुच्चयन पूरे और अंशों के बीच उपसमुच्चय संबंध बताता है, जबकि संघटन पूर्ण-अंश संबंध बताता है।Aggregation implies a subset relationship between the whole and its parts, while composition implies a whole-part relationship.
  4. Dसमुच्चयन में अंश पूरे से अलग भी बने रह सकते हैं, संघटन में नहीं।Aggregation allows the parts to exist independently of the whole, while composition does not.

सही उत्तर / Answer: (D)

हल / Solution
दोनों पूर्ण-अंश रिश्ते हैं; फ़र्क़ जुड़ाव की कसावट का है। समुच्चयन ढीला «has-a» है — अंश पूरे के बिना भी बने रहते हैं, जैसे विभाग बंद होने पर भी प्राध्यापक। संघटन कड़ा रूप है — अंश ठीक एक पूरे का होता है और पूरा मिटते ही अंश भी मिट जाता है, जैसे चालान के साथ उसकी पंक्तियाँ। इसलिए पहला और दूसरा विकल्प दोनों उलटे हैं, और तीसरे का उपसमुच्चय वाला रिश्ता विशेषीकरण का है, समुच्चयन का नहीं।
Both are whole-part links, and they differ only in how tight the binding is. Aggregation is the loose has-a form: the parts survive without the whole, as professors survive a department being closed. Composition is the strong form, where a part belongs to exactly one whole and dies with it, as invoice lines die with the invoice. The first two options reverse these facts, and a subset link belongs to specialization rather than to aggregation.
प्रश्न 2उत्तर + हल Introduction to DBMS
ऑब्जेक्ट-ओरिएंटेड डेटा मॉडल में डेटा और विधियों (methods) को एक ही इकाई में मिला देने की प्रक्रिया को क्या कहते हैं?
Which term refers to the process of combining data and methods into a single entity in an object-oriented data model?
  1. Aएनकैप्सुलेशन (Encapsulation)Encapsulation
  2. Bपॉलीमॉर्फिज़्म (Polymorphism)Polymorphism
  3. Cइनहेरिटेंस (Inheritance)Inheritance
  4. Dएब्स्ट्रैक्शन (Abstraction)Abstraction

सही उत्तर / Answer: (A)

हल / Solution
ऑब्जेक्ट में डेटा और उस पर चलने वाली विधियाँ दोनों एक साथ बँधी रहती हैं। इसी बाँधने को encapsulation कहते हैं। इससे अंदर का डेटा बाहर से सीधे नहीं छुआ जा सकता, सिर्फ़ तय विधियों से बदलता है। polymorphism का मतलब है एक ही नाम का काम अलग-अलग ऑब्जेक्ट पर अलग तरह चलना। inheritance में नया वर्ग पुराने वर्ग के गुण पा लेता है। abstraction सिर्फ़ ज़रूरी बात दिखाकर बाक़ी ब्योरा छिपाता है।
An object keeps its attributes and the methods that work on them inside one unit, and this bundling is called encapsulation. It also hides the internal state, so the data can only be changed through the object's own methods. Polymorphism means the same operation name behaves differently for different objects. Inheritance lets a new class take the properties of an existing class. Abstraction shows only the essential view and hides the rest of the detail.
प्रश्न 3उत्तर + हल Database Security
डेटाबेस सुरक्षा की चुनौतियों से निपटने में डेटा मास्किंग (data masking) की क्या भूमिका है?
What is the role of data masking in addressing database security challenges?
  1. Aसंचरण के दौरान डेटा की रक्षा करनाProtecting data during transmission
  2. Bडेटा की पुनरावृत्ति (redundancy) घटानाReducing data redundancy
  3. Cडेटा की उपलब्धता घटानाMinimizing data availability
  4. Dडेटा सुरक्षा और डेटा उपयोगिता के बीच संतुलन बनानाBalancing data security with data usability

सही उत्तर / Answer: (D)

हल / Solution
डेटा मास्किंग में असली मान की जगह मिलता-जुलता नक़ली मान रख दिया जाता है, ताकि परीक्षण और प्रशिक्षण की प्रतियों में डेटा काम लायक़ बना रहे, पर किसी का असली नाम या खाता संख्या सामने न आए। यानी इसका पूरा मक़सद सुरक्षा और उपयोगिता के बीच संतुलन बिठाना है। संचरण की रक्षा गोपन (encryption) करता है, पुनरावृत्ति घटाना सामान्यीकरण (normalization) का काम है, और उपलब्धता घटाना किसी का लक्ष्य नहीं।
Data masking replaces real values with realistic but false ones, so that test, training and development copies stay usable while no genuine name or account number is exposed. Its whole purpose is therefore to balance security against usability. Protecting data in transit is the job of encryption, reducing redundancy is what normalisation does, and deliberately reducing availability is nobody's aim at all.
प्रश्न 4उत्तर + हल Concurrency Control
किसी CRM प्रणाली में विक्रय प्रतिनिधि ग्राहक प्रोफ़ाइल और विक्रय आँकड़े बदलते रहते हैं, जबकि प्रबंधक उसी समय विक्रय रिपोर्ट और पूर्वानुमान देखते हैं। दोनों को साथ-साथ डेटा पहुँच देने के लिए कौन-सी locking granularity सबसे ठीक रहेगी?
In a customer relationship management (CRM) system, sales representatives update customer profiles and sales data while managers analyze sales reports and forecasts. Which locking granularity strategy would support concurrent data access for both sales representatives and managers?
  1. Aपृष्ठ-स्तरीय (page-level) lockingPage-level locking
  2. Bपंक्ति-स्तरीय (row-level) lockingRow-level locking
  3. Cतालिका-स्तरीय (table-level) lockingTable-level locking
  4. Dपूरे डेटाबेस के स्तर की (database-level) lockingDatabase-level locking

सही उत्तर / Answer: (B)

हल / Solution
locking granularity जितनी बारीक होगी, उतने ही कम डेटा पर ताला लगेगा और उतने ही ज़्यादा काम साथ चल सकेंगे। row-level locking में सिर्फ़ वही पंक्ति रुकती है जिसे प्रतिनिधि बदल रहा है, बाक़ी पंक्तियाँ प्रबंधक पढ़ सकते हैं। page-level में उसी पृष्ठ की और पंक्तियाँ भी फँस जाती हैं। table-level पूरी तालिका रोक देता है और database-level तो पूरा डेटाबेस — दोनों में concurrency सबसे कम रहती है।
The finer the locking granularity, the smaller the piece of data that gets locked, so more work can run side by side. Row-level locking blocks only the row a sales representative is editing, leaving every other row readable for managers. Page-level locking traps unrelated rows on the same page. Table-level locking freezes the whole table and database-level locking the entire database, which gives the least concurrency.
प्रश्न 5उत्तर + हल Basic SQL
SQL का NOT BETWEEN keyword क्या करता है?
What does the SQL keyword NOT BETWEEN do?
  1. Aयह देखता है कि मान किसी तय सीमा के भीतर है या नहींIt checks if a value falls within a specified range
  2. Bयह देखता है कि मान किसी तय सीमा के बाहर हैIt checks if a value does not fall within a specified range
  3. Cयह मान की तुलना परिणाम-समुच्चय या subquery के किसी एक मान से करता हैIt compares a value to any value in a result set or subquery
  4. Dयह मान की तुलना परिणाम-समुच्चय या subquery के हर मान से करता हैIt compares a value to every value in a result set or subquery

सही उत्तर / Answer: (B)

हल / Solution
BETWEEN दोनों सिरों को जोड़कर सीमा देखता है, इसलिए «10 AND 20» में 10 और 20 भी गिने जाते हैं। NOT BETWEEN उसका उलटा है — शर्त तब सच होती है जब मान उस सीमा से बाहर पड़े, यानी नीचे वाले सिरे से कम या ऊपर वाले से ज़्यादा हो। सीमा के भीतर होना BETWEEN का काम है। किसी एक मान से तुलना ANY करता है और हर मान से ALL, इसलिए अंतिम दो विकल्प यहाँ लागू ही नहीं होते।
BETWEEN tests a range with both ends included, so a filter written as 10 AND 20 also accepts 10 and 20 themselves. NOT BETWEEN is its opposite: the condition is true when the value lies outside that range, below the lower end or above the upper one. Falling inside the range is what BETWEEN reports. Comparing with one value is the work of ANY and with every value of ALL, so the last two choices do not apply.
प्रश्न 6उत्तर + हल Storage and File structure
तापमान और आर्द्रता जैसे पर्यावरणीय कारकों के प्रति सबसे ज़्यादा प्रतिरोधी भंडारण माध्यम कौन-सा है?
Which storage medium has the highest resistance to environmental factors such as temperature and humidity?
  1. Aसॉलिड-स्टेट ड्राइव (SSD)Solid-state drive (SSD)
  2. Bहार्ड डिस्क ड्राइव (HDD)Hard disk drive (HDD)
  3. Cचुंबकीय टेप (magnetic tape)Magnetic tape
  4. Dऑप्टिकल डिस्कOptical disc

सही उत्तर / Answer: (A)

हल / Solution
सॉलिड-स्टेट ड्राइव (SSD) में न कोई घूमता पुर्ज़ा है, न खुली चुंबकीय परत; फ़्लैश चिप राल में बंद रहती है, इसलिए नमी, धूल और झटके उसे सबसे कम बिगाड़ते हैं। हार्ड डिस्क का सिर थाली से बाल भर दूर तैरता है और ज़रा-सा झटका उसे ख़राब कर देता है। चुंबकीय टेप नमी सोखकर चिपकने लगता है और ऑप्टिकल डिस्क गरमी तथा रोशनी से टेढ़ी होकर फीकी पड़ जाती है।
A solid state drive has no spinning parts and no exposed magnetic surface; its flash chips are sealed in resin, so humidity, dust and shock affect it least of the four media listed. A hard disk head floats a hair's breadth above the platter and a small jolt can wreck it. Tape absorbs moisture and sticks to itself, while optical discs warp in heat and their dye layer fades in light.
प्रश्न 7उत्तर + हल Complex Queries, Triggers, Views and Schema modification
SQL में grouping sets किस clause के साथ बताए जाते हैं?
Which clause is used to define grouping sets in SQL?
  1. AGROUP BY
  2. BHAVING
  3. CORDER BY
  4. DGROUP SETS

सही उत्तर / Answer: (A)

हल / Solution
पूरा रूप GROUP BY GROUPING SETS (...) है, यानी grouping sets GROUP BY का ही विस्तार हैं। इनसे एक ही query में कई तरह के समूह एक साथ बन जाते हैं, और ROLLUP तथा CUBE भी इसी जगह लिखे जाते हैं। HAVING बने हुए समूहों को छानता है, ORDER BY नतीजे को छाँटता है, और GROUP SETS नाम का कोई clause SQL में है ही नहीं — वह असली keyword से मिलता-जुलता भटकाव है।
The full form is GROUP BY GROUPING SETS (...), so grouping sets are an extension of GROUP BY itself. They let a single query build several different groupings at once, and ROLLUP and CUBE are written in the same place. HAVING filters groups once they exist, ORDER BY sorts the finished rows, and GROUP SETS is not an SQL clause at all, only a near miss of the real keyword.
प्रश्न 8उत्तर + हल Indexing and Hashing
डेटा वेयरहाउस के प्रश्नों (query) में bitmap अनुक्रमणिका का मुख्य फ़ायदा क्या है?
What is the primary benefit of using bitmap indices for data warehouse queries?
  1. Aप्रश्न के चलने का समय घटनाReduced query execution time
  2. Bलेन-देन संसाधन के लिए बेहतर सहाराEnhanced support for transaction processing
  3. Cडेटा की बेहतर संगति (consistency)Improved data consistency
  4. Dज़्यादा भंडारण दक्षताHigher storage efficiency

सही उत्तर / Answer: (A)

हल / Solution
डेटा वेयरहाउस के प्रश्नों में अक्सर कई स्तंभों पर एक साथ शर्तें लगती हैं। Bitmap अनुक्रमणिका इन शर्तों को बिट-स्तर की AND-OR क्रियाओं में बदल देती है, जो प्रोसेसर बहुत तेज़ी से निपटा देता है — इसीलिए मुख्य फ़ायदा प्रश्न के चलने का समय घटना है। कम विविधता वाले स्तंभों पर जगह भी बचती है, पर वह साथ मिलने वाला लाभ है; लेन-देन संसाधन में यह ढाँचा उलटा महँगा पड़ता है।
Warehouse queries usually filter on several columns at once. A bitmap index turns those filters into bit level AND and OR operations, which a processor performs extremely quickly, so the main gain is a sharp fall in query execution time. Space savings do occur on low cardinality columns, but that is a side benefit rather than the primary one, and for transaction processing this structure is actually a burden.
डेटाबेस डिज़ाइन में normalization का मुख्य लक्ष्य क्या है?
What is the primary goal of normalization in database design?
  1. Aडेटाबेस में टेबल की संख्या घटानाTo reduce the number of tables in the database
  2. Bडेटा का दोहराव (redundancy) घटाना और बदलाव की गड़बड़ियाँ (update anomalies) मिटानाTo reduce data redundancy and remove update anomalies
  3. Cडेटाबेस के ढाँचे को और जटिल बनानाTo increase the complexity of the database schema
  4. 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.
प्रश्न 10उत्तर + हल Recovery Techniques
डेटाबेस प्रबंधन प्रणाली में पुनर्प्राप्ति प्रबंधक (recovery manager) का उद्देश्य क्या है?
What is the purpose of the recovery manager in a database management system?
  1. Aडेटाबेस की बंदिशें (constraints) लागू करनाTo enforce database constraints
  2. Bडेटाबेस के लेन-देन (transactions) सँभालनाTo manage database transactions
  3. Cडेटा की अखंडता (integrity) बनाए रखनाTo ensure data integrity
  4. Dसिस्टम विफल होने के बाद डेटाबेस को सुसंगत (consistent) स्थिति में लौटानाTo restore the database to a consistent state after a system failure

सही उत्तर / Answer: (D)

हल / Solution
पुनर्प्राप्ति प्रबंधक (recovery manager) का काम विफलता के बाद शुरू होता है — वह लॉग पढ़कर प्रतिबद्ध लेन-देन के बदलाव दोबारा लगाता है और अधूरे लेन-देन पलटा देता है, जिससे डेटाबेस सुसंगत स्थिति में लौट आता है। बंदिशें लागू करना बंदिश-जाँच का हिस्सा है और लेन-देन सँभालना लेन-देन प्रबंधक (transaction manager) का काम। विकल्प 3 इतना चौड़ा है कि वह पूरे DBMS पर लागू होता है, इसलिए वह किसी एक अंग का उद्देश्य नहीं बताता।
The recovery manager starts working after a failure. It reads the log, reapplies the changes of committed transactions and rolls back the incomplete ones, so the database is brought back to a consistent state. Enforcing constraints is the job of the constraint checker, and running transactions is the job of the transaction manager. Option 3 is far too broad: keeping data correct is a goal of the whole system, not the purpose of this one component.
Programmer DBMS का पूरा प्रश्न-बैंकहर topic के सारे प्रश्न, हल और अभ्यास — FliQi Question Bank app में