Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
571 In an ER diagram, a double line between Employee and Department for the WorksFor relationship on the Employee side means what?
Explanation
A double line denotes total participation, so each employee instance must be linked to a department.
Last verified on 27-11-2026
572 Which constraint limits the maximum number of entities that can be related on one side?
Explanation
Cardinality, such as 1:N or M:N, limits how many instances on one side may be associated with an instance on the other side.
Last verified on 27-11-2026
573 A rule that every Order must belong to a Customer is an example of what?
Explanation
Total participation of Order in the Places relationship means no order can exist without a customer.
Last verified on 27-11-2026
574 Which of the following is a structural constraint on a relationship?
Explanation
Structural constraints describe the number of related instances and whether participation is required, unlike presentation or storage rules.
Last verified on 27-11-2026
575 In a 1:1 relationship between Person and Passport, what constraint prevents one person having two passports in the design?
Explanation
A unique foreign key enforces the one-to-one limit by allowing each parent value to occur only once on the child side.
Last verified on 27-11-2026
576 Why is a NOT NULL constraint on a foreign key a relationship constraint?
Explanation
A NOT NULL foreign key forces every child row to reference a parent, which implements total participation.
Last verified on 27-11-2026
577 What happens if ON DELETE CASCADE is defined on a self-referencing Employee.ManagerID and a manager is deleted?
Explanation
CASCADE on a self-referencing key can propagate down the hierarchy, deleting subordinates recursively.
Last verified on 27-11-2026
578 Which combination is logically inconsistent?
Explanation
SET NULL needs to store NULL, so it cannot work on a NOT NULL foreign-key column.
Last verified on 27-11-2026
579 A School changes a ClassID and ON UPDATE SET NULL is defined on Student.ClassID. What happens?
Explanation
SET NULL on update clears the link when the parent key changes, leaving the students unassigned.
Last verified on 27-11-2026
580 Why do designers often avoid ON UPDATE CASCADE on a natural primary key such as a national ID number?
Explanation
A frequently changing natural key forces widespread updates, so a stable surrogate key is usually preferred.
Last verified on 27-11-2026