Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
441 A Task can depend on another Task before it can start. What kind of relationship is this?
Explanation
One task can depend on many tasks and be a prerequisite for many, so it is a recursive M:N relationship.
Last verified on 27-11-2026
442 Why are role names essential in a self-referencing relationship?
Explanation
Without role names such as Manager and Subordinate, it is unclear which instance is on which side of the recursive link.
Last verified on 27-11-2026
443 In a Bill of Materials, a Finished Product is made of Components that are also Products. What is the junction table called?
Explanation
The BOM junction table links a parent product to its component products, both of which are products.
Last verified on 27-11-2026
444 Which foreign-key implementation is correct for a self-referencing table in SQL?
Explanation
The foreign key must reference the primary key of the same table, using the self-referencing column.
Last verified on 27-11-2026
445 What happens if you insert an Employee with a ManagerID that does not exist in Employee?
Explanation
Referential integrity applies within the same table too, so a manager must already exist before a subordinate can reference them.
Last verified on 27-11-2026
446 In a recursive relationship, what is the degree of the relationship?
Explanation
Degree counts entity types, not roles or tables, so a self-referencing relationship is unary even though two roles are involved.
Last verified on 27-11-2026
447 If a Course has no students yet, how many rows does it have in the Enrolment junction table?
Explanation
A junction table holds only actual links, so a course with no enrolments has no rows there.
Last verified on 27-11-2026
448 A university Course has a PrerequisiteID that references CourseID. A course with no prerequisite has what value?
Explanation
A root course has no prerequisite, so the nullable self-referencing foreign key is left NULL.
Last verified on 27-11-2026
449 A junction table with a surrogate primary key, such as EnrolmentID, still needs what?
Explanation
A surrogate key does not stop the same pair being inserted twice, so the pair itself must also be unique.
Last verified on 27-11-2026
450 Which scenario is a foreign-key implementation error?
Explanation
A foreign key must reference a primary key or unique key; referencing a non-unique name cannot identify a single parent row.
Last verified on 27-11-2026