कम्प्युटर र सूचना प्रविधि (प्राविधिक)
कम्प्युटर र सूचना प्रविधि (प्राविधिक)
Computer & IT (Technical) · ५,०७६ प्रश्न
५,०७६ प्रश्न उपलब्ध। मोड छान्नुहोस्:
कम्प्युटर र IT: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Which SQL clause sorts the result of a query, for example from highest to lowest salary?
सही उत्तर: घ) ORDER BY salary DESC
ORDER BY sorts the output; ASC (the default) gives ascending order and DESC gives descending order.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Column dept contains the values D1, D2, D1, NULL and D3. What does SELECT COUNT(DISTINCT dept) return?
सही उत्तर: ख) 3
COUNT(DISTINCT column) counts different non-NULL values: D1, D2 and D3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Table Emp has 5 rows with dept_id values 10, 20, 20, 30 and NULL. Table Dept has unique dept_id values 10, 20 and 40. How many rows does Emp INNER JOIN Dept ON Emp.dept_id = Dept.dept_id return?
सही उत्तर: ख) 3
Only employees whose dept_id matches a Dept row join: 10 (one row) and 20 (two rows), giving 3; 30 and NULL have no match.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
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.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।