Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
861 In a Users table with ID as primary key and Email as UNIQUE, what is Email?
Explanation
Email is a candidate key not chosen as primary, so it is an alternate key.
Last verified on 27-11-2026
862 In a one-to-many relationship between Department and Employee, which table holds the foreign key?
Explanation
The foreign key goes in the table on the many side, Employee, and references the parent table Department.
Last verified on 27-11-2026
863 Can a table have two separate primary keys at the same time?
Explanation
A table can have only one primary key, although that key may consist of several columns.
Last verified on 27-11-2026
864 How many candidate keys can a table have?
Explanation
A table may have several attributes or combinations that could uniquely identify rows.
Last verified on 27-11-2026
865 How is an alternate key different from a candidate key?
Explanation
Every alternate key is a candidate key, but it is the one not selected as the primary key.
Last verified on 27-11-2026
866 A table with a primary key that allows duplicates would violate:
Explanation
Uniqueness is part of entity integrity, so duplicate primary keys violate it.
Last verified on 27-11-2026
867 What does entity integrity ensure for a Students table?
Explanation
The primary key StudentID must identify each student uniquely and always be present.
Last verified on 27-11-2026
868 Which constraint combination gives entity integrity?
Explanation
A primary key is effectively UNIQUE and NOT NULL, and that combination enforces entity integrity.
Last verified on 27-11-2026
869 Can entity integrity be satisfied by a UNIQUE constraint alone?
Explanation
UNIQUE alone does not guarantee a non-null identifier, so it does not fully enforce entity integrity.
Last verified on 27-11-2026
870 Which is an example of an entity integrity violation in a Books table?
Explanation
Duplicate primary key values break unique identification, which is entity integrity.
Last verified on 27-11-2026