Dbms(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1.
Suppose x is a component of some tuple and the domain for that component is integers. If X has the value NULL, what is the value of
I 0*X
II x - x
NULL, NULL
0, 0
NULL, 0
0, NULL
Explanation:-
Answer: Option A. -> NULL, NULL
When we operate on a NULL and any value including another, NULL, using any attribute operator the result is NULL.
Question 2. The primary key is selected from the:
composite keys.
determinants.
candidate keys.
foreign keys.
Explanation:-
Answer: Option C. -> candidate keys.
Question 3.
A network schema
stores data in tables
permits many-to-many relationship
Restricts the structure to one-to-one relationship
None of the above
Explanation:-
Answer: Option B. -> permits many-to-many relationship
Question 4. A relation is in this form if it is in BCNF and has no multivalued dependencies:
second normal form.
third normal form.
fourth normal form.
domain/key normal form.
Explanation:-
Answer: Option C. -> fourth normal form.
Question 5. A relation NADDR is defined with attributes Name (unique), Street,City, State and Zip. For any given Zip, there is just one City and state. What is the highest normal form satisfied by above decomposition?
1NF
2NF
3NF
BCNF
Explanation:-
Answer: Option B. -> 2NF
Question 6. When the values in one or more attributes being used as a foreign key must exist in another set of one or more attributes in another table, we have created a(n):
transitive dependency.
insertion anomaly.
referential integrity constraint.
normal form.
Explanation:-
Answer: Option C. -> referential integrity constraint.
Question 7.
In context with Relational algebra, which of the following are unary operations
I SELECT
II PROJECT
III UNION
IV PRODUCT
All are binary operations
I and II Only
II Only
I and III Only
Explanation:-
Answer: Option B. -> I and II Only
SELECT and PROJECT are called unary operations because they operate on one relation.
Question 8. A race condition occurs when
two users of the DBMS are interacting with different files at the same time
two concurrent activities interact to cause a processing error
both (a) and (b)
None of these
Explanation:-
Answer: Option B. -> two concurrent activities interact to cause a processing error