Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1081 Can a foreign key column contain NULL values?
Explanation
A foreign key may be NULL by default, meaning the row has no related parent row, unless NOT NULL is specified.
Last verified on 27-11-2026
1082 Can a foreign key contain duplicate values?
Explanation
Duplicates are normal in a foreign key: many employees can belong to the same department.
Last verified on 27-11-2026
1083 In a 1:N relationship, the foreign key is placed in:
Explanation
The many-side table holds the foreign key referencing the one-side table's primary key.
Last verified on 27-11-2026
1084 What is referential integrity?
Explanation
Referential integrity prevents orphan rows by requiring foreign key values to exist in the parent table (or be NULL).
Last verified on 27-11-2026
1085 What happens if you try to insert a row with a foreign key value that does not exist in the parent table?
Explanation
The DBMS enforces referential integrity and rejects the insert because the referenced parent does not exist.
Last verified on 27-11-2026
1086 What happens if you try to delete a parent row that is referenced by child rows, with no cascade rule?
Explanation
Without ON DELETE CASCADE or SET NULL, the DBMS blocks deletion of a parent that still has referencing children.
Last verified on 27-11-2026
1087 What does ON DELETE CASCADE do?
Explanation
ON DELETE CASCADE propagates a parent deletion to all child rows that reference it.
Last verified on 27-11-2026
1088 What is the main purpose of a primary key?
Explanation
The primary key gives every row a unique, non-null identity for retrieval and referencing.
Last verified on 27-11-2026
1089 What is a super key?
Explanation
A super key is any attribute set whose values uniquely identify every row, even if it contains extra attributes.
Last verified on 27-11-2026
1090 In an ER diagram, which entity would most likely be weak in a university hostel system?
Explanation
A room is identified only within its hostel, so it is a weak entity dependent on Hostel.
Last verified on 27-11-2026