25 questions · about 30 minutes. Press End Mock any time to see your score and the correct answers.
In SQL .......... is treated as a virtual table that is derived from other tables.
SQL में .......... को वर्चुअल टेबल माना जाता है जो अन्य टेबल्स से डेराइव होता है।
Correct answer: B. View
A view is a virtual table defined by a query (CREATE VIEW ... AS SELECT ...). It stores no data of its own; its rows come from the base tables each time it is used.
व्यू एक वर्चुअल टेबल है जो किसी क्वेरी से बनता है (CREATE VIEW ... AS SELECT ...)। इसमें अपना डेटा नहीं होता, पंक्तियाँ हर बार बेस टेबल्स से आती हैं।
The .......... states that no primary key value can be NULL.
.......... बताता है कि किसी भी प्राइमरी 'की' का मान NULL नहीं हो सकता है।
Correct answer: A. Entity Integrity Constraint
The entity integrity constraint says a primary key can never be NULL, because the key must identify every row. Referential integrity is the rule for foreign keys.
एंटिटी इंटीग्रिटी कंस्ट्रेंट कहता है कि प्राइमरी की कभी NULL नहीं हो सकती, क्योंकि उसी से हर पंक्ति की पहचान होती है। रेफरेंशियल इंटीग्रिटी फॉरेन की का नियम है।
Which operation is used to change the values of one or more attributes in a tuple (or tuples) of some relation R?
किसी रिलेशन R के टपल (टपल्स) के एक या अधिक एट्रीब्यूट्स के मान को बदलने के लिए किस ऑपरेशन का उपयोग किया जाता है?
Correct answer: A. Update
UPDATE changes attribute values in existing tuples (UPDATE R SET a = v WHERE ...). DELETE removes tuples, SELECT reads them, and WHERE is only a condition clause.
UPDATE मौजूदा टपल्स में एट्रीब्यूट के मान बदलता है (UPDATE R SET a = v WHERE ...)। DELETE टपल हटाता है, SELECT पढ़ता है और WHERE केवल शर्त है।
.......... are complete select-from-where blocks with in another SQL query.
.......... किसी अन्य SQL क्वेरी के भीतर कम्प्लीट सेलेक्ट-फ्रॉम-वेयर ब्लॉक हैं।
Correct answer: A. Nested queries
A nested query (subquery) is a full SELECT-FROM-WHERE block placed inside another query, e.g. in the WHERE clause: ... WHERE salary > (SELECT AVG(salary) FROM emp).
नेस्टेड क्वेरी (सबक्वेरी) किसी दूसरी क्वेरी के अंदर रखा गया पूरा SELECT-FROM-WHERE ब्लॉक है, जैसे WHERE salary > (SELECT AVG(salary) FROM emp)।
The select operation is used to choose a subset of tuples from a relation that satisfies a .............. .
सेलेक्ट ऑपरेशन का उपयोग टपल्स के सबसेट को चयनित करने में किया जाता है जो संतुष्ट करता है :
Correct answer: B. Selection Conditionसेलेक्शन कन्डीशन
σ<condition>(R) — the SELECT operation keeps only the tuples that satisfy the selection condition (predicate).
σ<शर्त>(R) — सेलेक्ट ऑपरेशन केवल वे टपल चुनता है जो सेलेक्शन कंडीशन को संतुष्ट करते हैं।
To get information from users you use ........... .
उपयोगकर्ताओं से जानकारी प्राप्त करने के लिए आप उपयोग में लेते हैं :
Correct answer: C. Formsफॉर्म्स
In a database such as MS Access, a form is the screen through which users enter and view data. Tables store data, queries retrieve it.
MS Access जैसे डेटाबेस में फॉर्म वह स्क्रीन है जिससे उपयोगकर्ता से डेटा लिया व दिखाया जाता है। टेबल डेटा रखती है, क्वेरी डेटा निकालती है।
This command is used to modify attribute values of one or more selected tuples :
इस कमांड का उपयोग एक या अधिक चयनित टपल्स की एट्रीब्यूट वैल्यूज़ को संशोधित करने के लिए किया जाता है :
Correct answer: C. Update
UPDATE table SET column = value WHERE condition modifies attribute values of the selected tuples. ALTER changes the table structure, DROP removes it.
UPDATE ... SET ... WHERE चुने गए टपल्स के मान बदलता है। ALTER टेबल की संरचना बदलता है और DROP टेबल हटाता है।
Degree of relationship type is the number of participating .............. .
रिलेशनशिप टाइप की डिग्री है, पार्टिसिपेट करने वाली ------------- की संख्या।
Correct answer: B. Entity types
The degree of a relationship type is the number of participating entity types (unary = 1, binary = 2, ternary = 3).
रिलेशनशिप टाइप की डिग्री उसमें भाग लेने वाले एंटिटी टाइप्स की संख्या है (यूनरी 1, बाइनरी 2, टर्नरी 3)।
The query that is used to summarize the data from various tables is called as :
वह क्वेरी जिसका उपयोग विभिन्न टेबल से डेटा को सारांशित करने के लिए किया जाता है, कहलाता है :
Correct answer: D. Crosstab query
A crosstab query summarises data (sum, count, average) and shows it in a grid with one field as row headings and another as column headings.
क्रॉसटैब क्वेरी डेटा का सारांश (योग, गिनती, औसत) पंक्ति व कॉलम हेडिंग वाले ग्रिड में दिखाती है।
In database ........... type of field is used to insert various objects mode in other Windows applications into table.
डेटाबेस में ---------- फील्ड का प्रयोग विंडोज एप्लीकेशन के ऑब्जेक्ट्स को टेबल में इन्सर्ट करने के लिए किया जाता है।
Correct answer: C. OLE object
An OLE Object field stores objects made in other Windows programs — Word documents, Excel sheets, pictures, sounds.
OLE Object फील्ड में अन्य विंडोज प्रोग्राम में बने ऑब्जेक्ट (Word फाइल, Excel शीट, चित्र) रखे जाते हैं।
A collection of concepts that can be used to describe the structure of database and provides the necessary means to achieve this abstraction :
कन्सेप्ट्स का वह संग्रह जिसका उपयोग डेटाबेस की संरचना के वर्णन के लिए एवं एब्सट्रेक्शन प्राप्त करने के लिये किया जाता है :
Correct answer: A. Data Modelडेटा मॉडल
A data model is a set of concepts for describing the structure of a database (types, relationships, constraints) and gives data abstraction.
डेटा मॉडल डेटाबेस की संरचना (डेटा टाइप, संबंध, शर्तें) बताने वाली अवधारणाओं का समूह है।
A field that gives each record a unique identity is called as :
एक फील्ड जो प्रत्येक रिकॉर्ड को एक विशिष्ट पहचान देता है, कहलाता है :
Correct answer: C. Primary key
A primary key uniquely identifies each record and cannot be NULL.
प्राइमरी की हर रिकॉर्ड को अद्वितीय पहचान देती है और NULL नहीं हो सकती।
The capacity to change the conceptual schema without having to change the external schemas or additional programs is called as ............... .
एक्सटर्नल स्कीमा या अतिरिक्त प्रोग्राम्स को बदले बिना कन्सेप्चुअल स्कीमा को बदलना ---------- कहलाता है।
Correct answer: D. Logical Data Independenceलॉजिकल डेटा इन्डिपेन्डेन्स
Logical data independence: the conceptual schema can change without changing external schemas or application programs. Physical independence is the same for the internal schema.
लॉजिकल डेटा इंडिपेंडेंस: कॉन्सेप्चुअल स्कीमा बदलने पर भी एक्सटर्नल स्कीमा/प्रोग्राम नहीं बदलने पड़ते।
In SQL terminology a ................ is a single table that is derived from other tables.
SQL शब्दावली में ------------ एक ऐसी टेबल है जो अन्य टेबल्स से बनाया जाता है।
A view is a virtual table defined by a query on other (base) tables.
व्यू अन्य (बेस) टेबल्स से क्वेरी द्वारा बनी एक वर्चुअल टेबल है।
SQL command used to add a new column in an existing table is :
एक मौजूदा टेबल में एक नया कॉलम जोड़ने के लिए प्रयुक्त SQL कमांड है :
Correct answer: A. ALTER
ALTER TABLE ... ADD column_name datatype adds a new column. UPDATE changes values in rows, it does not change the structure.
ALTER TABLE ... ADD कॉलम_नाम डेटाटाइप से नया कॉलम जुड़ता है। UPDATE केवल पंक्तियों के मान बदलता है।
In context of deadlock prevention in DBMS, wait-die and wound-wait schemes are ........ techniques.
DBMS में डेडलॉक प्रिवेंशन के संदर्भ में, wait-die तथा wound-wait स्कीम ...... तकनीक है।
Correct answer: D. non-preemptive and preemptive respectivelyक्रमश: नॉन - प्रिम्पटिव तथा प्रिम्पटिव
Wait-die: an older transaction waits for a younger one, a younger one dies — nobody is forced to give up a lock, so it is non-preemptive. Wound-wait: an older transaction wounds (rolls back) the younger holder — preemptive.
Wait-die में कोई भी ट्रांजेक्शन किसी से लॉक छीनता नहीं (नॉन-प्रिम्पटिव)। Wound-wait में पुराना ट्रांजेक्शन नए को रोलबैक करा देता है (प्रिम्पटिव)।
In context of databases consider set operations on relation R and S, and select a true statement :
डाटाबेस के संदर्भ में रिलेशन R तथा S पर सेट ऑपरेशनों पर विचार करें तथा सत्य कथन का चुनाव कीजिए :
Correct answer: C. (R – S) ∩ (S – R) = φ
R − S has tuples only in R and S − R tuples only in S; no tuple can be in both, so (R − S) ∩ (S − R) = φ. Their union is the symmetric difference, not φ, R ∩ S or R ∪ S in general.
R − S में केवल R के और S − R में केवल S के टपल हैं; कोई टपल दोनों में नहीं हो सकता, अतः (R − S) ∩ (S − R) = φ।
In context of 2-phase locking protocol in DBMS, a transaction issues lock requests in ......... phase and unlock requests in ........ phase.
डाटाबेस में 2- फेज लॉकिंग के संदर्भ में, एक ट्रांजेक्शन लॉक निवेदन ....... फेज में तथा अनलॉक निवेदन ........ फेज में जारी करता है।
Correct answer: A. Growing, Shrinkingग्रोइंग, श्रिंकिंग
In two-phase locking a transaction first acquires locks (growing phase) and, once it releases any lock, can only release (shrinking phase).
टू-फेज लॉकिंग में ट्रांजेक्शन पहले लॉक लेता है (ग्रोइंग फेज) और एक बार लॉक छोड़ने के बाद केवल छोड़ता है (श्रिंकिंग फेज)।
Choose the SQL commands to perform following operations on a relation R :
I : Retain Relation R in database, but delete all tuples in R.
II : Delete all information about R in Database.
एक रिलेशन R पर निम्न क्रियाएँ करने के लिए SQL कमांड्स का चुनाव कीजिए :
I : रिलेशन R को डाटाबेस में रखें परन्तु उसके सारे टपल्स डिलीट करें।
II : रिलेशन R के बारे में समस्त सूचनाएँ डाटाबेस से डिलीट करें।
Correct answer: B. I : Delete from R; II : Drop table R
DELETE FROM R removes every tuple but keeps the table; DROP TABLE R removes the table and its definition from the database.
DELETE FROM R सभी टपल हटाता है पर टेबल रहती है; DROP TABLE R पूरी टेबल व उसकी परिभाषा हटा देता है।
If the following functional dependencies holds on a selection R : A → B, A → C, BC → D, C → F, B → E, then which of the following dependency does not hold on R ?
यदि एक रिलेशन R पर निम्न कार्यात्मक निर्भरताएँ मौजूद हैं : A → B, A → C, BC → D, C → F, B → E, तब निम्न में से कौन-सी कार्यात्मक निर्भरता R पर मौजूद नहीं है ?
Correct answer: D. BD → EF
A → B, C gives A → D (via BC) and A → E, F. BC → D, E, F holds too. But BD⁺ = {B, D, E}; F needs C, so BD → EF does not hold.
A से B, C, D, E, F सब मिलते हैं और BC → DEF भी सही है। पर BD⁺ = {B, D, E}; F के लिए C चाहिए, अतः BD → EF लागू नहीं।
The ........... of weak entity set distinguishes among all those entities in the weak entity set that depends upon one particular strong entity.
वीक एंटिटी सेट का .......... उस वीक एंटिटी सेट की उन सभी एंटिटीज में भेद करता है जो किसी एक विशिष्ट स्ट्रांग एंटिटी पर निर्भर है।
Correct answer: B. Discriminator
A weak entity's discriminator (partial key) separates the weak entities that depend on the same strong entity; with the owner's key it forms the full key.
वीक एंटिटी का डिस्क्रिमिनेटर (पार्शियल की) एक ही स्ट्रांग एंटिटी पर निर्भर एंटिटीज़ में भेद करता है।
A function that has no partial functional dependencies is in …….. form.
एक फंक्शन जिसमें कोई आंशिक कार्यात्मक निर्भरता नहीं है …….. के रूप में है।
Correct answer: B. 2NF
A relation (the question says 'function') in 1NF with no partial dependency on part of a composite key is in 2NF.
1NF में जो रिलेशन किसी आंशिक निर्भरता (partial dependency) से मुक्त हो, वह 2NF में होता है।
Which of the following is not a valid aggregate function ?
निम्नलिखित में से कौन एक वैध एग्रीगेट फंक्शन नहीं है ?
Correct answer: B. COMPUTEकंप्यूट
SQL aggregate functions are COUNT, SUM, AVG, MAX and MIN. COMPUTE is not one.
SQL के एग्रीगेट फंक्शन COUNT, SUM, AVG, MAX, MIN हैं; COMPUTE नहीं।
SQL Views are also known as :
SQL व्यू को निम्न रूप में भी जाना जाता है :
Correct answer: B. Virtual Tablesवर्चुअल टेबल्स
A view stores only its query and has no data of its own, so it is called a virtual table.
व्यू केवल क्वेरी रखता है, उसका अपना डेटा नहीं होता, इसलिए इसे वर्चुअल टेबल कहते हैं।
If one attribute is determinant of second, which in turn is determinant of third, then the relation cannot be :
यदि एक एट्रिब्यूट दूसरे का निर्धारक है, जो बदले में तीसरे का निर्धारक है, तो यह संबंध क्या नहीं हो सकता ?
Correct answer: D. 3NF
A → B and B → C is a transitive dependency, which 3NF forbids; such a relation cannot be in 3NF.
A → B और B → C संक्रामी (transitive) निर्भरता है जो 3NF में नहीं होनी चाहिए; अतः रिलेशन 3NF में नहीं हो सकता।