Test Index
CBSE Class 12 Computer Science 2026 Paper Compartment
© examsnet.com
Question : 21 of 37
Marks:
+1,
-0
Assertion (A): If we define an attribute of a table as a Foreign key, then
UNIQUE and NOT NULL constraints are automatically applied to it.Reason (R): The Foreign key column of a table takes its values from the Primary key of another table.
Solution:
Concept:A foreign key is a column whose values refer to the primary key of another (parent) table. It gives referential integrity only.Explanation:Assertion: false. A foreign key column can have repeated values (many orders for one customer) and can be
NULL unless NOT NULL is added separately. It is the primary key that is automatically unique and not null.Reason: true. Foreign key values must match values of the primary key of the referenced table.Answer:Option D (Assertion (A) is false, but Reason (R) is true.)© examsnet.com
Go to Question: