Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
491 Which constraint is violated if a foreign key contains a value with no matching primary key?
Explanation
A dangling foreign key breaks referential integrity because it points to a parent that does not exist.
Last verified on 27-11-2026
492 A rule that Salary must be greater than zero is which type of constraint?
Explanation
A check on allowed values for an attribute is a domain constraint, not a relationship or referential rule.
Last verified on 27-11-2026
493 A Parent Category is deleted with ON DELETE CASCADE on Category.ParentCategoryID. What is the risk?
Explanation
CASCADE on a self-referencing key propagates down the hierarchy, removing all descendant categories.
Last verified on 27-11-2026
494 In a Hospital system, Treatment is best seen as what?
Explanation
Treatment links a specific patient and doctor on a date and carries its own data, so it is an associative entity.
Last verified on 27-11-2026
495 Why is RESTRICT preferred over CASCADE for a Customer with a long order history?
Explanation
RESTRICT forces an explicit decision about history, while CASCADE would remove it without warning.
Last verified on 27-11-2026
496 What is the relationship degree?
Explanation
Degree is 2 for binary, 3 for ternary and 1 for unary or self-referencing relationships.
Last verified on 27-11-2026
497 In MySQL, which referential action is checked immediately and cannot be deferred?
Explanation
RESTRICT is checked immediately in MySQL, while NO ACTION is the standard deferred equivalent in systems that support deferral.
Last verified on 27-11-2026
498 A binary relationship involves how many entity types?
Explanation
Binary means two participating entity types, which is the most common relationship degree.
Last verified on 27-11-2026
499 What is a deferred foreign-key constraint?
Explanation
Deferrable constraints allow intermediate states, such as swapping keys, as long as integrity holds at commit time.
Last verified on 27-11-2026
500 A ternary relationship involves how many entity types?
Explanation
Ternary means three entity types participate in a single relationship, such as Doctor, Patient and Drug in a Prescription.
Last verified on 27-11-2026