Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1031 If ID is chosen as the primary key in that table, how many alternate keys are there?
Explanation
PassportNo and Email are the remaining candidate keys, so there are two alternate keys.
Last verified on 27-11-2026
1032 What is a key in a relational database?
Explanation
A key is an attribute or set of attributes that identifies rows, enforces uniqueness, or links tables.
Last verified on 27-11-2026
1033 Which of the following best distinguishes a super key from a candidate key?
Explanation
Minimality is the key difference: every candidate key is a super key, but not every super key is a candidate key.
Last verified on 27-11-2026
1034 A table has 100 rows. Its primary key column has how many distinct non-null values?
Explanation
A primary key is unique and not null, so 100 rows need 100 distinct non-null values.
Last verified on 27-11-2026
1035 A foreign key column in a table with 100 rows can have how many distinct values?
Explanation
A foreign key need not be unique, so many rows may share the same parent value and the distinct count can be less than 100.
Last verified on 27-11-2026
1036 Which SQL clause defines a primary key?
Explanation
PRIMARY KEY (EmpID) is the SQL clause that declares EmpID as the primary key of the table.
Last verified on 27-11-2026
1037 Which SQL clause defines a foreign key?
Explanation
A foreign key is declared with FOREIGN KEY (column) REFERENCES ParentTable(ParentKey).
Last verified on 27-11-2026
1038 In SQL, what does REFERENCES Department(DeptID) mean?
Explanation
REFERENCES names the parent table and the column that the foreign key must match.
Last verified on 27-11-2026
1039 A composite foreign key must reference:
Explanation
A composite foreign key matches a composite key in the parent table column by column.
Last verified on 27-11-2026
1040 Which of the following is NOT a valid candidate key for a Students table?
Explanation
Age is not unique, so it cannot identify a single student and cannot be a candidate key.
Last verified on 27-11-2026