Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
561 In a many-to-many mapping, where does the foreign key from the junction table point?
Explanation
Each column in the junction table is a foreign key referencing one side of the relationship.
Last verified on 27-11-2026
562 What does a maximum cardinality of 1 mean?
Explanation
Maximum cardinality 1 caps the relationship at one related instance, as in a 1:1 or the one side of a 1:N relationship.
Last verified on 27-11-2026
563 A Tag-Post many-to-many system uses PostTag as a junction table. Adding the same tag to the same post twice should be prevented by what?
Explanation
The composite key allows each PostID-TagID pair only once, so a duplicate link is rejected.
Last verified on 27-11-2026
564 Which design violates a 1:N cardinality constraint between Author and Book?
Explanation
A single foreign-key value can point to only one author, so a book cannot have two authors under a 1:N design without a junction table.
Last verified on 27-11-2026
565 A university rule says a Student must enrol in at least one Course. Which constraint expresses this?
Explanation
Minimum cardinality 1 means every student must have at least one enrolment, enforcing mandatory participation.
Last verified on 27-11-2026
566 What is the purpose of a junction table in a many-to-many relationship?
Explanation
Relational tables cannot hold a multi-valued foreign key directly, so a junction table holds one row for each associated pair.
Last verified on 27-11-2026
567 In a Student-Course many-to-many relationship, what does the junction table Enrolment usually contain?
Explanation
The junction table carries both foreign keys, often as a composite primary key, and may hold attributes belonging to the relationship itself.
Last verified on 27-11-2026
568 Why can a many-to-many relationship NOT be implemented with a single foreign key in one of the two tables?
Explanation
A single foreign key holds one value, so it cannot represent many links; a separate linking table is required.
Last verified on 27-11-2026
569 In a Book-Author junction table BookAuthor, what is the usual primary key?
Explanation
The pair uniquely identifies one link, so the composite of both foreign keys is the natural primary key of the junction table.
Last verified on 27-11-2026
570 What does partial participation mean?
Explanation
Partial participation, shown by a single line, means an entity instance may exist even if it has no related instance.
Last verified on 27-11-2026