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

Formal Language — प्रश्न और उत्तर

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

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

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

भाषा
प्रश्न 1उत्तर + हल
RDBMS में बिना किसी शर्त वाला join कहलाता है:
A join in RDBMS without any condition is called:
  1. ASelf Join (स्व-जोड़)Self Join
  2. BLeft Outer Join (बायाँ बाहरी जोड़)Left Outer Join
  3. CRight Outer Join (दायाँ बाहरी जोड़)Right Outer Join
  4. DCross Join (क्रॉस जोड़)Cross Join

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

हल / Solution
Cross join में कोई join शर्त नहीं होती। इसलिए पहली टेबल की हर पंक्ति, दूसरी टेबल की हर पंक्ति से जुड़ जाती है। यह रिलेशनल अलजेब्रा का Cartesian product ही है। पहली टेबल में m और दूसरी में n पंक्तियाँ हों तो नतीजे में m × n पंक्तियाँ आएँगी। Self join में टेबल अपने से जुड़ती है और आम तौर पर शर्त लगती है। Left और right outer join बिना मेल की शर्त के बनते ही नहीं।
A cross join has no join condition. So every row of the first table is paired with every row of the second table. It is the Cartesian product of relational algebra. If the first table has m rows and the second has n rows, the result has m × n rows. In a self join a table is joined with itself, usually with a condition. Left and right outer joins cannot be formed without a matching condition.
प्रश्न 2उत्तर + हल
डेटाबेस के दो relations R1 और R2 पर intersection (प्रतिच्छेदन) ऑपरेशन है:
The intersection operation on two relations R1 and R2 of a database is:
  1. Aसाहचर्य (associative) है पर क्रमविनिमेय (commutative) नहींAssociative but not commutative
  2. Bक्रमविनिमेय है पर साहचर्य नहींCommutative but not Associative
  3. Cसाहचर्य और क्रमविनिमेय दोनोंBoth Associative and commutative
  4. Dन साहचर्य, न क्रमविनिमेयNeither Associative nor commutative

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

हल / Solution
Intersection दोनों relations की साझा tuples देता है, इसलिए क्रम बदलने से नतीजा नहीं बदलता: R1 ∩ R2 = R2 ∩ R1। यह क्रमविनिमेय (commutative) गुण है। तीन relations हों तो समूह बनाने का ढंग भी नतीजा नहीं बदलता: (R1 ∩ R2) ∩ R3 = R1 ∩ (R2 ∩ R3)। यह साहचर्य (associative) गुण है। दोनों गुण एक साथ सच हैं, इसलिए बाक़ी तीन विकल्प, जो किसी एक गुण को नकारते हैं, ग़लत हैं।
Intersection returns the tuples common to both relations, so changing the order does not change the result: R1 ∩ R2 = R2 ∩ R1. This is the commutative property. With three relations, the grouping does not change the result either: (R1 ∩ R2) ∩ R3 = R1 ∩ (R2 ∩ R3). This is the associative property. Both hold together, so the other three options, which deny one property, are wrong.
प्रश्न 3उत्तर + हल
रिलेशनल अलजेब्रा में कौन-सा मौलिक (fundamental) ऑपरेशन नहीं है?
Which is not a fundamental operation in relational algebra?
  1. ANatural join (प्राकृतिक जोड़)Natural join
  2. BCartesian product (कार्तीय गुणनफल)Cartesian product
  3. CSet difference (समुच्चय अंतर)Set difference
  4. DRename (नाम बदलना)Rename

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

हल / Solution
रिलेशनल अलजेब्रा के छह मौलिक ऑपरेशन हैं: select, project, union, set difference, Cartesian product और rename। Natural join इनमें नहीं है। उसे इन्हीं से बनाया जा सकता है: पहले R × S, फिर साझा कॉलम के बराबर होने की शर्त पर σ, और आख़िर में π से दोहराया कॉलम हटाना। इसलिए natural join derived ऑपरेशन है। Cartesian product, set difference और rename तीनों मौलिक सूची में हैं।
Relational algebra has six fundamental operations: select, project, union, set difference, Cartesian product and rename. Natural join is not one of them. It can be built from these: first R × S, then σ on equality of the common columns, and finally π to drop the repeated column. So natural join is a derived operation. Cartesian product, set difference and rename are all in the fundamental list.
प्रश्न 4उत्तर + हल
________ साझा मानों के आधार पर दो टेबलों को मिलाकर पंक्तियाँ लौटाता है।
The ________ returns rows after combining two tables based on common values.
  1. ADifference (अंतर)Difference
  2. BProduct (गुणनफल)Product
  3. CJoin (जोड़)Join
  4. DUnion (सम्मिलन)Union

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

