Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
621 In a Company database, a Project can have many Employees and an Employee can work on many Projects, with hours worked per project. Where are the hours stored?
A
In the Employee table
B
In the Project table
C
In the ProjectAssignment junction table, as an attribute of the link
D
In a separate database
Explanation
Hours worked describe the assignment itself, not the employee or the project alone, so they belong in the junction table.
Last verified on 27-11-2026
622 A Patient can have many Appointments and each Appointment belongs to one Patient and one Doctor. What is the Appointment table?
A
A self-referencing table
B
Only a parent table
C
Only a lookup table
D
A junction table between Patient and Doctor, and also a child in two one-to-many relationships
Explanation
An appointment links one patient to one doctor, so it holds two foreign keys and resolves the many-to-many link between patients and doctors.
Last verified on 27-11-2026
623 Which foreign-key design best models Employees and Departments when an employee can work in many departments over time?
A
A single DepartmentID foreign key in Employee
B
No foreign key at all
C
A DepartmentID in a separate view
D
A junction table EmployeeDepartment with EmployeeID, DepartmentID and assignment dates
Explanation
If an employee can belong to many departments, the link is many-to-many, so a junction table with dates records each assignment.
Last verified on 27-11-2026
624 In an ER diagram, a diamond shape represents what?
A
A relationship
B
An entity
C
An attribute
D
A primary key
Explanation
In ER notation, rectangles are entities, diamonds are relationships, and ovals are attributes.
Last verified on 27-11-2026
625 What is the main benefit of using a junction table instead of a multivalued column?
A
It keeps data atomic, allows indexing and enforces referential integrity for each link
B
It makes queries slower
C
It uses more tables unnecessarily
D
It prevents joins
Explanation
A junction table stores one link per row, so each link can be indexed, joined and checked against its parent, unlike a list in one column.
Last verified on 27-11-2026
626 In an ER diagram, a rectangle represents what?
A
A relationship
B
An entity
C
An attribute
D
A foreign key
Explanation
Rectangles denote entity types, such as Customer or Order, in an ER diagram.
Last verified on 27-11-2026
627 Which statement about one-to-one relationships is correct?
A
They are the most common relationship type
B
They are often used to split a table for security, optional data or performance, and are less common than one-to-many
C
They always need a junction table
D
They cannot use a foreign key
Explanation
One-to-one links are rarer than one-to-many and are used deliberately to separate optional or sensitive attributes into their own table.
Last verified on 27-11-2026
628 What does a double ellipse represent in an ER diagram?
A
A weak entity
B
A key attribute
C
A multivalued attribute
D
A derived attribute
Explanation
A double ellipse denotes a multivalued attribute, which can hold more than one value for an entity.
Last verified on 27-11-2026
629 Why does a weak entity need an owner entity?
A
It has no attributes
B
It cannot be identified by its own attributes alone
C
It has no relationship with other entities
D
It stores only numeric data
Explanation
A weak entity depends on its owner entity for identification because its own attributes are not enough to identify it uniquely.
Last verified on 27-11-2026
630 Which of the following is a strong entity?
A
Customer, who is identified by CustomerID
B
OrderLine, which depends on Order
C
Room, which depends on Hotel
D
Dependent, which depends on Employee
Explanation
Customer can be identified by its own primary key, CustomerID, without depending on another entity.
Last verified on 27-11-2026