Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
701 In a Category hierarchy, deleting a parent category with ON DELETE CASCADE on ParentCategoryID will do what?
Explanation
CASCADE on a self-referencing key propagates the delete down the hierarchy, removing child categories as well.
Last verified on 27-11-2026
702 How many foreign keys are needed to implement a simple one-to-many relationship?
Explanation
A single foreign key in the child table is enough to link many children to one parent.
Last verified on 27-11-2026
703 What is a unary relationship?
Explanation
A unary relationship involves a single entity type relating to itself, such as an employee managing employees.
Last verified on 27-11-2026
704 A Doctor can treat many Patients and a Patient can be treated by many Doctors. How should this be modelled?
Explanation
A many-to-many link needs a junction table, otherwise neither side can store a list of the other side.
Last verified on 27-11-2026
705 What is a binary relationship?
Explanation
Most relationships, such as Customer-Order, are binary because they connect two different entity types.
Last verified on 27-11-2026
706 What extra information can a junction table store besides the two foreign keys?
Explanation
A junction table can hold facts about the link, for example the date a student enrolled or the grade earned in that course.
Last verified on 27-11-2026
707 What is a ternary relationship?
Explanation
A ternary relationship connects three entities at once, for example Doctor, Patient and Treatment in one association.
Last verified on 27-11-2026
708 In an Order-Product junction table OrderLine, what does a row represent?
Explanation
Each OrderLine row links one order to one product and records how many were ordered and at what price.
Last verified on 27-11-2026
709 Why can a many-to-many relationship NOT be stored directly with a foreign key in one table?
Explanation
Storing several IDs in one column would break atomicity and first normal form, so a junction table with one row per link is used instead.
Last verified on 27-11-2026
710 Which pair is a many-to-many relationship?
Explanation
One author can write many books and one book can have many authors, so the pair is many-to-many.
Last verified on 27-11-2026