हल / Solution
Join दो टेबलों को साझा कॉलम के बराबर मानों पर मिलाता है और जुड़ी हुई पंक्तियाँ लौटाता है। जैसे Employee(Emp_ID, Name, Dept_ID) और Department(Dept_ID, Dept_Name) को Dept_ID पर join करने से हर कर्मचारी के साथ विभाग का नाम मिलता है। Product भी पंक्तियाँ मिलाता है, पर वह मान नहीं देखता और हर जोड़ी बनाता है। Difference घटाता है। Union पंक्तियाँ एक सूची में रखता है, जोड़ता नहीं।
A join combines two tables on equal values in a shared column and returns the combined rows. Joining Employee(Emp_ID, Name, Dept_ID) with Department(Dept_ID, Dept_Name) on Dept_ID gives each employee's department name. A product also combines rows, but it ignores the values and forms every pair. Difference subtracts rows. Union puts rows into one list without combining them.
प्रश्न 5उत्तर + हल
किसी टेबल को उसी टेबल से join करना कहलाता है:
A table joined with itself is called:
  1. AJoin (जोड़)Join
  2. BSelf Join (स्व-जोड़)Self Join
  3. COuter Join (बाहरी जोड़)Outer Join
  4. DEqui Join (समता जोड़)Equi Join

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

हल / Solution
जब कोई टेबल अपने ही साथ join होती है, उसे self join कहते हैं। इसके लिए एक ही टेबल को दो अलग नाम (alias) दिए जाते हैं, जैसे Employee E और Employee M। फिर E.ManagerID = M.EmpID लिखकर हर कर्मचारी के साथ उसके मैनेजर का नाम निकाला जा सकता है। Join आम नाम है, इस ख़ास स्थिति का नहीं। Outer join बेमेल पंक्तियाँ रखता है। Equi join सिर्फ़ = वाली शर्त बताता है।
When a table is joined with itself, it is called a self join. The same table is given two different aliases, such as Employee E and Employee M. Then E.ManagerID = M.EmpID lists each employee next to the name of his manager. Join is the general term, not the name of this case. An outer join keeps unmatched rows. An equi join only describes a condition using =.
प्रश्न 6उत्तर + हल
निम्नलिखित में से कौन-सा रिलेशनल अलजेब्रा ऑपरेशन समुच्चय सिद्धांत (set theory) से नहीं लिया गया है?
Which of the following relational algebra operations is not from set theory?
  1. AUnion (सम्मिलन)Union
  2. BIntersection (प्रतिच्छेदन)Intersection
  3. CCartesian Product (कार्तीय गुणनफल)Cartesian Product
  4. DSelect (चयन)Select

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

हल / Solution
रिलेशनल अलजेब्रा के ऑपरेशन दो समूहों में बाँटे जाते हैं। पहला समूह गणित के समुच्चय सिद्धांत से आया है: union, intersection, set difference और Cartesian product। दूसरा समूह ख़ास तौर पर relations के लिए बना है: select, project, rename और join। Select (σ) किसी शर्त पर पंक्तियाँ छाँटता है, और यह ऑपरेशन साधारण समुच्चयों में नहीं होता। इसलिए select समुच्चय सिद्धांत से नहीं है, बाक़ी तीनों हैं।
Relational algebra operations fall into two groups. The first comes from mathematical set theory: union, intersection, set difference and Cartesian product. The second was designed specially for relations: select, project, rename and join. Select (σ) filters rows by a condition, which is not an operation of ordinary set theory. So select is not from set theory, while the other three are.
प्रश्न 7उत्तर + हल
टेबल में कॉलम (स्तंभ) हटाने का काम ________ ऑपरेशन से किया जाता है।
The operation of eliminating columns in a table is done by the ________ operation.
  1. ARestrict (प्रतिबंध)Restrict
  2. BProject (प्रक्षेपण)Project
  3. CUnion (सम्मिलन)Union
  4. DDivide (भाग)Divide

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

