FliQi Education App Download
प्रश्न-बैंक · DBMS

Some Important Database System Features — प्रश्न और उत्तर

DBMS · 22 जाँचे हुए (verified) प्रश्न

  • 22 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 12 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
जब दो ट्रांजैक्शन डेटा को अनलॉक करने के लिए एक-दूसरे की प्रतीक्षा करते रहते हैं, तो उस स्थिति को क्या कहते हैं?
A condition that occurs when two transactions wait for each other to unlock data is known as a(n):
  1. AShared lock
  2. BExclusive lock
  3. CBinary lock
  4. DDeadlock

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

हल / Solution
मान लीजिए T1 ने A को lock किया और अब B चाहता है। उधर T2 ने B को lock किया और A चाहता है। दोनों अपना lock तभी छोड़ेंगे जब उन्हें दूसरा आइटम मिले, इसलिए दोनों हमेशा रुके रहते हैं। इस हालत को deadlock कहते हैं। Shared lock पढ़ने के लिए और exclusive lock लिखने के लिए लगता है। Binary lock में सिर्फ़ दो स्थितियाँ होती हैं — locked और unlocked। ये तीनों lock के प्रकार हैं, स्थिति नहीं।
Suppose T1 has locked A and now wants B, while T2 has locked B and wants A. Each will release its lock only after getting the other item, so both stay stuck forever. This situation is called deadlock. A shared lock is taken for reading and an exclusive lock for writing. A binary lock has only two states, locked and unlocked. These three are types of locks, not a waiting situation. So the answer is deadlock.
प्रश्न 2उत्तर + हल
लेन-देन की अखंडता (transactional integrity) और डेटाबेस की संगति (consistency) बनाए रखने के लिए DBMS कौन-सी तकनीक अपनाता है?
In order to maintain transactional integrity and database consistency, what technology does a DBMS deploy?
  1. ATriggers
  2. BPointers
  3. CLocks
  4. DCursors

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

हल / Solution
जब कई ट्रांजैक्शन एक साथ चलते हैं, तो एक ही डेटा पर उनके काम आपस में टकरा सकते हैं। इससे lost update या dirty read जैसी गड़बड़ी होती है। DBMS इसे रोकने के लिए lock लगाता है। shared lock में सब पढ़ सकते हैं, और exclusive lock में सिर्फ़ एक ट्रांजैक्शन लिख सकता है। Trigger किसी घटना पर क्रिया चलाता है। Pointer स्मृति का पता है। Cursor पंक्ति-दर-पंक्ति पढ़ने का साधन है। इसलिए उत्तर Locks है।
When many transactions run at the same time, their work on the same data can clash. This causes problems such as lost updates or dirty reads. The DBMS uses locks to prevent this. With a shared lock many can read, and with an exclusive lock only one transaction can write. A trigger runs an action on an event, a pointer is a memory address, and a cursor reads rows one by one. So the answer is locks.
प्रश्न 3उत्तर + हल
ट्रिगर (Trigger) क्या है?
A trigger is:
  1. Aएक कथन जो किसी भी DBMS को शुरू करने देता हैA statement that enables to start any DBMS
  2. Bएक कथन जिसे उपयोगकर्ता एप्लिकेशन प्रोग्राम की debugging करते समय चलाता हैA statement that is executed by the user when debugging an application program
  3. Cएक शर्त जिसे सिस्टम डेटाबेस उपयोगकर्ता की वैधता जाँचने के लिए परखता हैA condition the system tests for the validity of the database user
  4. Dएक कथन जो डेटाबेस में बदलाव के साइड इफ़ेक्ट के रूप में सिस्टम द्वारा अपने आप चलाया जाता हैA statement that is executed automatically by the system as a side effect of modification to the database

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

हल / Solution
Trigger की पहचान दो बातों से होती है — यह अपने आप चलता है, और डेटाबेस में बदलाव होने पर चलता है। किसी तालिका पर INSERT, UPDATE या DELETE होते ही सिस्टम trigger को चला देता है। उपयोगकर्ता को इसे बुलाना नहीं पड़ता। DBMS शुरू करना ऑपरेटिंग सिस्टम या सर्वर का काम है। debugging में चलाया गया कथन उपयोगकर्ता ख़ुद चलाता है। उपयोगकर्ता की वैधता जाँचना authentication है। इसलिए सही परिभाषा विकल्प 4 है।
A trigger is marked by two things: it runs automatically, and it runs when the database is modified. As soon as an INSERT, UPDATE or DELETE happens on a table, the system fires the trigger without the user calling it. Starting a DBMS is the job of the operating system or server. A statement run while debugging is run by the user. Checking whether a user is valid is authentication. So the correct definition is option 4.
प्रश्न 4उत्तर + हल
समवर्ती ट्रांजैक्शन की स्थिति में lock लगाने से निम्नलिखित में से कौन-सी समस्या उत्पन्न हो सकती है?
Which one of the following problems can occur due to introducing locks in a concurrent transaction scenario?
  1. AInformation overwrite
  2. BLoss of information
  3. CDeadlock
  4. DLack of integrity

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

हल / Solution
Lock इसलिए लगाए जाते हैं ताकि दो ट्रांजैक्शन एक ही डेटा को एक साथ ग़लत ढंग से न बदलें। यानी lock जानकारी के ओवरराइट होने, खोने और integrity टूटने को रोकते हैं। पर lock की अपनी एक समस्या है। T1 ने A पर lock लगाया और B माँग रहा है, जबकि T2 ने B पर lock लगाया और A माँग रहा है। दोनों एक-दूसरे का इंतज़ार करते रह जाते हैं। इसे deadlock कहते हैं।
Locks are used so that two transactions do not change the same data at the same time in a wrong way. So locks prevent information overwrite, loss of information and lack of integrity. But locks bring a problem of their own. Suppose T1 holds a lock on A and asks for B, while T2 holds a lock on B and asks for A. Both keep waiting for each other forever. This situation is called deadlock.
प्रश्न 5उत्तर + हल
"कर्मचारी का वेतन 7000 रुपये से अधिक नहीं होना चाहिए।" यह किसका उदाहरण है?
"Employee's salary should not be greater than Rs. 7000." This is an example of:
  1. AInfeasible constraint
  2. BIntegrity constraint
  3. COverdefined constraint
  4. DField constraint

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

हल / Solution
Integrity constraint वह नियम है जो तय करता है कि डेटाबेस में कौन-सा डेटा मान्य है। इसका मक़सद डेटा को सही और सुसंगत रखना है। "वेतन 7000 रुपये से अधिक न हो" भी ऐसा ही नियम है। 8000 वाली पंक्ति डालने पर DBMS उसे रोक देगा। SQL में इसे CHECK (salary <= 7000) से लिखा जा सकता है। Infeasible और overdefined constraint DBMS के मानक पद नहीं हैं। Field constraint भी मानक वर्गीकरण नहीं है। इसलिए उत्तर integrity constraint है।
An integrity constraint is a rule that decides which data is valid in the database. Its purpose is to keep data correct and consistent. "Salary should not exceed Rs. 7000" is exactly such a rule. If someone tries to insert a row with 8000, the DBMS will reject it. In SQL it can be written as CHECK (salary <= 7000). Infeasible and overdefined constraints are not standard DBMS terms, and field constraint is not a standard category either.
प्रश्न 6उत्तर + हल
निम्नलिखित समूहों का सही मिलान पहचानिए —
A. Transaction, B. Natural join, C. B-tree, D. Concurrency control
1. Index, 2. Relational algebra, 3. Two phase locking, 4. ACID
Identify the correct matching of the following sets.
A. Transaction, B. Natural join, C. B-tree, D. Concurrency control
1. Index, 2. Relational algebra, 3. Two phase locking, 4. ACID
  1. AA-1, B-2, C-3, D-4
  2. BA-2, B-1, C-4, D-3
  3. CA-3, B-2, C-1, D-4
  4. DA-4, B-2, C-1, D-3

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

हल / Solution
Transaction के चार गुण होते हैं — Atomicity, Consistency, Isolation और Durability, जिन्हें मिलाकर ACID कहते हैं, इसलिए A-4। Natural join relational algebra का एक ऑपरेशन है, इसलिए B-2। B-tree डेटाबेस में index बनाने की सबसे आम संरचना है, इसलिए C-1। Two phase locking समवर्ती ट्रांजैक्शनों को नियंत्रित करने का protocol है, इसलिए D-3। यह क्रम A-4, B-2, C-1, D-3 सिर्फ़ विकल्प 4 में है।
A transaction has four properties: Atomicity, Consistency, Isolation and Durability, together called ACID, so A-4. Natural join is an operation of relational algebra, so B-2. A B-tree is the most common structure used to build an index in a database, so C-1. Two phase locking is a protocol for concurrency control, since it decides when a transaction may take and release locks, so D-3. This order, A-4, B-2, C-1, D-3, appears only in option 4.
प्रश्न 7उत्तर + हल
किसी तालिका (table) या दृश्य (view) से जुड़ा हुआ संग्रहीत प्रोग्राम कहलाता है —
A stored program that is attached to a table or a view is called:
  1. AEmbedded SELECT Statement
  2. BTrigger
  3. CSystem file
  4. DVirtual file

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

