Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
581 What is a relationship constraint in a database?
Explanation
Relationship constraints define valid combinations, including how many instances may participate and whether participation is mandatory.
Last verified on 27-11-2026
582 In a one-to-many relationship between Department and Employee, which constraint is enforced by the foreign key in Employee?
Explanation
The foreign key on the many side limits each child to one parent, while many children may share the same parent.
Last verified on 27-11-2026
583 What does total participation mean for an entity in a relationship?
Explanation
Total participation, shown by a double line in ER diagrams, means membership in the relationship is mandatory for every entity instance.
Last verified on 27-11-2026
584 Which statement about ON UPDATE RESTRICT is correct?
Explanation
RESTRICT blocks a parent-key update if any child still references the old value.
Last verified on 27-11-2026
585 A Department head is removed with ON DELETE SET DEFAULT on Employee.DeptID. What happens to the employees?
Explanation
SET DEFAULT replaces the foreign key with a pre-defined default value instead of deleting or nulling the child row.
Last verified on 27-11-2026
586 Why is ON DELETE CASCADE considered risky for an Order and OrderItem relationship if used carelessly?
Explanation
A single parent delete can cascade through many child rows, so accidental deletes can remove large amounts of data.
Last verified on 27-11-2026
587 In a Library system, deleting a Member with ON DELETE RESTRICT on Loan.MemberID will result in what if the member has active loans?
Explanation
RESTRICT protects active child rows, so the parent cannot be removed while loans still reference the member.
Last verified on 27-11-2026
588 What does NO ACTION mean as a referential action in most SQL systems?
Explanation
NO ACTION is similar to RESTRICT but the check may be deferred until the statement completes, rather than acting immediately.
Last verified on 27-11-2026
589 A Bank deletes a Branch with ON DELETE CASCADE on Account.BranchID. Which outcome is intended?
Explanation
CASCADE is used when child rows have no meaning without the parent, so accounts are removed with their branch.
Last verified on 27-11-2026
590 When a parent primary key is changed and no ON UPDATE action is specified, what usually happens?
Explanation
By default most systems use NO ACTION or RESTRICT, so a referenced key cannot be changed while children depend on it.
Last verified on 27-11-2026