Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Total Marks : 20
Question 1
Identify the correct statement. Marks: 2 MCQ
Answer: b)
Explanation: (2245, John) is a relation, that is the instance of the schema student (ss#,
name)
Question 2
Identify the correct statement(s). Marks: 2 MSQ
a) A Candidate Key is a set of one or more attributes that, taken collectively, allows us to
uniquely identify any entity in the entity set
b) A Candidate Key for which no proper subset is also a Candidate Key is called a Super Key
c) A Super Key is a set of one or more attributes that, taken collectively, allows us to uniquely
identify any entity in the entity set
d) A Super Key for which no proper subset is also a Super Key is called a Candidate Key
1
Question 3
Consider the SQL statement(s) below:
S1:
INSERT INTO employees(first_name, last_name, fname)
VALUES (‘John’, ‘Capita’, ‘xcapit00’);
S2:
SELECT instructor.ID, department.dept_name
FROM instructor, department
WHERE instructor.dept_name = department.dept_name
AND department.budget > 95000;
Identify the correct statement. Marks: 2 MCQ
a) Both S1 and S2 are Data Definition (DDL) Queries
Question 4
Identify the correct statement(s) below: Marks: 2 MSQ
c) Manages concurrency
Question 5
Data Models: A collection of tools for describing Marks: 2 MSQ
a) Data relationships
c) Data constraints
2
Question 6
Identify the correct statement. Marks: 2 MCQ
Answer: a)
Explanation: As per the definition of abstraction
Question 7
For every teacher record in a database, there is an attribute called Department. This attribute
specifies the department name. At times, the name may contain the numeric department id
concatenated with it. However, it can never comprise only of the department id. Department
name is optional in a teacher record.
Identify the correct components for the domain of the attribute Department. Marks: 2 MSQ
a) Date
b) Integer
c) null
Answer: c), d)
Explanation: The name can be a string or id (integer) concatenated with string and null is
a member of every domain.
Question 8
Consider the two relations below. The primary keys are underlined. Identify all possible foreign
key(s) from the options. Marks: 2 MCQ
a) customer name
b) loan number
Answer: b)
Explanation: loan number references loan, hence it is the foreign key for borrower
3
Question 9
Consider the two relations below:
a) r − s
b) r ∪ s
c) r ./ s (r natural join s)
d) r × s (r cartesian product s)
Answer: c)
Explanation: A NATURAL JOIN is a JOIN operation that creates an implicit join clause
for you based on the common columns in the two tables being joined.
Question 10
Identify the set difference operator from the following. Marks: 2 MCQ
Answer: d)
Explanation: As per the syntax of relational algebra operators.