Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1091 If every Course must have at least one Teacher, what is the participation of Course in the Teaches relationship?
Explanation
Every course must participate, so Course has total participation in Teaches.
Last verified on 27-11-2026
1092 In a table Employee(EmpID, CNIC, Email), if EmpID, CNIC and Email are each unique, how many candidate keys does the table have?
Explanation
Each attribute that can uniquely identify a row is a candidate key, so the table has three candidate keys.
Last verified on 27-11-2026
1093 What is a primary key?
Explanation
The primary key is the one candidate key selected as the main identifier for a table.
Last verified on 27-11-2026
1094 In a table Student(StudentID, CNIC, Name), if StudentID is chosen as the primary key, what is CNIC?
Explanation
CNIC is a candidate key that was not chosen as the primary key, so it is an alternate key.
Last verified on 27-11-2026
1095 What is a foreign key?
Explanation
A foreign key creates a link between tables by referencing the primary key (or unique key) of another table.
Last verified on 27-11-2026
1096 Which of the following is TRUE about a super key?
Explanation
A super key need not be minimal; adding attributes to a super key still leaves a super key.
Last verified on 27-11-2026
1097 Which of the following is TRUE about a candidate key?
Explanation
Minimality is what distinguishes a candidate key from a general super key.
Last verified on 27-11-2026
1098 How many primary keys can a table have?
Explanation
A table has exactly one primary key, though it may be composite and there may be several alternate keys.
Last verified on 27-11-2026
1099 A table Students has RollNo and Email, both unique and not null. If RollNo is the primary key, Email is:
Explanation
Email is a candidate key not chosen as primary key, so it is an alternate key.
Last verified on 27-11-2026
1100 In a table, {StudentID, Name} uniquely identifies rows, and {StudentID} alone also does. Is {StudentID, Name} a candidate key?
Explanation
{StudentID, Name} is a super key but not a candidate key, since removing Name still leaves a unique key.
Last verified on 27-11-2026