Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
481 What does a CHECK constraint on a relationship attribute enforce?
Explanation
CHECK constraints limit attribute values, including attributes stored in a junction or associative table.
Last verified on 27-11-2026
482 Which action should be used when a referenced lookup value, such as a Country, is deleted but existing addresses must keep a valid country?
Explanation
RESTRICT protects lookup values that are still in use, forcing the user to reassign addresses first.
Last verified on 27-11-2026
483 A Student record is deleted with ON DELETE CASCADE on Enrolment.StudentID and ON DELETE CASCADE on Payment.StudentID. What happens?
Explanation
CASCADE applies independently on each child table, so all dependent rows in both tables are removed.
Last verified on 27-11-2026
484 What is the key difference between RESTRICT and NO ACTION in standard SQL?
Explanation
The SQL standard distinguishes them by timing, although many systems treat them the same in practice.
Last verified on 27-11-2026
485 If a foreign key is defined with ON DELETE CASCADE and ON UPDATE NO ACTION, what happens on a parent key update?
Explanation
ON UPDATE NO ACTION blocks the key change while children depend on it, even though deletes are cascaded.
Last verified on 27-11-2026
486 Which referential action preserves child rows but requires the foreign key to be nullable?
Explanation
SET NULL writes NULL into the foreign key, so the column must allow NULL values.
Last verified on 27-11-2026
487 A Library deletes a Book with ON DELETE SET NULL on Loan.BookID. What does this imply about Loans?
Explanation
SET NULL is chosen when the child record has historical value even after its parent is gone.
Last verified on 27-11-2026
488 What happens when ON DELETE CASCADE is defined on both sides of a relationship by mistake?
Explanation
Referential actions are directional, from the referenced parent to the referencing child; reversing them has no meaning for the same foreign key.
Last verified on 27-11-2026
489 Which constraint ensures that a relationship link cannot point to a non-existent entity?
Explanation
Referential integrity requires every foreign-key value to match an existing parent or be NULL.
Last verified on 27-11-2026
490 Which integrity rule requires every table to have a primary key?
Explanation
Entity integrity requires every table to have a primary key whose values are unique and not NULL.
Last verified on 27-11-2026