4
ICAR JRF Computer Application 29 Jun 2024Shift 1
MCQ (Single Correct) +4 −1

Let R1(a, b, c) and R2(x, y, z) be two relations in which ais the foreign key of R1 that refers to the primary key of R2 Consider the following four options

(A) .Insert into R1
(B) .Insert into R2
(C) .Delete from R1
(D) .Delete from R2

Which of the following is correct about the referential integrity constraint with respect to above?
Choose the correct answer from the options given below:

EXPLANATION Relational Model
  • Referential Integrity Constraint Violations:
  • Given $R_1(a, b, c)$ where $a$ is a foreign key referencing the primary key of $R_2(x, y, z)$:
  • Insert into $R_1$: Inserting a tuple with a foreign key value $a$ that does not exist in $R_2$ causes a referential integrity violation.
  • Insert into $R_2$: Inserting into the referenced relation never violates referential integrity.
  • Delete from $R_1$: Deleting from the referencing relation removes a reference and never causes a violation.
  • Delete from $R_2$: Deleting a primary key tuple from $R_2$ that is currently referenced by tuples in $R_1$ leaves dangling references and causes a referential integrity violation.
  • Therefore, operations (d) and (a) can cause violations.
  • Conclusion: Operations (d) and (a) will cause violations (Option 4).

Correct option: (4) Operations (d) and (a) will cause violations

Explanation not matching this question? क्या व्याख्या इस प्रश्न से मेल नहीं खा रही? Report
Want to practice this paper in exam conditions? क्या आप परीक्षा जैसे माहौल में अभ्यास करना चाहते हैं? Test yourself in 5-question batch format with timer and hidden answers. 5-प्रश्नों के बैच फॉर्मैट, टाइमर और छिपे उत्तरों के साथ खुद को परखें।
Start Practice Mode → प्रैक्टिस टेस्ट मोड शुरू करें →

Computer Application विषय एवं अध्याय

विषय एवं पाठ्यक्रम के अनुसार सभी अध्याय देखें

Official PYQ Papers

Previous Year Papers of Computer Application

Practice official shift-wise question papers with answer keys and detailed explanations on the actual exam pattern.

1
Total Available Previous Papers

Choose Exam

Exam Directory

Browse official Previous papers and mock tests

10 Major Agriculture Exams Available