Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
411 Which of the following is the best test that a many-to-many mapping is correct?
Explanation
The test checks both directions of many and the uniqueness of each pair, which are the defining properties of M:N mapping.
Last verified on 27-11-2026
412 Which order should tables be created in when foreign keys link them?
Explanation
A foreign key cannot reference a table or key that does not yet exist, so parents are created before children.
Last verified on 27-11-2026
413 A Doctor can treat many Patients, and a Patient can be treated by many Doctors over time. What is the correct mapping?
Explanation
The relationship is many-to-many, so it needs a junction table; a single foreign key would limit each side to one link.
Last verified on 27-11-2026
414 How can a dangling reference be prevented in a database?
Explanation
A foreign key constraint blocks foreign key values that do not match an existing parent row, preventing dangling references.
Last verified on 27-11-2026
415 What does it mean to say a relationship is identifying?
Explanation
An identifying relationship is the link through which a weak entity gets part of its key from its owner.
Last verified on 27-11-2026
416 Why is a surrogate key often used as the referenced key instead of a natural key?
Explanation
A stable artificial key avoids the ripple effect of changing a natural key that is referenced by many child rows.
Last verified on 27-11-2026
417 Which of the following pairs is a strong entity and its weak entity?
Explanation
A Dependent has no independent identity and is identified by EmployeeID plus DependentName, making it weak.
Last verified on 27-11-2026
418 In an Invoice-LineItem design, LineItem has a composite primary key of InvoiceID and LineNo. What does this show?
Explanation
The composite key includes the owner's key, which is the hallmark of a weak entity in an identifying relationship.
Last verified on 27-11-2026
419 In a 1:N relationship, the foreign key is placed on the many side. What would happen if it were placed on the one side instead?
Explanation
A single foreign key on the one side holds one value, so it cannot represent many children.
Last verified on 27-11-2026
420 Which of the following is an entity, not a relationship?
Explanation
Book exists independently with its own attributes, while Borrows, Writes and Enrols are associations between entities.
Last verified on 27-11-2026