Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
921 Which action would violate referential integrity?
Explanation
Deleting a referenced parent would leave child rows orphaned, so the DBMS blocks it unless a cascade action is defined.
Last verified on 27-11-2026
922 A parent row is deleted and its child rows disappear automatically. Which referential action caused this?
Explanation
ON DELETE CASCADE automatically deletes child rows when their parent row is deleted.
Last verified on 27-11-2026
923 What distinguishes a natural key from a surrogate key?
Explanation
The source of the value — real-world data versus system generation — is the defining difference.
Last verified on 27-11-2026
924 A library system assigns each new book a system-generated BookID with no meaning outside the system. What kind of key is BookID?
Explanation
BookID is generated by the system and has no business meaning, so it is a surrogate key.
Last verified on 27-11-2026
925 Why might a surrogate key be preferred for a Person table?
Explanation
Natural person identifiers are not perfectly stable, so a system key gives a reliable permanent identifier.
Last verified on 27-11-2026
926 When is a natural key a good primary key choice?
Explanation
A stable, short natural key such as ISO country code works well as a primary key.
Last verified on 27-11-2026
927 Which statement is true of both natural and surrogate keys?
Explanation
Either type can be the primary key, provided it is unique, non-null and stable enough for the design.
Last verified on 27-11-2026
928 Which key type is most suitable as a primary key for a table of website users?
Explanation
Names repeat, but a surrogate ID is stable and unique, while UNIQUE on Email preserves its real distinctness.
Last verified on 27-11-2026
929 What is a disadvantage of a natural key?
Explanation
Real-world identifiers can be reissued or corrected, and changing a primary key forces updates in child tables.
Last verified on 27-11-2026
930 Which key is usually preferred when the natural key is long, complex or changeable?
Explanation
When a natural key is unwieldy or unstable, a short stable surrogate key is the practical primary key.
Last verified on 27-11-2026