हल / Solution
Trigger एक संग्रहीत प्रोग्राम है जो किसी ख़ास तालिका या view से बाँधा जाता है। उस तालिका पर INSERT, UPDATE या DELETE होते ही यह अपने आप चल पड़ता है। Oracle में view पर INSTEAD OF trigger भी लगाया जा सकता है। Embedded SELECT किसी होस्ट भाषा के प्रोग्राम में लिखी गई query है, जो किसी तालिका से बँधी नहीं होती। System file और virtual file ऑपरेटिंग सिस्टम की फ़ाइलें हैं, संग्रहीत प्रोग्राम नहीं। इसलिए उत्तर Trigger है।
A trigger is a stored program that is tied to a particular table or view. As soon as an INSERT, UPDATE or DELETE happens on that table, it runs by itself. An INSTEAD OF trigger can sit on a view. An embedded SELECT is a query written inside a host language program and is not attached to any table. System files and virtual files belong to the operating system; they are not stored programs. So the answer is trigger.
प्रश्न 8उत्तर + हल
दो समवर्ती (concurrent) ट्रांजैक्शन T1 और T2 संघर्ष (conflict) में कब होते हैं?
Two concurrent transactions T1 and T2 are in conflict when:
  1. AT1 reads from x, T2 reads from y
  2. BT1 reads from x, T2 writes to x
  3. CT1 reads from x, T2 writes to y
  4. DT1 writes to x, T2 writes to y

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

हल / Solution
दो ऑपरेशन तभी संघर्ष में होते हैं जब तीन शर्तें साथ पूरी हों — वे अलग-अलग ट्रांजैक्शन के हों, एक ही डेटा आइटम पर हों, और उनमें से कम से कम एक write हो। विकल्प 2 में T1 x को पढ़ता है और T2 उसी x पर लिखता है, इसलिए तीनों शर्तें पूरी हैं। विकल्प 1, 3 और 4 में दोनों ट्रांजैक्शन अलग-अलग आइटम x और y पर काम करते हैं। अलग आइटम पर कोई संघर्ष नहीं होता।
Two operations conflict only when three conditions hold together: they belong to different transactions, they work on the same data item, and at least one of them is a write. In option 2, T1 reads x and T2 writes the same x, so all three conditions are met. In options 1, 3 and 4 the two transactions work on different items, x and y. Operations on different items never conflict, whatever their type. So the answer is option 2.
प्रश्न 9उत्तर + हल
कॉलम I के पदों का कॉलम II के पदों से सही मिलान कीजिए —
कॉलम I: A. Roll back, B. Atomicity, C. Entity, D. Domain
कॉलम II: P. Relationship, Q. Checkpoint, R. Attribute, S. Transaction
Find the correct match for the terms in Column I with those in Column II.
Column I: A. Roll back, B. Atomicity, C. Entity, D. Domain
Column II: P. Relationship, Q. Checkpoint, R. Attribute, S. Transaction
  1. AA-S, B-P, C-R, D-Q
  2. BA-Q, B-S, C-P, D-R
  3. CA-S, B-Q, C-R, D-P
  4. DA-Q, B-P, C-R, D-S

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

हल / Solution
Rollback रिकवरी से जुड़ा है। विफलता के बाद log में पीछे जाकर undo किया जाता है, और checkpoint बताता है कि कहाँ तक पीछे जाना है, इसलिए A-Q। Atomicity ट्रांजैक्शन का गुण है — या तो पूरा हो या बिल्कुल नहीं, इसलिए B-S। ER मॉडल में entity आपस में relationship से जुड़ती हैं, इसलिए C-P। Domain किसी attribute के संभव मानों का समूह है, इसलिए D-R। यह क्रम सिर्फ़ विकल्प 2 में है।
Rollback belongs to recovery. After a failure the log is read backwards to undo work, and a checkpoint tells how far back to go, so A-Q. Atomicity is a property of a transaction: it runs completely or not at all, so B-S. In the ER model, entities are linked by relationships, so C-P. A domain is the set of allowed values of an attribute, so D-R. This order, A-Q, B-S, C-P, D-R, appears only in option 2.
प्रश्न 10उत्तर + हल
कॉलम I के पदों का कॉलम II के पदों से सही मिलान कीजिए —
कॉलम I: A. Audit Trail, B. Row, C. Revoke, D. Trigger
कॉलम II: P. Tuple, Q. Privileges, R. Event-Condition-Action, S. Security
Find the correct match for the terms in Column I with those in Column II.
Column I: A. Audit Trail, B. Row, C. Revoke, D. Trigger
Column II: P. Tuple, Q. Privileges, R. Event-Condition-Action, S. Security
  1. AA-S, B-P, C-R, D-Q
  2. BA-P, B-S, C-Q, D-R
  3. CA-S, B-Q, C-R, D-P
  4. DA-S, B-P, C-Q, D-R

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

