Test Index
CBSE Class 12 Computer Science 2025 Paper Compartment
© examsnet.com
Question : 21 of 37
Marks:
+1,
-0
Assertion (A) : Foreign key column of a table cannot have
NULL entries.Reason (R) : Primary key column of a table cannot have NULL entries.
Solution:
Explanation:Assertion: a foreign key value must either match a primary key value of the referenced table or be NULL. NULL simply means the row is not linked yet (e.g. an employee not yet given a department), unless a NOT NULL constraint is added separately. A is false.Reason: a primary key must identify every row, so it is UNIQUE and NOT NULL. R is true.Key point: The NOT NULL rule belongs to the primary key, not to the foreign key.Answer:Option D (Assertion (A) is false, but Reason (R) is true.)
© examsnet.com
Go to Question: