MCQ
DBMS MCQ - Practice Questions with Answers
Read the sample questions below. Explanations are shown where available.
Practice questions
Let relation R2 has a ‘foreign key’ that refers to primary key of relation R1. Which of the following operation may cause violation of referential integrity constraints?
A foreign key value in the child relation must match an existing primary-key value in the parent relation. Inserting a tuple into R2 can violate this if its foreign key has no matching R1 row, and deleting a tuple from R1 can violate it if R2 still refers to that parent row. Therefore, both operations may violate referential integrity, so option C is correct.
An entity is represented by set of -
In the ER model, an entity is described by a set of attributes. Attributes store the properties of that entity, such as name, roll number, or address for a student entity. Relationships connect entities, so option B does not represent an entity by itself.
Which of the following events is/are exposed by the DataTable object?
Microsoft's DataTable event list includes RowChanged, ColumnChanged, and RowChanging. Since all three listed events are exposed by the DataTable object, the combined choice is correct. Therefore, option D is correct.
Sample questions on this page: 3
For package details, choose your exam and check the included practice, access period and final payable total. You do not need to buy anything to view sample questions.
