0% found this document useful (0 votes)
63 views

GATE Ques Set 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

GATE Ques Set 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

GATE 2005 Question(IT) - ER Diagrams | Marks 1 | Database Management System

(gatequestions.com)

1. Consider the entities “hotel room”, and “person” with a many to


many relationship “lodging” as shown below:
[GATE 2005]

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.

2. Consider a relational table with a single record for each registered


student with the following attributes.

1. Registration_Number: Unique registration number for each


registered student
2. UID: Unique Identity number, unique at the national level for
each citizen
3. BankAccount_Number: Unique account number at the bank. A
student can have multiple accounts or joint accounts. This
attributes stores the primary account number
4. Name: Name of the Student
5. Hostel_Room: Room number of the hostel
[2011]

Which of the following options is INCORRECT?


(A) BankAccount_Number is a candidate key.
(B) Registration_Number can be a primary key.

(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.

3. Given the basic ER and relational models, which of the following is


INCORRECT?
(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.
[2012]

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.

As multivalued attributes are not allowed in relational databases, in a row of a


relational (table), an attribute cannot have more than one value.

4. Given an instance of the STUDENTS relation as shown below:


[2014]

(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.

GATE | GATE-CS-2014-(Set-2) | Question 31 - GeeksforGeeks


5. The maximum number of superkeys for the relation schema
R(E,F,G,H) with E as the key is [2014]
(A) 5
(B) 6
(C) 7
(D) 8

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

6. Consider the following ER diagram. [2008]

The minimum number of tables needed to represent M, N, P, R1, R2 is


(A) 2
(B) 3
(C) 4
(D) 5

Solution: B i.e, 3 minimum tables.


M, P are strong entities hence they must be represented by separate tables.
Many-to-one and one-to-many relationship sets that are total on the many-
side can be represented by adding an extra attribute to the “many” side,
containing the primary key of the “one” side. ( This way no extra table will be
needed for Relationship sets )
M table is modified to include primary key of P side(i.e. P1). N is weak entity,
and is modified to include primary key of P (i.e, P1).
GATE | GATE CS 2008 | Question 83 - GeeksforGeeks
7. Consider the data given in above question. Which of the following is
a correct attribute set for one of the tables for the correct answer to
the above question?
[2008]

(A) {M1, M2, M3, P1}


(B) {M1, P1, N1, N2}
(C) {M1, P1, N1}
(D) {M1, P1}
Solution: As explained in the previous question:
We get 3 tables.
M: {M1, M2, M3, P1}
P: {P1, P2}
N: {P1, N1, N2}
The only attribute set that matches the given table sets is A.
Therefore, option A

ISRO | ISRO CS 2017 - May | Question 8 - GeeksforGeeks

8. Which symbol denote derived attributes in ER Model? [2017]


(A) Double ellipse
(B) Dashed ellipse
(C) Squared ellipse
(D) Ellipse with attribute name underlined

Solution: B

GATE 2004 Question(IT) - ER Diagrams | Marks 2 | Database Management System


(gatequestions.com)

9. Consider the following entity relationship diagram (ERD),


where two entities E1 and E2 have a relation R of cardinality
1 : m. [2004]
Solution: B
Explanation
Strong entities E1 and E2 are converted as separate tables.Since A23 is
a multi valued attribute it should also be converted as separate table.
Realtionship R is transfered to 'm' side(E2).
Relational databases Gate Questions – AcademyEra
10. Which of the following is not a type of database management system?
[UGC NET CS 2013 JUNE PAPER-2]
a) Hierarchical
b) Network
c) Relational
d) Sequential
Solution: D

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

12. Relational databases Gate Questions – AcademyEra


[UGC NET JUNE PAPER-2]
Relational databases Gate Questions – AcademyEra
13. Related data fields in database are grouped into
[NIELIT SCIENTIST-B IT 22-07-2017]
a) Data file
b) Data record
c) Menu
d) Bank
Solution: B

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

Foreign key is used to create a existential dependency like for example


consider Employee and Dependent tables. In this case the primary key of
Employee table is employee_id. In the Dependent table we will have an
employee_id field which will refer to employee_id field of Employee table
(foreign key). An employee dependent can exist only if the employee entry
exist in Employee table. This creates a parent child relationship.

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

Data Base Management System | CSE (Computer Science) - Gatequestions.Com

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

17. The maximum number of superkeys for the relation


schema R(E,F,G,H) with E as the key is _____.
[2018]
Solution: 8

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

19. A prime attribute of a relation scheme R is an attribute that appears [2014]


A. in all candidate keys of R.
B. in some candidate key of R.
C. in a foreign key of R.
D. only in the primary key of R.
Solution: B

20. An ER model of a database consists of entity types A and B. These are


connected by a relationship R which dose not have its own attribute. Under
which one of the following condiditons, can the relational table for R be
merged with that of A? [2017]
A. Relationship R is one-to-many and the participation of A in R is total
B. Relationship R is one-to-many and the participation of A in R is partial.
C. Relationship R is many-to-one and the participation of A in R is total.
D. Relationship R is many-to-one and the participation of A in R is partial
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/

22. Consider the following Relationship Entity Diagram(ERD)


[ISRO CS 2015]

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)

Explanation: If we convert an ER diagram into relational model then


we can create table for each entity.

23. An aggregation association is drawn using which symbol?


[ISRO 2014]
(A) A line which loops back on to the same table
(B) A small open diamond at the end of a line connecting two tables
(C) A small closed diamond at the end of a line connecting two tables
(D) A small closed triangle at the end of a line connecting two tables

Answer: (B)

Explanation: Association is a relationship where all objects have their


own lifecycle and there is no owner.
Aggregation is a specialised form of Association where all objects have
their own lifecycle, but there is ownership and child objects can not belong
to another parent object.

https://www.geeksforgeeks.org/dbms-gq/er-and-relational-models-gq/

24. What kind of mechanism is to be taken into account for converting a


weak entity set into strong entity set in entity-relationship diagram?
[UGC NET 2014]
(A) Generalization
(B) Aggregation
(C) Specialization
(D) Adding suitable attributes

Answer: (D)

Explanation: Weak entity is an entity which does not have sufficient


attributes to form a primary key.
Weak entity is represented by Double rectangle In an ER Diagram.
It must be in a 1:M relation.
A member of a weak entity is called a subordinate entity.
For converting a weak entity set into strong entity set in entity-
relationship diagram by simply adding appropriate attributes.
So, option (D) is correct.

https://www.geeksforgeeks.org/isro-isro-cs-2018-question-74/

25. Immunity of the external schemas (or application programs) to changes


in the conceptual schema is referred to as: [ISRO 2018]
(A) Physical Data Independence
(B) Logical Data Independence
(C) Both (a) and (b)
(D) None of the above

Solution: (B)

Explanation: Immunity is when data at one layer is changed, it does not


affect the data at another level.
Physical data independence:- if changes are made in the physical storage
of schema then it will not affect the logical schema of the database.
Logical data independence:- if any changes are made in the conceptual
schema then it will not affect external schema or the view level of the
database.
Databases | Computer Science and Information Technology | CS | GATE Syllabus, Paper
Solution, Question Answer (gate-exam.in)

Amazon Technical Questions - Technical Questions for Amazon (hitbullseye.com)


26. Which of the following is the function/s of the database
administration?

(A) Application checking


(B) Database access planning
(C) Computer applications management
(D) All of these

Solution: B

You might also like