Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
531 In a forum, a Reply that answers another Post is modelled how?
Explanation
Threaded replies form a hierarchy within one table, so a reply points to its parent post in the same table.
Last verified on 27-11-2026
532 Why is the top manager’s ManagerID usually NULL in an Employee table?
Explanation
The root of a hierarchy has no parent, so its self-referencing foreign key is left NULL.
Last verified on 27-11-2026
533 Which role names are needed when an Employee table has a self-referencing relationship?
Explanation
Role names clarify which instance plays the manager role and which plays the subordinate role in the same table.
Last verified on 27-11-2026
534 In a Parts table, a Part that is made up of other Parts is an example of what?
Explanation
A component part and its sub-parts are both parts, so the assembly hierarchy is recursive within the Parts table.
Last verified on 27-11-2026
535 How many tables are needed to implement a simple self-referencing 1:N relationship?
Explanation
A 1:N recursive relationship needs only one table, because the many side points back to the one side in the same table.
Last verified on 27-11-2026
536 What problem arises if ON DELETE CASCADE is set on a self-referencing ManagerID?
Explanation
CASCADE follows the recursive links down the hierarchy, so one delete can remove many levels of subordinates.
Last verified on 27-11-2026
537 In a social network, a User who follows another User is best modelled as what?
Explanation
Each user can follow many users and be followed by many, so the recursive M:N link needs a junction table with two foreign keys to User.
Last verified on 27-11-2026
538 What is the foreign key in a self-referencing relationship?
Explanation
Self-referencing means the referencing and referenced tables are the same table.
Last verified on 27-11-2026
539 A Course that requires another Course as a prerequisite is an example of what?
Explanation
One course can have many prerequisites and be a prerequisite for many courses, so it is a recursive M:N relationship needing a junction table.
Last verified on 27-11-2026
540 Which SQL feature is used to query all levels of a self-referencing hierarchy, such as all subordinates under a manager?
Explanation
A recursive CTE can walk the hierarchy level by level, which a single ordinary join cannot do for an unknown depth.
Last verified on 27-11-2026