Sie sind auf Seite 1von 4

Database Management System: Assignment 1

Total Marks : 20

February 22, 2018

Question 1
Identify the correct statement. Marks: 2 MCQ

a) student (ss#, name) is a relation

b) (2245, John) is an instance of a relation schema

c) (2245, John) specifies a relation schema

d) (2245, John) is specifies a relation and the schema of the relation

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

Answer: a), c), d)


Explanation: As per the definition of keys

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

b) S1 is a Data Control Query and S2 is a Data Manipulation (DML) Query

c) Both S1 and S2 are Data Manipulation (DML) Queries

d) S1 is a Data Definition (DDL) Query and S2 is a Data Control Query


Answer: c)
Explanation: As per the Syntax of the language. Refer Slides

Question 4
Identify the correct statement(s) below: Marks: 2 MSQ

A database-management system (DBMS)


a) Enforces access control

b) Solves partial differential equations

c) Manages concurrency

d) Supports graphic windowing system


Answer: a), c)
Explanation: As per the definition of database management systems

Question 5
Data Models: A collection of tools for describing Marks: 2 MSQ
a) Data relationships

b) Tools to modify data

c) Data constraints

d) User Interface to modify data


Answer: a), c)
Explanation: As per definition of Data Models

2
Question 6
Identify the correct statement. Marks: 2 MCQ

a) Physical level Abstraction: describes how a record is stored

b) Physical level Abstraction: describes how schema is stored in a data base

c) Physical level Abstraction: hides details of data types

d) Physical level Abstraction: describes the data relationships in a data base

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

d) Alphanumeric (String and Integer)

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

• loan (loan number, branch name, amount)

• borrower (customer name, loan number)

a) customer name

b) loan number

c) loan number, customer name

d) loan number, customer name, branch name

Answer: b)
Explanation: loan number references loan, hence it is the foreign key for borrower

3
Question 9
Consider the two relations below:

An operation on these two relations produce the following output:

Identify the operation. Marks: 2 MCQ

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

a) Πattribute name (relation name1) ⊂ Πattribute name (relation name2)

b) Πattribute name (relation name1) ∩ Πattribute name (relation name2)

c) Πattribute name (relation name1) × Πattribute name (relation name2)

d) Πattribute name (relation name1) − Πattribute name (relation name2)

Answer: d)
Explanation: As per the syntax of relational algebra operators.

Das könnte Ihnen auch gefallen