डाटाबेस र DBMS – Database & DBMS MCQ
डाटाबेस र DBMS – कम्प्युटर र IT
Database & DBMS · Computer & IT (Technical) · ५६३ प्रश्न
५६३ प्रश्न उपलब्ध। मोड छान्नुहोस्:
डाटाबेस र DBMS: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
A join in which a table is joined with itself, for example to find each employee's manager from the same Employee table, is a:
सही उत्तर: क) Self join
In a self join the same table appears twice with different aliases, e.g. FROM Employee e JOIN Employee m ON e.manager_id = m.emp_id.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The intersection of relations R and S can be expressed using only set difference as:
सही उत्तर: क) R - (R - S)
R - S removes common tuples from R; subtracting that from R leaves exactly the tuples present in both.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Queries such as 'find students who have enrolled in ALL courses' are expressed in relational algebra using the:
सही उत्तर: घ) Division operator (÷)
Division R ÷ S returns those values in R that are paired with every tuple of S, which matches 'for all' queries.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
For the union of two relations to be valid in relational algebra, the relations must be:
सही उत्तर: ख) Union-compatible (same number of attributes with matching domains)
Union, intersection and difference require both relations to have the same degree and corresponding attributes with compatible domains.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In relational algebra, the operator used to choose rows (tuples) that satisfy a condition is:
सही उत्तर: घ) Selection (σ)
Selection σ filters tuples by a predicate, while projection π picks columns.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
For relation R(A, B, C) with functional dependencies A → B, B → C and C → A, how many candidate keys are there?
सही उत्तर: ग) 3
A+, B+ and C+ each equal {A, B, C}, so each single attribute is a candidate key: A, B and C.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Relation R(A, B, C, D) has exactly two candidate keys, A and B. How many super keys does R have?
सही उत्तर: ग) 12
Super keys are sets containing A or B: 8 contain A, 8 contain B, and 4 contain both, so 8 + 8 - 4 = 12.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Unlike a primary key column, a foreign key column:
सही उत्तर: ख) Can contain NULL values and duplicate values
A foreign key must match a referenced key value or be NULL, and many child rows may share the same foreign key value.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A system-generated key with no business meaning, such as an auto-increment ID, used as the primary key is called a:
सही उत्तर: क) Surrogate key
A surrogate key is an artificial identifier created only to identify rows uniquely, unlike natural keys such as citizenship number.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In the extended ER model, treating a relationship together with its participating entities as a higher-level entity so that it can take part in another relationship is called:
सही उत्तर: घ) Aggregation
Aggregation lets a relationship set be treated as an abstract entity, e.g. linking a 'works-on' relationship to a 'Manager' entity.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।