हल / Solution
Audit trail डेटाबेस पर हुई हर गतिविधि का रिकॉर्ड रखता है — किसने, कब, क्या बदला। यह सुरक्षा का साधन है, इसलिए A-S। relation की हर पंक्ति (row) को tuple कहते हैं, इसलिए B-P। REVOKE कमांड किसी उपयोगकर्ता से दिए गए अधिकार (privileges) वापस लेती है, इसलिए C-Q। Trigger घटना-शर्त-क्रिया (Event-Condition-Action) मॉडल पर चलता है, इसलिए D-R। यह क्रम A-S, B-P, C-Q, D-R सिर्फ़ विकल्प 4 में है।
An audit trail records every activity on the database: who changed what and when. It is a security tool, so A-S. Each row of a relation is called a tuple, so B-P. The REVOKE command takes back privileges given to a user, so C-Q. A trigger works on the Event-Condition-Action model: an event happens, a condition is checked and an action runs, so D-R. The order A-S, B-P, C-Q, D-R appears only in option 4.
आगे के 12 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 12उत्तर app में
डेटाबेस में बदलाव के साइड इफ़ेक्ट के रूप में सिस्टम द्वारा अपने आप चलाया जाने वाला कथन (statement) कहलाता है —
A statement that is executed automatically by the system as a side effect of a modification to the database is known as:
  1. AAssertion
  2. BTrigger
  3. CReferential constraint
  4. DInsertion
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
एक ट्रांजैक्शन फ़ाइल (transaction file) में क्या संग्रहीत होता है?
A transaction file stores:
  1. Aवह डेटा जो कभी-कभार बदलता हैData that rarely changes
  2. Bवह डेटा जो कभी नहीं बदलताData that never changes
  3. Cवह डेटा जो बार-बार बदलता हैData that frequently changes
  4. Dवह डेटा जो त्रुटिपूर्ण हैData that is erroneous
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 15उत्तर app में
______ किसी दिए गए परिणाम-समूह (result set) पर, या SELECT कथन से बने परिणाम पर, एक-एक पंक्ति करके काम करने की सुविधा देता है।
______ allows individual row operations to be performed on a given result set or on the result set generated by a SELECT statement.
  1. AProcedure
  2. BTrigger
  3. CCursor
  4. DNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 16उत्तर app में
क्लाइंट-सर्वर सिस्टम के लोकप्रिय होने के कारण हैं —
The reasons leading to the popularity of client-server systems are:
  1. ALAN पर अधिक शक्तिशाली वर्कस्टेशनMore powerful workstations on LANs
  2. Bअंतिम उपयोगकर्ताओं के ग्राफ़िकल यूज़र इंटरफ़ेस के लिए ज़रूरीNeeded for graphical user interfaces of end users
  3. Cसाझा डेटाबेस सँभालने वाले सिस्टम से प्रस्तुति (presentation) का कंप्यूटिंग भार हटानाRemove computing load for presentation services from the system managing a shared database resource
  4. DसभीAll
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
DBMS की ______ उपयोगिता बैकअप और ट्रांजैक्शन के इतिहास की मदद से डेटाबेस की सही स्थिति दोबारा बनाने की सुविधा देती है।
The DBMS utility ______ allows to reconstruct the correct state of the database from the backup and the history of transactions.
  1. ABackup
  2. BRecovery
  3. CMonitoring
  4. DData loading
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 18उत्तर app में
______ क्रैश और आपदा की स्थिति में मदद के लिए समय-समय पर डेटाबेस की प्रतियाँ बनाने की सुविधा देता है।
A ______ allows to make copies of the database periodically to help in the cases of crashes and disasters.
  1. ARecovery utility
  2. BBackup utility
  3. CMonitoring utility
  4. DData loading utility
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 21उत्तर app में
लॉग-इन के लिए बना एक कंप्यूटर सुरक्षा प्रोटोकॉल सूचना प्रणाली के ______ घटक का उदाहरण माना जा सकता है।
A computer security protocol for logging-in can be considered as an example of the ______ component of an information system.
  1. AData
  2. BSoftware
  3. CProcedure
  4. DHardware
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 22उत्तर app में
डेटाबेस का वह अभिन्न भाग जो विफलता (failure) से पहले वाली स्थिति में डेटाबेस को वापस ला सकता है, कहलाता है —
An integral part of a database that can restore the database to the previous state before failure is called:
  1. Aबैकअप स्कीम (Backup Scheme)Backup Scheme
  2. Bरिस्टोरिंग स्कीम (Restoring Scheme)Restoring Scheme
  3. Cट्रांजैक्शन स्कीम (Transaction Scheme)Transaction Scheme
  4. Dरिकवरी स्कीम (Recovery Scheme)Recovery Scheme
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Some Important Database System Features के सभी 22 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

DBMS के दूसरे topics

सभी topics