Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
841 Which of the following is a primary key, candidate key and alternate key relationship?
Explanation
A primary key is one selected candidate key, and the rest of the candidates are alternate keys.
Last verified on 27-11-2026
842 In a table, PassportNo is UNIQUE and NOT NULL but ID is the primary key. What is PassportNo?
Explanation
PassportNo is a candidate key that was not selected as the primary key, so it is an alternate key.
Last verified on 27-11-2026
843 What is the difference between an alternate key and a foreign key?
Explanation
Alternate keys concern identification within a table, while foreign keys concern links to other tables.
Last verified on 27-11-2026
844 Which key is enforced with a UNIQUE constraint most often?
Explanation
Alternate keys are usually enforced by a UNIQUE constraint, since they are not the primary key.
Last verified on 27-11-2026
845 Can a table have a primary key and also foreign keys?
Explanation
A child table has its own primary key for identity and foreign keys for its relationships.
Last verified on 27-11-2026
846 Which statement correctly compares primary and alternate keys?
Explanation
Primary and alternate keys share candidate-key properties; selection as primary is the difference.
Last verified on 27-11-2026
847 Which of the following is a super key of Student(StudentID, Name, City)?
Explanation
Any set containing the unique StudentID identifies each row, so StudentID and City together is a super key.
Last verified on 27-11-2026
848 What is the main difference between a super key and a candidate key?
Explanation
Minimality is the distinguishing property: remove any attribute from a candidate key and uniqueness is lost.
Last verified on 27-11-2026
849 Which key is also called the main key of a table?
Explanation
The primary key is the table's main identifying key.
Last verified on 27-11-2026
850 A candidate key must satisfy which two properties?
Explanation
A candidate key must uniquely identify rows and contain no unnecessary attribute.
Last verified on 27-11-2026