Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
781 Which situation is an example of a referential integrity violation?
Explanation
The foreign key 45 has no matching primary key in the parent table, leaving an orphan order that refers to a non-existent customer.
Last verified on 27-11-2026
782 Which of the following is a common surrogate key in modern systems?
Explanation
A UUID is a system-generated value with no business meaning, used as a surrogate key especially in distributed systems.
Last verified on 27-11-2026
783 Why do many designers keep both a surrogate primary key and a unique natural key?
Explanation
The surrogate key gives stable, fast joins while a UNIQUE constraint on the natural key stops the same real entity being stored twice.
Last verified on 27-11-2026
784 What is a surrogate key in a database table?
Explanation
A surrogate key is an artificial value, usually an auto-increment number, created only to identify a row.
Last verified on 27-11-2026
785 A composite natural key is most likely needed when:
Explanation
A composite key combines two or more attributes, for example FlightNo plus FlightDate, when neither alone is unique.
Last verified on 27-11-2026
786 A university uses a student’s own admission number, printed on the admission letter, as the table key. Is this a natural or a surrogate key?
Explanation
The admission number has real-world meaning outside the database, so it is a natural key.
Last verified on 27-11-2026
787 Which of the following is the best example of a surrogate key?
Explanation
An auto-increment OrderID is created by the system only for identification and has no meaning outside the database.
Last verified on 27-11-2026
788 What is the main advantage of a surrogate key over a natural key?
Explanation
A surrogate key stays stable when real-world data such as a name, email or phone number changes, so related rows are not disturbed.
Last verified on 27-11-2026
789 What is the main disadvantage of a natural key?
Explanation
Natural keys are based on real data, so a change in that data, for example a new passport number, forces updates in every related table.
Last verified on 27-11-2026
790 In a Student table, which attribute is most suitable as a natural key?
Explanation
A university registration number is unique, stable and meaningful in the real world, unlike a name which may repeat.
Last verified on 27-11-2026