Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
451 What is the difference between a junction table and an associative entity?
Explanation
The terms overlap: an associative entity is the ER concept, and a junction table is how it is usually implemented in tables.
Last verified on 27-11-2026
452 If a Playlist is deleted and PlaylistSong has ON DELETE CASCADE on PlaylistID, what remains?
Explanation
CASCADE on the junction table removes only the links for the deleted playlist, leaving songs and other playlists intact.
Last verified on 27-11-2026
453 In a many-to-many mapping, which table’s primary key is referenced by the junction table?
Explanation
Each foreign key in the junction table references the primary key of one of the two entity tables.
Last verified on 27-11-2026
454 What is the main advantage of a junction table over storing a list of IDs in one column?
Explanation
A separate row per link is atomic, searchable and constrained, while a list in one column violates 1NF and cannot be checked by foreign keys.
Last verified on 27-11-2026
455 A Student can enrol in many Courses and a Course can have many Students. Which table holds the enrolment date?
Explanation
Enrolment date describes when a particular student joined a particular course, so it is a relationship attribute.
Last verified on 27-11-2026
456 Which SQL statement creates a junction table correctly?
Explanation
The correct definition declares both foreign keys and a composite primary key on the pair.
Last verified on 27-11-2026
457 How many rows are in a junction table if 4 Students each enrol in 3 Courses?
Explanation
Each pair is a separate row, so 4 times 3 equals 12 junction rows.
Last verified on 27-11-2026
458 In a junction table, can the same foreign-key value appear many times?
Explanation
A foreign key in a junction table is not unique by itself; only the combination of both foreign keys must be unique.
Last verified on 27-11-2026
459 What is a link table also called?
Explanation
Link, junction, bridge and associative table are common names for the table that resolves a many-to-many relationship.
Last verified on 27-11-2026
460 A Hospital uses Treatment as a junction table between Doctor and Patient. If a Doctor leaves, what should happen to Treatment rows?
Explanation
The outcome is decided by the ON DELETE action defined on the DoctorID foreign key in Treatment.
Last verified on 27-11-2026