GATE Ques Set 1
GATE Ques Set 1
(gatequestions.com)
Solution: C
Explanation :As Lodging has many to many relationship with Hotel Room and
Person that is why rent payment by a person column goes to Lodging Table.
(D) If S is a super key such that S ∩ UID is NULL then S ∪ UID is also a super key.
(C) UID is a candidate key if all students are from the same country.
Solution: A
Explanation
In case two students hold joint account then BankAccount_Num will not uniquely
determine other attributes.
Solution: C
Explanation
The term 'entity' belongs to ER model and the term 'relational table' belongs to
relational model.
Options A and B both are true since ER model supports both multivalued and
composite attributes.
(a) 20
(b) 19
(c) 22
(d) 21
Solution: B
Explanation
For (StudentName , StudentAge) to be a key, all the combinations of these two
attributes must have to unique.
Solution: (D)
Explanation: Maximum no. of possible superkeys for a table with n
attributes = 2^(n-1)
Here, n = 4.
So, the possible superkeys = 2 4-1 = 8
The possible superkeys are : E, EH, EG, EF, EGH, EFH, EFG, EFGH
GATE | GATE CS 2008 | Question 85 - GeeksforGeeks
Solution: B
11. What does the data dictionary identify ? [ISRO 2017 MAY]
a) Field names
b) Field formats
c) Field types
d) All of these
Solution: D
https://gateoverflow.in/questions/databases?start=20
14. A primary key, if combined with a foreign key creates [NIELIT 2016
MAR Scientist C ]
a) parent child relationship between the tables that connect them
b) many-to-many relationship between the tables that connect
them
c) network model between the tables that connect them
d) none of these
Solution: A
A foreign key entry can refer to a single parent key entry but multiple
foreign key entries can refer to the same parent key entry. So, this is
a m:1m:1 (many-to-one) relationship.
So A is correct.
15. E-R model uses this symbol to represent weak entity set?
[NIELIT 2017 SCIENTIST ASSISTANT -A
a) Dotted rectangle
b) Diamond
c) Doubly outlined rectangle
d) None of these
Solution: C
http://gate-exam.in/CS/Syllabus/Computer-Science-Information-Technology/
Databases#collapse_10_10
16. In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship
from entity set E1 to entity set E2. Assume that E1 and E2 participate totally
in R and that the cardinality of E1 is greater than the cardinality of E2. Which
one of the following is true about R?
[2018]
A. Every entity in E1 is associated with exactly one entity in E2
B. Some entity in E1 is associated with more than one entity in E2
C. Every entity in E2 is associated with exactly one entity in E1
D. Every entity in E2 is associated with at most one entity in E1
Solution: A
18. Given the basic ER and relational models, which of the following
is INCORRECT?
[2012]
A. An attribute of an entity can have more than one value
B. An attribute of an entity can be composite
C. In a row of a relational table, an attribute can have more than one
value
D. In a row of a relational table, an attribute can have exactly one value or
a NULL value
Solution: C
21. Which one of the following is used to represent the supporting many-
one relationships of a weak entity set in an entity-relationship
diagram ? [2020]
(A) Diamonds with double/bold border
(B) Rectangles with double/bold border
(C) Ovals with double/bold border
(D) Ovals that contain underlined identifiers
Solution: A
https://www.geeksforgeeks.org/dbms-gq/er-and-relational-models-gq/
Which of the following possible relations will not hold if the above ERD
is mapped into a relation model?
(A) Person (NID, Name)
(B) Qualification (NID, ExamID, QualifiedDate)
(C) Exam (ExamID, NID, ExamName)
(D) Exam (ExamID, ExamName)
Solution: (C)
Answer: (B)
https://www.geeksforgeeks.org/dbms-gq/er-and-relational-models-gq/
Answer: (D)
https://www.geeksforgeeks.org/isro-isro-cs-2018-question-74/
Solution: (B)
Solution: B