Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
691 What is the first step when mapping an ER diagram to tables?
Explanation
Mapping starts by turning each entity into a table with its attributes and primary key, then adding relationships as foreign keys or junction tables.
Last verified on 27-11-2026
692 If every Order must belong to a Customer, what is the participation of Order in the Customer-Order relationship?
Explanation
Total participation means every order must be linked to a customer, so no order can exist without one.
Last verified on 27-11-2026
693 In a one-to-many relationship, what is the minimum cardinality on the many side?
Explanation
The many side can have zero, one or many related rows for a given parent, unless a business rule requires at least one.
Last verified on 27-11-2026
694 In a one-to-one relationship, what is the maximum cardinality on each side?
Explanation
Each side can link to at most one row on the other side, which is the definition of one-to-one.
Last verified on 27-11-2026
695 A Hospital has Wards and Beds. One ward has many beds and each bed is in one ward. Which table holds the foreign key?
Explanation
The many side, Bed, stores WardID to point to its single ward.
Last verified on 27-11-2026
696 In a Parts table, a part can be made of other parts. What type of relationship is this?
Explanation
A part can contain many parts and can be used in many other parts, so the bill-of-materials link is a many-to-many self-referencing relationship.
Last verified on 27-11-2026
697 What is the primary key of a junction table for a many-to-many self-referencing relationship, such as UserFollow?
Explanation
The pair identifies one follow link and prevents the same follow being recorded twice.
Last verified on 27-11-2026
698 Which SQL statement creates a self-referencing foreign key in an Employee table?
Explanation
The foreign key column ManagerID must reference the primary key EmployeeID of the same Employee table.
Last verified on 27-11-2026
699 To list all employees with their manager’s name, what kind of join is needed?
Explanation
A self-join joins the Employee table to itself, once for the employee and once for the manager, using ManagerID equals EmployeeID.
Last verified on 27-11-2026
700 Why is a self-join necessary for a self-referencing table?
Explanation
To compare a row with another row in the same table, the query must treat the table as two separate aliases.
Last verified on 27-11-2026