Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1011 A foreign key in a child table and the primary key it references must have:
Explanation
A foreign key must be type-compatible with the referenced primary key so values can match exactly.
Last verified on 27-11-2026
1012 In a junction table for an M:N relationship, the two foreign keys together form:
Explanation
The pair of foreign keys jointly identifies each link and serves as the composite primary key of the junction table.
Last verified on 27-11-2026
1013 Which of the following is a valid super key for a table with primary key {A}?
Explanation
{A} is a super key, and adding B keeps it unique, so both sets are super keys.
Last verified on 27-11-2026
1014 Which of the following is a valid candidate key for a table with primary key {A}?
Explanation
Only the minimal set {A} is a candidate key; {A, B} is a super key but not minimal.
Last verified on 27-11-2026
1015 A table has candidate keys {A, B} and {C}. Which attribute set is a super key but NOT a candidate key?
Explanation
{A, B, C} is unique but contains redundant attributes, so it is a super key and not a candidate key.
Last verified on 27-11-2026
1016 A table has candidate keys {A, B} and {C}. Which attribute is prime?
Explanation
Prime attributes are those in any candidate key, so A, B and C are all prime.
Last verified on 27-11-2026
1017 A table has candidate keys {A, B} and {C}, with attributes A, B, C, D. Which attribute is non-prime?
Explanation
D appears in no candidate key, so it is non-prime, while A, B and C are prime.
Last verified on 27-11-2026
1018 What does it mean if a foreign key value is NULL?
Explanation
A NULL foreign key means the row is not linked to any parent row, unless NOT NULL forbids it.
Last verified on 27-11-2026
1019 Can the primary key of a parent table be referenced by foreign keys in several child tables?
Explanation
One parent primary key can be referenced by foreign keys in many different child tables.
Last verified on 27-11-2026
1020 Which action violates entity integrity?
Explanation
Entity integrity forbids NULL primary keys, so inserting a row without a primary key value violates it.
Last verified on 27-11-2026