हल / Solution
Project (π) ऑपरेशन टेबल से सिर्फ़ चुने हुए कॉलम रखता है और बाक़ी कॉलम हटा देता है। जैसे π Name, Salary (Employee) में सिर्फ़ नाम और वेतन बचेंगे। मूल रिलेशनल अलजेब्रा में π दोहराई पंक्तियाँ भी हटा देता है। Restrict, select का ही दूसरा नाम है; यह पंक्तियाँ छाँटता है, कॉलम नहीं। Union दो टेबल की पंक्तियाँ मिलाता है। Divide 'सभी के लिए' वाली क्वेरी में काम आता है।
The Project (π) operation keeps only the chosen columns of a table and removes the rest. In π Name, Salary (Employee) only the name and salary remain. In pure relational algebra π also removes duplicate rows. Restrict is another name for select; it filters rows, not columns. Union combines the rows of two tables. Divide is used for 'for all' type queries.
प्रश्न 8उत्तर + हल
निम्नलिखित में से कौन-सा तुलना (comparison) ऑपरेटर नहीं है?
Which of the following is not a comparison operator?
  1. A<>
  2. B<
  3. C=<
  4. D>=

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

हल / Solution
SQL और रिलेशनल अलजेब्रा में मान्य तुलना ऑपरेटर हैं: =, <>, <, >, <= और >=। 'छोटा या बराबर' के लिए चिह्नों का क्रम तय है; पहले < और फिर =, यानी <=। उलटा लिखा =< कोई ऑपरेटर नहीं है, इसलिए क्वेरी में लिखने पर syntax error आएगा। <> 'बराबर नहीं' है, < 'छोटा है' और >= 'बड़ा या बराबर' है। तीनों मान्य हैं, इसलिए उत्तर =< है।
The valid comparison operators in SQL and relational algebra are =, <>, <, >, <= and >=. For 'less than or equal to' the order of the symbols is fixed: first < and then =, giving <=. The reversed form =< is not an operator and gives a syntax error in a query. <> means 'not equal', < means 'less than' and >= means 'greater than or equal to'. All three are valid, so the answer is =<.
प्रश्न 9उत्तर + हल
निम्नलिखित में से कौन relational डेटा के साथ काम करने (manipulation) के लिए ऑपरेशनों का मूल समूह है?
Which of the following constitutes a basic set of operations for manipulating relational data?
  1. APredicate calculus (विधेय कलन)Predicate calculus
  2. BRelational calculus (रिलेशनल कैलकुलस)Relational calculus
  3. CRelational algebra (रिलेशनल अलजेब्रा)Relational algebra
  4. DSQL

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

हल / Solution
रिलेशनल अलजेब्रा select, project, union, set difference, Cartesian product और rename जैसे ऑपरेशनों का समूह है। इन्हीं से relational डेटा पर हर मूल क्वेरी बनती है, और DBMS अंदर से SQL क्वेरी को भी इसी रूप में बदलकर चलाता है। Relational calculus ऑपरेशन नहीं देता, वह सिर्फ़ शर्त लिखने की भाषा है। Predicate calculus तर्कशास्त्र की पद्धति है। SQL व्यावहारिक क्वेरी भाषा है, जो इन्हीं विचारों पर बनी है।
Relational algebra is a set of operations such as select, project, union, set difference, Cartesian product and rename. Every basic query on relational data is built from these, and a DBMS internally turns SQL queries into this form before running them. Relational calculus gives no operations; it is a language for stating conditions. Predicate calculus is a system of logic. SQL is a practical query language built on these ideas.
प्रश्न 10उत्तर + हल
साझा (common) कॉलम किस join में हटा दिया जाता है?
The common column is eliminated in:
  1. ATheta join (थीटा जोड़)theta join
  2. BEqui join (समता जोड़)equi join
  3. CNatural join (प्राकृतिक जोड़)natural join
  4. DComposed join (संयुक्त जोड़)composed join

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

