Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
721 A Person has one Passport and a Passport belongs to one Person. What is the relationship?
A
One-to-many
B
Many-to-many
C
Self-referencing
D
One-to-one
Explanation
Each person has at most one passport and each passport belongs to one person, which is a one-to-one relationship.
Last verified on 27-11-2026
722 A company has Departments and Projects. One department runs many projects and each project belongs to one department. What is the foreign key?
A
A junction table key
B
ProjectID in the Department table
C
EmployeeID in both tables
D
DepartmentID in the Project table
Explanation
Each project row stores the ID of its single department, so DepartmentID is the foreign key on the many side.
Last verified on 27-11-2026
723 A Customer places many Orders and each Order belongs to one Customer. What is the relationship?
A
One-to-many
B
One-to-one
C
Many-to-many
D
Self-referencing
Explanation
One customer links to many orders, while each order links to a single customer, which is the classic one-to-many pattern.
Last verified on 27-11-2026
724 Which statement about a one-to-many relationship is FALSE?
A
The parent table holds the foreign key
B
Each child belongs to one parent
C
One parent can have many children
D
The child table holds the foreign key
Explanation
The foreign key is on the many, or child, side, not on the parent side, so that statement is false.
Last verified on 27-11-2026
725 An Author writes many Books and a Book can have many Authors. What is the relationship?
A
One-to-one
B
Many-to-many
C
One-to-many
D
Self-referencing
Explanation
Both sides can have many of the other, so a junction table such as BookAuthor is needed.
Last verified on 27-11-2026
726 What is a self-referencing relationship?
A
A relationship between two different tables
B
A relationship with no foreign key
C
A relationship where rows in a table relate to other rows in the same table
D
A relationship between a table and itself in a view only
Explanation
In a self-referencing relationship a table has a foreign key that points to its own primary key, for example an employee's manager.
Last verified on 27-11-2026
727 Which example best shows a self-referencing relationship?
A
Students and courses
B
Books and authors
C
Customers and orders
D
Employees and their managers
Explanation
An employee's ManagerID refers to another employee in the same Employee table, so the table references itself.
Last verified on 27-11-2026
728 In an Employee table, ManagerID is a foreign key referencing EmployeeID in the same table. What type of relationship is this?
A
One-to-many self-referencing
B
One-to-one
C
Many-to-many
D
One-to-one self-referencing
Explanation
One manager can manage many employees, and each employee has one manager, all within the same table, so it is a one-to-many self-referencing relationship.
Last verified on 27-11-2026
729 A Category table has ParentCategoryID referencing CategoryID in the same table. What does this model?
A
A list of products in a category
B
A hierarchy of categories and subcategories
C
A many-to-many link between categories
D
An order of categories by date
Explanation
A parent category can have many subcategories, and each subcategory has one parent, forming a tree inside one table.
Last verified on 27-11-2026
730 What is the cardinality of a one-to-one relationship?
A
N:1
B
1:N
C
1:1
D
M:N
Explanation
The notation 1:1 means one row on each side relates to at most one row on the other side.
Last verified on 27-11-2026