Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
511 What does ON UPDATE SET DEFAULT do when a parent key changes?
Explanation
SET DEFAULT on update replaces the foreign key with the default value instead of following the new parent key.
Last verified on 27-11-2026
512 Which data types must match between a foreign key and the primary key it references?
Explanation
A foreign key can only match a primary key if their types are compatible; mismatched types prevent the constraint from working.
Last verified on 27-11-2026
513 Which design error confuses an entity with a relationship?
Explanation
Relationships should be implemented by the simplest correct mechanism, and entities should not be reduced to attributes of another entity.
Last verified on 27-11-2026
514 A foreign key can reference which of the following?
Explanation
The referenced column must uniquely identify a parent row, so it must be a primary key or a unique key.
Last verified on 27-11-2026
515 Which key uniquely identifies a row within its own table?
Explanation
A primary key uniquely identifies each row in its own table, while a foreign key links to another table.
Last verified on 27-11-2026
516 In a Student-Course enrolment, which columns are foreign keys in the Enrolment table?
Explanation
The junction table holds two foreign keys, one to each entity table in the many-to-many relationship.
Last verified on 27-11-2026
517 Why should a foreign key be indexed in a large database?
Explanation
Joins and referential checks look up parent rows by key, so an index avoids scanning the whole parent table.
Last verified on 27-11-2026
518 Which scenario requires a composite foreign key?
Explanation
A composite foreign key must match all columns of a composite primary key, in the same order and number.
Last verified on 27-11-2026
519 What is an entity in ER modelling?
Explanation
An entity is a thing about which data is stored, represented by a rectangle in an ER diagram and usually by a table.
Last verified on 27-11-2026
520 What is a relationship in ER modelling?
Explanation
A relationship connects entity instances and is shown as a diamond in an ER diagram, unlike an entity which is a thing itself.
Last verified on 27-11-2026