हल / Solution
Natural join एक जैसे नाम वाले कॉलम पर अपने आप बराबरी की शर्त लगाता है और नतीजे में उस साझा कॉलम को एक ही बार रखता है। जैसे Student(RollNo, Name) और Marks(RollNo, Marks) का natural join (RollNo, Name, Marks) देगा। Equi join में भी शर्त = वाली होती है, पर दोनों टेबल का कॉलम नतीजे में बना रहता है। Theta join किसी भी तुलना से जुड़ता है और कॉलम नहीं हटाता। Composed join मानक नाम नहीं है।
A natural join automatically applies an equality condition on same-named columns and keeps that common column only once in the result. The natural join of Student(RollNo, Name) and Marks(RollNo, Marks) gives (RollNo, Name, Marks). An equi join also uses =, but the column from both tables stays in the result. A theta join may use any comparison and removes no column. Composed join is not a standard name.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
यदि दो relations R और S को join किया जाए, तो R और S दोनों की मेल न खाने वाली tuples किस join में छोड़ दी जाती हैं?
If two relations R and S are joined, then the non-matching tuples of both R and S are ignored in:
  1. ALeft outer join (बायाँ बाहरी जोड़)left outer join
  2. BRight outer join (दायाँ बाहरी जोड़)right outer join
  3. CFull outer join (पूर्ण बाहरी जोड़)full outer join
  4. DInner join (आंतरिक जोड़)inner join
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
वह ऑपरेशन जिसे रिलेशनल अलजेब्रा का मूल (basic) ऑपरेशन नहीं माना जाता:
The operation which is not considered a basic operation of relational algebra is:
  1. AJoin (जोड़)Join
  2. BSelection (चयन)Selection
  3. CUnion (सम्मिलन)Union
  4. DCross product (कार्तीय गुणनफल)Cross product
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
रिलेशनल अलजेब्रा में क्या नहीं होता?
Relational Algebra does not have:
  1. ASelection ऑपरेटर (चयन)Selection operator
  2. BProjection ऑपरेटर (प्रक्षेपण)Projection operator
  3. CAggregation ऑपरेटर (समूहन)Aggregation operator
  4. DDivision ऑपरेटर (भाग)Division operator
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
निम्नलिखित में से किस रिलेशनल अलजेब्रा ऑपरेशन में भाग लेने वाली टेबलों का union-compatible होना ज़रूरी नहीं है?
Which of the following relational algebra operations does not require the participating tables to be union-compatible?
  1. ASet union (सम्मिलन)Set union
  2. BSet intersection (प्रतिच्छेदन)Set intersection
  3. CSet difference (समुच्चय अंतर)Set difference
  4. DJoin (जोड़)Join
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 15उत्तर app में
_________ ऐसे ऑपरेशनों का समूह देता है जो एक या अधिक relations को इनपुट के रूप में लेते हैं और आउटपुट में एक relation लौटाते हैं।
The _________ provides a set of operations that take one or more relations as input and return a relation as an output.
  1. ASchematic representation (योजनात्मक निरूपण)Schematic representation
  2. BRelational algebra (रिलेशनल अलजेब्रा)Relational algebra
  3. CScheme diagram (स्कीमा आरेख)Scheme diagram
  4. DRelation flow (रिलेशन प्रवाह)Relation flow
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 16उत्तर app में
_______ ऑपरेटर दो क्वेरी के परिणाम लेता है और सिर्फ़ वे पंक्तियाँ लौटाता है जो दोनों परिणामों में मौजूद हों।
The _______ operator takes the results of two queries and returns only rows that appear in both result sets.
  1. AUnion (सम्मिलन)Union
  2. BIntersect (प्रतिच्छेदन)Intersect
  3. CDifference (अंतर)Difference
  4. DProjection (प्रक्षेपण)Projection
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
_______ ऑपरेशन दो "समान संरचना वाली" टेबलों का समुच्चय सम्मिलन (set union) करता है।
The _______ operation performs a set union of two "similarly structured" tables.
  1. AUnion (सम्मिलन)Union
  2. BJoin (जोड़)Join
  3. CProduct (गुणनफल)Product
  4. DIntersect (प्रतिच्छेदन)Intersect
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 18उत्तर app में
किस ऑपरेशन के परिणाम में दोनों relations की tuples के सभी जोड़े होते हैं, चाहे उनके attribute के मान मेल खाएँ या नहीं?
The result of which operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match?
  1. AJoin (जोड़)Join
  2. BCartesian product (कार्तीय गुणनफल)Cartesian product
  3. CIntersection (प्रतिच्छेदन)Intersection
  4. DSet difference (समुच्चय अंतर)Set difference
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
_____ ऑपरेशन दो relations को जोड़ने देता है; इसमें हर relation से एक-एक tuple लेकर बने जोड़े को मिलाकर एक tuple बनाया जाता है।
The _____ operation allows the combining of two relations by merging pairs of tuples, one from each relation, into a single tuple.
  1. ASelect (चयन)Select
  2. BJoin (जोड़)Join
  3. CUnion (सम्मिलन)Union
  4. DIntersection (प्रतिच्छेदन)Intersection
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 20उत्तर app में
निम्नलिखित में से कौन-सी एक procedural (प्रक्रियात्मक) भाषा है?
Which one of the following is a procedural language?
  1. ADomain relational calculus (डोमेन रिलेशनल कैलकुलस)Domain relational calculus
  2. BTuple relational calculus (टपल रिलेशनल कैलकुलस)Tuple relational calculus
  3. CRelational algebra (रिलेशनल अलजेब्रा)Relational algebra
  4. DसभीALL
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 23उत्तर app में
निम्नलिखित रिलेशनल अलजेब्रा व्यंजक क्या करता है?
σ amount > 1200 (loan)
What does the following relational algebra expression do?
σ amount > 1200 (loan)
  1. Aloan की सभी tuples खोजता हैFinds all the tuples in loan
  2. Bloan की वे tuples खोजता है जिनमें amount 12000 से अधिक हैFinds the tuples in loan where the amount is greater than 12000
  3. Cloan की वे सभी tuples खोजता है जिनमें amount 1200 से अधिक हैFinds all the tuples in loan where the amount is greater than 1200
  4. Dloan की वे सभी tuples खोजता है जिनमें amount 120 से अधिक हैFinds all the tuples in loan where the amount is greater than 120
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 24उत्तर app में
वे संग्रह (collections) जिन पर aggregate फलन काम करते हैं, कहलाते हैं:
The collections on which aggregate functions can operate are called:
  1. AMultisets (बहु-समुच्चय)Multisets
  2. BMultivalues (बहु-मान)Multivalues
  3. CMulticollections (बहु-संग्रह)Multicollections
  4. DMultivariables (बहु-चर)Multivariables
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 26उत्तर app में
निम्नलिखित में से कौन-सा outer join (बाहरी जोड़) है?
Which of the following is an outer join?
  1. ALeft outer join (बायाँ बाहरी जोड़)Left outer join
  2. BRight outer join (दायाँ बाहरी जोड़)Right outer join
  3. CFull outer join (पूर्ण बाहरी जोड़)Full outer join
  4. Dउपर्युक्त सभीAll of the mentioned
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 27उत्तर app में
सेट ऑपरेटरों की प्राथमिकता (precedence) में व्यंजक का मूल्यांकन किस ओर से होता है?
In the precedence of set operators, the expression is evaluated from:
  1. Aबाएँ से बाएँLeft to left
  2. Bबाएँ से दाएँLeft to right
  3. Cदाएँ से बाएँRight to left
  4. Duser के बताए क्रम सेFrom user specification
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 29उत्तर app में
select ऑपरेशन में subscript में ________ आते हैं और sigma के बाद कोष्ठक में ___________ तर्क (argument) आता है।
For the select operation, the ________ appear in the subscript and the ___________ argument appears in the parentheses after the sigma.
  1. APredicates (शर्तें), relationPredicates, relation
  2. BRelation, predicates (शर्तें)Relation, Predicates
  3. COperation, predicates (शर्तें)Operation, Predicates
  4. DRelation, operationRelation, Operation
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 30उत्तर app में
रिलेशनल अलजेब्रा में selection (चयन) ऑपरेशन को दिखाने के लिए किसका प्रयोग किया जाता है?
Which of the following is used to denote the selection operation in relational algebra?
  1. APi (ग्रीक अक्षर π)Pi (Greek)
  2. BSigma (ग्रीक अक्षर σ)Sigma (Greek)
  3. CLambda (ग्रीक अक्षर λ)Lambda (Greek)
  4. DOmega (ग्रीक अक्षर ω)Omega (Greek)
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Formal Language के सभी 38 प्रश्न — उत्तर, हल और अभ्यास

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

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

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

DBMS के दूसरे topics

सभी topics