Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1041 What is ON UPDATE CASCADE?
Explanation
When a parent primary key value changes, ON UPDATE CASCADE updates the matching foreign key values in child rows automatically.
Last verified on 27-11-2026
1042 Which of the following is a composite key?
Explanation
The pair (OrderID, ProductID) jointly identifies an order line, so it is a composite key.
Last verified on 27-11-2026
1043 A table has attributes A, B, C. If {A, B} is a candidate key and {A} alone is not unique, is {A, B} minimal?
Explanation
A candidate key is minimal if no proper subset is a super key; here neither {A} nor {B} alone is unique, so {A, B} is minimal.
Last verified on 27-11-2026
1044 A super key that is not a candidate key is:
Explanation
A super key that is not minimal contains at least one attribute that can be removed without losing uniqueness.
Last verified on 27-11-2026
1045 Which key is used to create a relationship between two tables?
Explanation
The foreign key in one table references the primary key in another, creating the relationship.
Last verified on 27-11-2026
1046 In the tables Department(DeptID, DeptName) and Employee(EmpID, Name, DeptID), which column is the foreign key?
Explanation
DeptID in Employee references DeptID in Department, linking each employee to a department.
Last verified on 27-11-2026
1047 In the same tables, which column is the primary key of Employee?
Explanation
EmpID uniquely identifies each employee, so it is the primary key of the Employee table.
Last verified on 27-11-2026
1048 Can a primary key also be a foreign key in the same table?
Explanation
A primary key can double as a foreign key, for example in a 1:1 extension table or a weak entity whose key includes the owner's key.
Last verified on 27-11-2026
1049 What is a self-referencing foreign key?
Explanation
A self-referencing foreign key, such as ManagerID in Employee referencing EmpID, links rows within one table.
Last verified on 27-11-2026
1050 In an Employee table, ManagerID referencing EmpID in the same table is an example of:
Explanation
ManagerID points to another employee's EmpID in the same table, so it is self-referencing.
Last verified on 27-11-2026