Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
671 If a junction table has its own surrogate key, what happens to the two foreign keys?
Explanation
A surrogate key can identify junction rows, but the pair of foreign keys must still be unique to stop the same link being stored twice.
Last verified on 27-11-2026
672 Which SQL clause defines a foreign key when creating a table?
Explanation
The FOREIGN KEY clause names the local column and the referenced table and column, and the DBMS then enforces the link.
Last verified on 27-11-2026
673 How is a weak entity mapped into tables?
Explanation
A weak entity cannot be identified alone, so its key combines its own partial key with the owner's primary key.
Last verified on 27-11-2026
674 In an OrderLine weak entity, what identifies a single line?
Explanation
An order line is identified only within its order, so the composite of OrderID and LineNo is its key.
Last verified on 27-11-2026
675 How is a multivalued attribute mapped into tables?
Explanation
A multivalued attribute, such as several phone numbers, needs its own table with one row per value linked by a foreign key, to keep values atomic.
Last verified on 27-11-2026
676 How is a composite attribute mapped into tables?
Explanation
A composite attribute such as an address can be split into street, city and postcode columns, or kept whole if its parts are never used separately.
Last verified on 27-11-2026
677 A University has Faculties and Lecturers. One faculty has many lecturers and each lecturer belongs to one faculty. What is the relationship type?
Explanation
One faculty links to many lecturers, while each lecturer links to one faculty, so the relationship is one-to-many.
Last verified on 27-11-2026
678 Which of the following is an example of a one-to-one relationship in a school system?
Explanation
Each student has exactly one ID card and each card belongs to one student, which is a strict one-to-one pairing.
Last verified on 27-11-2026
679 A Book has one ISBN and an ISBN belongs to one Book. What is the relationship?
Explanation
Each book has one ISBN and each ISBN identifies one book, so the pairing is one-to-one.
Last verified on 27-11-2026
680 An Order has many OrderLines and each OrderLine belongs to one Order. Where is the foreign key?
Explanation
The many side, OrderLine, holds OrderID as a foreign key to its single order.
Last verified on 27-11-2026