Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
461 Which many-to-many relationship needs a junction table with THREE foreign keys?
A
A ternary relationship, such as a Prescription linking Doctor, Patient and Drug
B
A self-referencing Employee relationship
C
A binary Student-Course relationship
D
A one-to-one Person-Passport relationship
Explanation
A ternary relationship involves three entity types, so its junction table needs a foreign key to each of them.
Last verified on 27-11-2026
462 A Course may have 0 to 30 Students and a Student may enrol in 1 to 5 Courses. How is this written in min-max notation?
A
Course (1, 30) and Student (0, 5)
B
Course (0, 5) and Student (1, 30)
C
Course (1, 5) and Student (0, 30)
D
Course (0, 30) and Student (1, 5)
Explanation
The numbers on each side describe that side's participation, so Course allows 0 to 30 students and Student requires 1 to 5 courses.
Last verified on 27-11-2026
463 In a ternary relationship, what does one row of the junction table represent?
A
One combination of all three entities, such as one doctor prescribing one drug to one patient
B
One attribute value
C
One entity alone
D
One pair of entities
Explanation
Each junction row records a single three-way association, not just a pair.
Last verified on 27-11-2026
464 Which constraint would prevent a Department from having more than one Manager at a time?
A
A primary key on DeptID alone
B
A CHECK constraint on DeptName
C
A foreign key without uniqueness
D
A UNIQUE constraint on the ManagerID foreign key in Department, or a 1:1 mapping
Explanation
A unique foreign key ensures each manager value appears only once, so no two departments can share the same manager and each department has at most one.
Last verified on 27-11-2026
465 A Book can have many Authors and an Author can write many Books. Where is the Author’s contribution, such as Editor or Co-author, stored?
A
In the Author table alone
B
In the Book table alone
C
In a separate database
D
In the BookAuthor junction table, because the role belongs to that book-author pair
Explanation
Role describes a specific author in a specific book, so it is an attribute of the relationship in the junction table.
Last verified on 27-11-2026
466 In a junction table, what does a UNIQUE constraint on StudentID alone do?
A
It prevents duplicate enrolments correctly
B
It makes CourseID a primary key
C
It wrongly limits each student to only one course, breaking the many-to-many design
D
It speeds up the table
Explanation
A unique StudentID would allow only one row per student, so the student could enrol in only one course.
Last verified on 27-11-2026
467 Which statement about junction tables and normalisation is correct?
A
A junction table helps achieve first normal form by removing multi-valued attributes
B
A junction table violates first normal form
C
A junction table is only used in unnormalised designs
D
A junction table replaces normalisation
Explanation
By storing one link per row, the junction table removes the repeating group that would otherwise violate 1NF.
Last verified on 27-11-2026
468 What is the correct way to prevent duplicate links in a junction table?
A
A composite primary key or composite UNIQUE constraint on both foreign keys
B
A UNIQUE constraint on one foreign key alone
C
A CHECK constraint on the date
D
A NOT NULL constraint on one foreign key
Explanation
Only the pair together identifies a link, so uniqueness must be enforced on the combination, not on either column alone.
Last verified on 27-11-2026
469 How is a many-to-many relationship between Supplier and Product mapped when each supply has a Price?
A
Product with a SupplierID column
B
Supplier, Product, and a Supply junction table with SupplierID, ProductID and Price
C
A single SupplierProduct table with no keys
D
Supplier with a ProductID column
Explanation
Price belongs to a specific supplier-product pair, so it is stored in the junction table with the two foreign keys.
Last verified on 27-11-2026
470 A Music system has Playlist and Song in a many-to-many relationship. What extra attribute fits in the junction table PlaylistSong?
A
The position or track order of a song within a particular playlist
B
The duration of the song alone
C
The title of the song alone
D
The name of the playlist alone
Explanation
Track order depends on both the playlist and the song, so it is a relationship attribute in the junction table.
Last verified on 27-11-2026