Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
851 Can a foreign key also be a primary key?
Explanation
In a junction table the composite primary key is made of foreign keys, and in a one-to-one link the foreign key can also be the primary key.
Last verified on 27-11-2026
852 Which key ensures uniqueness in its own table?
Explanation
The primary key's uniqueness guarantees each row is distinct within its own table.
Last verified on 27-11-2026
853 What is the main difference between a candidate key and a primary key?
Explanation
All primary keys are candidate keys, but only one candidate is selected as the primary key.
Last verified on 27-11-2026
854 Which statement about a foreign key is correct?
Explanation
Many child rows can reference the same parent, so foreign keys commonly repeat.
Last verified on 27-11-2026
855 If a table has candidate keys (ID) and (Email), and ID is the primary key, what is (Email)?
Explanation
The unchosen candidate key is called an alternate key.
Last verified on 27-11-2026
856 Which key is used to establish a relationship between two tables?
Explanation
A foreign key in one table points to the primary key in another, establishing the relationship.
Last verified on 27-11-2026
857 What is the difference between a primary key and a foreign key?
Explanation
Primary keys provide identity within a table, while foreign keys provide links between tables.
Last verified on 27-11-2026
858 How many foreign keys can a table have?
Explanation
A table can link to many parent tables, so it can have many foreign keys.
Last verified on 27-11-2026
859 Which key can contain NULL values?
Explanation
An optional relationship allows a NULL foreign key, meaning no parent is linked, while a primary key never allows NULL.
Last verified on 27-11-2026
860 Which key must be unique and NOT NULL?
Explanation
Only the primary key is required to be both unique and non-null in every row.
Last verified on 27-11-2026