Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
711 Which pair is a one-to-many relationship?
Explanation
One teacher can teach many classes, but each class in this model has one teacher, so the link is one-to-many.
Last verified on 27-11-2026
712 In a self-referencing Employee table, what does a NULL ManagerID usually mean?
Explanation
The top of the hierarchy has no manager above them, so a null ManagerID marks the root of the tree.
Last verified on 27-11-2026
713 How is a recursive relationship also known?
Explanation
A recursive relationship is one where a table relates to itself, also called self-referencing.
Last verified on 27-11-2026
714 A social network has a User table and users can follow other users. How is this modelled?
Explanation
Following is many-to-many and self-referencing, so a junction table holds each follow pair with two foreign keys to the same User table.
Last verified on 27-11-2026
715 In a one-to-one relationship between User and UserProfile, why might the designer split them into two tables?
Explanation
Splitting a one-to-one pair lets optional or sensitive data live separately, so the main table stays lean and the profile can be absent.
Last verified on 27-11-2026
716 If every Employee must have exactly one ParkingSpace and every ParkingSpace belongs to exactly one Employee, what is the relationship?
Explanation
Both sides are required and unique, so each employee has exactly one space and each space has exactly one employee.
Last verified on 27-11-2026
717 How is a many-to-many relationship between Student and Course usually implemented in relational tables?
Explanation
A many-to-many relationship is implemented with a junction table that holds a foreign key to each of the two tables.
Last verified on 27-11-2026
718 If a Person may or may not have a Passport, what is the relationship?
Explanation
The link is one-to-one but optional, because a person can exist without a passport, so the foreign key may be null.
Last verified on 27-11-2026
719 In a Student-Course enrolment junction table, what is the usual primary key?
Explanation
The pair identifies one enrolment, prevents the same student enrolling twice in the same course, and both columns are foreign keys.
Last verified on 27-11-2026
720 A school has Classes and Students. One class has many students and each student is in one class. Where does the foreign key go?
Explanation
The many side, Student, holds ClassID as a foreign key pointing to the one side, Class.
Last verified on 27-11-2026