Vous êtes sur la page 1sur 31

Model Question Paper

Subject Code: MC0067

Subject Name: Database Management System (DBMS and Oracle 9i)

Credits: 4 Marks: 140

Part A (One mark questions)

1. The _______ is a set of programs to use and / or modify this data.

a) DBMS b) System c) Program d) Software

2. The ______ indexes are forced to store only record IDs in the data structure and require at
least one additional I/O Operation to retrieve the actual record.

a) Clustered b) Hashed c) Un-clustered d) Collision

3. The set of all values that can be taken by the attribute is called as _______ of the attribute.

a) Tuple b) Cardinality c) Degree d) Domain

4. The full form of GUI is _________

a) Government Union Internet

b) Graphical Unit Interface

c) Graphical User Interface

d) Graphical University Interface


5. The middleware databases in which the business rules act are applicable to _______ tier
architectures

a) Single b) Three c) Two d) None

6. The ______ key of a relation is the attribute (column) or collection of attributes, which
uniquely identify a given tuple.

a) Primary b) Foreign c) Candidate d) Alternate

7. E-R Modeling is achieved by using ____ diagrams

a) DFD b) Flowcharts c) Gantt Charts d) E-R

8. Protection of data from unauthorized Disclosure results in loss of _______

a) Integrity

b) Availability

c) Confidentiality

d) Discretionary Security

9. _____ database is used to provide statistical information or summaries of values based on


various criteria.

a) Statistical b) Mathematical c) Normalized d) Un normalized

10. _______ product was acquired by Informix, integrated into its RDBMS and introduced as the
Informix Universal Server – an ORDBMS.

a) Star b) llustar c) SQL d) Cygnus


11. The ______ language consists of SQL statements for operating on the data (insert, Modify,
Delete) in tables that already exist.

a) Data Manipulation b) Data Definition c) Data Control d) None

12. The ____ operator joins two or more conditions and displays rows only if that rows data
satisfies all conditions specified.

a) OR b) AND c) NOT d) ALL

13. A _____ is a logical unit of database processing that includes one or more data access
operations that can include insertion, deletion, modification or retrieval operations.

a) Database b) Data c) Transaction d) Record

14. A ______ module is typically designed so that it will run on a user workstation or personal
computer.

a) Client b) Server c) Program d) Software

15. A data type or format is specified for each _________

a) Tuple b) Domain c) Relation d) Database

16. The concept of mapping of ______ entity types is the concept in which the for each strong
entity type E in the ER schema, create a relation R that includes all the simple attributes of E.

a) Irregular b) Weak c) Regular d) None


17. A DBMS is a ____ user if at most one user can use the system and is mostly restricted to
personal computer systems.

a) Multi b) Single c) Concurrent d) None

18. The _____ category includes storage media that can be operated on directly by the
computer’s central processing unit.

a) Primary storage b) Secondary Storage c) Tertiary Storage d) All

19. Between DRAM and magnetic disk storage another form of memory, called ______ memory
is becoming common because it is non – volatile.

a) RAM b) Secondary c) Flash d) Hard Disk

20. The transactions like adding an employee, enrolling a student in a course are examples of
_______

a) Physical b) Logical c) Theoretical d) None

21. Employees in a company are each assigned their own office, i.e. for each employee there
exists a unique office and for each office there exists a unique employee; This statement is an
example of ____ type of relation.

a) 1:1 b) 1: Many c) Many: One d) Many : Many


22. The fact that information in the data warehouse changes far less often and may be regarded
as non-real-time with periodic updating; This implies that data warehouses are _______

a) Volatile b) Non - Volatile c) Logical d) Physical

23. The data in the database at a particular moment of time is called the _______

a) Snapshot b) Dynaset c) Stateless d) Stateful

24. The fact that all employees of a particular organization should not have salaries more than
$10000 is a _____ constraint.

a) Schema b) Tuple c) Domain d) Relational

25. A ____ key specifies a uniqueness constraint that no two distinct tuples in any state r of
relation R can have the same value for super key.

a) Sub b) Parent c) Candidate d) Super

26. In an ER diagram the ___shape specifies the Attibute and a ____ shape specifies the
primary key attribute.

a) Oval; An oval with an underlined attribute

b) Circle; A circle with bolded attribute inside it

c) Diamond; A bolded attribute

d) Square; An attribute within the square


27. A weak entity has an ______ dependency on its owner entity, which can be used for both
ON UPDATE and ON DELETE.

a) Direct b) Indirect c) Existence d) No

28. The size of a data item is called its _______, which can be a field of some record or may be
a larger unit such as a record.

a) Similarity b) Granularity c) Dimensionality d) Arity

29. By ______ an area on disk in certain ways, one can make it represent a bit value of either
zero (0) or one (1).

a) Vulcanizing b) Galvanizing c) Magnetizing d) Passing UV rays

30. Create a table with the following attributes:

Employee(EMPNO integer, EMPNAME of 10 characters)

a) Create table Employee(EMPNO int, EMPNAME char(10));

b) Create table Employee(EMPNO integer, EMPNAME String(10));

c) Create table Emplo(EMPNO number, EMPNAME string);

d) Create table Emp(EMPNO int, EMPNAME char(10));

31. Change Staff table by removing default of ‘Assistant’ for position column

a) ALTER TABLE Staff ALTER position DROP DEFAULT;

b ALTER TABLE Staff ALTER position DEFAULT;

c) ALTER TABLE Staff ALTER DROP DEFAULT;

d) MODIFY Staff ALTER position DROP DEFAULT;


32. Given the following relation S(SNO,SNAME,CITY) write a query to update the value of CITY
to ‘KANPUR’ for the supplier S1.

a) UPDATE S CITY = ‘KANPUR’ WHERE SNO=‘S1’

b) UPDATE S SET CITY = ‘KANPUR’ FOR SNO=‘S1’

c) UPDATE S SET CITY = ‘KANPUR’ WHERE SNO=‘S1’

d) UPDATE S RENAME CITY = ‘KANPUR’ WHERE SNO=‘S1’

33. Given the following relation identify the number of redundant rows:

a) 4 b) 2 c) 3 d) 1
34. Given the following relation, give the output of the query:

Select avg(num) from t1;

T1

10

20

30

40

50

60

a) 45 b) 35 c) 75 d)25

35. For the following table find the number of rows ____

T1

150

250

350

450

550

750

a) 5 b) 7 c) 6 d) 8
36. For the following table find the number of rows for the city Ohio

Name City State

Joe Howard Ohio

Mary Ontario New York

Sam Lawrence Michigan

Clark St. Louis Ohio

James Lawrence Ohio

Osho Howard Ohio

a) 4 b) 7 c) 9 d) 11

37. To see the empid’s of the employees getting salary greater than or equal to 20000, the
query is:

a) Select empid from emp where sal>20000

b) Select empid from emp where sal<20000

c) Select empid from emp where sal>=20000

d) Select empid from emp where sal<=20000

38. Given the following relation EMP(ENO,ENAME,DOJ,DEPTNO,DNAME) write a query to


insert values into the attributes ENO,ENAME,DOJ

a) INSERT INTO EMP(ENO,ENAME,DOJ) VALUES(10,’ABC’,’10-12-2007’);


b) INSERT INTO EMP VALUES(10,’ABC’,’10-12-2007’);

c) INSERT INTO EMP(ENO,ENAME,DOJ,DEPTNO) VALUES(10,’ABC’,’10-12-2007’);

d) INSERT INTO EMP(ENO,ENAME,DOJ, DEPTNO,DNAME) VALUES(10,’ABC’,’10-12-2007’);

39. The schema diagram for the relation EMP(ENO,ENAME,DOJ) where ENO is the primary
key is:

a)

ENO ENAME DOJ

b)

ENO ENAME DOJ

c)

ENO ENAME DOJ

d)

ENO ENAME DOJ

40. A mechanism used to deal with the problems arising due to concurrency is _________

a) Locking b) Breaking c) Normalizing d) Atomizing


Part B (Two mark questions)

41. A ____ is a table; and the ____ is a field or column in a relation

a) Table, Tuple

b) Column, Attribute

c) Relation, Attribute

d) Column, Tuple

42. The _____ option deletes / updates all the references successively or in a cascaded
fashion and finally delete / update the parent record; The ______ updates the
referencing to Null and then delete / update the parent record.

a) Cascade, Nullify

b) Monitoring, zeroing

c) Cascading, Zeroing

d) On-Delete – Cascade, Update command

43. The ______ logic component is responsible for formatting and presenting the data
on the user’s screen; The _____ logic component handles data processing logic,
business rules logic, and data management logic.

a) processing;presentation

b) presentation; processing

c) computational; business

d) computational; presentation
44. The ____________ refers to the fact that the collective cost of several combined
operations may be less than the sum of cost of individual operations; and the _______
refers to the fact that with centralized control, DBA can ensure those standards for data
names etc. is followed uniformly through out the organization.

a) Efficient extraction of relevant information; Environment of standards

b) Sharing of data; Balancing Conflicting Requirements

c) Economy of Scale; Environment of Standards

d) None

45. The _______ modeling is the most common way to express the analytical result of
an early stage in the construction of a new database; and ______ diagrams are a way to
represent the structure and layout of a database.

a) Conceptual; DFD

b) Analytical; Flowcharts

c) Theoretical; DFD

d) ER; Entity – Relationship

46. The ____ of a relationship is the number of entities associated with the relationship
and the ___ of a relationship describes the mapping of associated entity instances in the
relationship.

a) Degree; Connectivity

b) Degree; Associativity

c) Connectivity; Associativity

d) Cardinality; Associativity
47. The theory of Prediction____ in data mining can show how certain attributes within
the data will behave in the future; and the concept of ________ Classification in data
mining partitions the data so that different classes or categories can be identified based
on combinations of parameters.

a) Classification; Optimization

b) Identification; Classification

c) Prediction; Classification

d) Prediction; Identification

48. The _____ crashes are usually media failures for example, main memory failure; and
during transaction execution, certain conditions may occur that necessitate the
cancellation of transactions called ______

a) System Crashes; Local Errors

b) Transaction; Concurrency control

c) Physical; Transaction

d) None

49. The _____ memory is typically used by the CPU to speed up execution of the
programs; and the ______ provides the main work area for the CPU for keeping
programs and data and is popularly called main memory.

a) main; secondary

b) cache; DRAM

c) Main; RAM

d) Secondary; Primary
50. A DBA (Database Administrator) has the privileges for ________ and _________

a) Account Creation; Privilege Granting

b) Revoking Privileges; Developing the database

c) Auditing; Buying the systems

d) Managing the organization; Dealing with Database Vendors

51. A transaction enters into an ____ state immediately after it starts its execution,
where in it can issue read or write operations; A transaction enters into partially
committed state when the transaction ____

a) Passive; Starts

b) Committed; Partially Committed

c) Active; Ends

d) Passive; Committed

52. Employee name is an ______ of the employee table and the statement an employee
salary cannot be more than 20000 is a ______ on the employee table.

a) entity; value

b) attribute; constraint

c) Entity; Constraint

d) Attribute; Value

53. The values of an attribute which cannot be determined are treated as __________
and _______ in a relation need not be ordered.

a) Nulls; tuples

b) Zero; Columns

c) Not Nulls; Tuples

d) Defaults; Tuples
54. The ____ property of a transaction states that it should be an atomic unit of
processing, it is performed in its entirety or not performed at all; and the _______
property of a transaction states that the changes applied to a database by a committed
transaction must persist in the database.

a) Atomicity; Isolation

b) Consistency; Isolation

c) Atomicity; Durability

d) Atomicity; Consistency

55. A ____ file places the records on disk in no particular order by appending new
records at the end of the file, whereas a ______ file keeps the records ordered by the
value of a particular field

a) Heap; Random

b) Heap; Sequential

c) Random; Sequential

d) Ordered; Unordered

56. Given the following relation, find the degree of the relation:

Name City State

Joe Howard Ohio

Mary Ontario New York

Sam Lawrence Michigan

Clark St. Louis Ohio

James Lawrence Ohio

Osho Howard Ohio

a) 3 b) 4 c) 6 d) 8
57. Given the following relation, find the cardinality of the relation:

Name City State

Joe Howard Ohio

Mary Ontario New York

Sam Lawrence Michigan

Clark St. Louis Ohio

James Lawrence Ohio

Osho Howard Ohio

a) 3 b) 4 c) 6 d) 8

58. A relation between a student entity and course entity is _____

a) 1:1 b) 1: N c) N:1 d) N : N

59. To see the empid’s of the employees whose department number lies between 10 & 20 the
query is:

a) Select empid from emp where deptno>10 and deptno<20

b) Select empid from emp where deptno>=10 and deptno<=20

c) Select empid from emp where deptno>10 and deptno<20

d) Select empid from emp where deptno<10 and deptno<20

60. Write a query to list all managers and staff using employee table:

a) Select empid from emp where position is in(‘Manager’,’Staff’)

b) Select empid from emp where position = (‘Manager’,’Staff’)

c) Select empid from emp where position =‘Manager’and position =’Staff’

d) Select empid from emp where position in(‘Manager’,’Staff’)


Part C (Four mark questions)

61. Match the following:

Part A

i. External View
ii. Conceptual View
iii. Internal View
iv. Data Independence

Part B

a. Community User View


b. Physical or Storage View
c. Occurs when the storage structure of the database can change without requiring the
programs that can access the database to change
d. Individual User View

A) i – a, ii – b, iii – c, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c
62. Match the following:

Part A

i. Entities

ii. Associative Entities

iii. Relationships

iv. Attributes

Part B

a. Describe the entity with which they are associated

b. Represent an association between two or more entities

c. The principal data objects about which information is to be collected.

d. The entities used to associate two or more entities in order to reconcile a many – to –
many relationship

A) i – a, ii – b, iii – c, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

63. Match the following Normalization definitions:

Part A

i. 1NF

ii. 2NF

iii. 3NF

iv. BCNF
Part B

a. If only the determinants it has are candidate keys

b. Does not contain repeating groups

c. No non-key attribute is functionally dependent on only a portion of the primary key

d. For each determinant, which is not a candidate key, remove from the relation the
attributes which depend on this determinant and create a new relation that contains all
attributes from the original relation which depend on this determinant.

A) i – a, ii – b, iii – c, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

64. Match the following Priveleges:

Part A

i. SELECT (Retieval or Read)

ii. MODIFY

iii. REFERENCES

iv. Authorization Identifier

Part B

a. A Unique Identifier given for the privileges to the user

b. Gives the account the capability to reference a relation R when specifying integrity
constraints
c. Gives the account retrieval privilege

d. Gives the account the capability to modify the tuples in a relation

A) i – a, ii – b, iii – c, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

65. Match the following with respect to data mining:

Part A

i. Prediction

ii. Identification

iii. Classification

iv. Optimization

Part B

a. Data patterns can be used to identify the existence of an item, an event, or an activity.

b. Partitioning the data so that different classes or categories can be identified based on
combinations of parameters

c. Match the followingakin best utilization of limited resources such as time, space, or
money

d. Showing how certain attributes within the data will behave in the future
A) i – a, ii – b, iii – c, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

66. Match the following with respect to SQL

Part A

i. DML

ii. DDL

iii. DCL

iv. Relational Database

Part B

a. Consists of SQL statements for operating on the data (Insert, Modify, Delete,
Retrieve)

b. Storage of data in the form of tables

c. Consists of SQL statements for defining the schema

d. Consists of SQL statements for providing & revoking access permissions

A) i – a, ii – c, iii – d, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c
67. Match the following with respect to Data Models of the Database Design:

Part A

i. Requirements Collection & Analysis

ii. Functional Requirements

iii. Conceptual Design

iv. Physical Design

Part B

a. User defined operations that will be applied to the database

b. A concise description of the data requirements of the users that includes entity types,
relationships, and constraints

c. In this phase the internal storage structures, indexes, access paths, and file
organizations for the database files are specified.

d. Interviewing the prospective database users to understand and document their


requirements

A) i – a, ii – c, iii – d, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c
68. Match the following with respect to storage capacities:

Part A

i. Kilobytes

ii. Megabytes

iii. Gigabytes

iv. Terabytes

Part B

c. 1000 bytes

d. 1 million bytes

b. 1 billion bytes

a. 1000 Giga bytes

A) i – a, ii – c, iii – d, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

69. In DES (Data Encryption Standard) state whether the following statements are true or false:

i. Provides End to End Ecnryption on the communication channel (TRUE)

ii. It is a combination of Substitution and Transposition Techniques (TRUE)

iii. The number of cycles used are 16 (FALSE)

iv. The block size of DES is 64 bits (FALSE)


A) i – T, ii – T, iii – F, iv - F

B) i – T, ii – T, iii – F, iv – T

C) i – T, ii –F, iii – F, iv – F

D) i – F, ii – T, iii – F, iv – F

70. State whether the following statements are true or false.

i. The built in function sysdate can be used to obtain the current system date

ii. The syntax TO_DATE(‘Mar 12 2003’, ’mon dd yyyy’) is correct

iii. CREATE TABLE Emp (

EmpNo short CONSTRAINT PKey PRIMARY KEY,

EName VarChar(15),

Job Char(10) CONSTRAINT Unik1 UNIQUE);

Mgr short CONSTRAINT FKey1 REFERENCES EMP (EmpNo));

iv. ALTER TABLE OFFICE(ADD CONSTRAINT FK2 PRIMARY KEY(Mgr) REFERENCES


SALESREP

(Empl_Num) );

A) i – T, ii – T, iii – F, iv - F

B) i – T, ii – T, iii – F, iv – T

C) i – T, ii –T, iii – T, iv – F

D) i – F, ii – T, iii – F, iv – F
71. Match the following for the correspondence between ER and relational Models:

Part A

i. Simple Attribute

ii. Multi-valued Attribute

iii. Value Set

iv. Key Attribute

Part B

a. Relation and Foreign Key

b. Domain

c. Key Attribute

d. An Attribute

A) i – a, ii – c, iii – d, iv – d

B) i – c, ii – d, iii – b, iv – a

C) i – b, ii – c, iii – a, iv – d

D) i – d, ii – a, iii – b, iv – c

72. The Normalized form of the relations:

Staff Branch (StaffNo, Sname, Position, Salary, BranchNo, bAddress) is:

a) Staff(StaffNo, Sname, Position, Salary, BranchNo,bAddress) and


Branch(BranchNo,bAddress)

b) Staff(StaffNo, Sname, Position, Salary, BranchNo) and Branch(BranchNo,bAddress)

c) Staff(StaffNo, Sname, Position, Salary, BranchNo)

d) Staff(StaffNo, Sname, BranchNo) and Branch(BranchNo,bAddress)


73. Given the following relation, find the output of the following operation: Select empid from
emp where sal >=50000

EMP

EMPID SAL Benefits Position

010 75000 15000 Manager

105 65000 15000 Manager

152 60000 15000 Manager

215 60000 12500 Manager

244 50000 12000 Staff

300 45000 10000 Staff

335 40000 10000 Staff

400 32000 7500 Entry - Level

441 28000 7500 Entry - Level

a)

EMPID

010

105

152

215

244
b)

EMPID

010

105

300

215

244

c)

EMPID

010

105

335

215

244

d)

EMPID

010

105

335

400

244
74. Given the following relations, write a query to find the names of those who bought a chair

OWNERS

OwnerID OwnerLastName OwnerFirstName

01 Jones Bill

02 Smith Bob

15 Lawson Patricia

21 Akins Jane

50 Fowler Sam

ORDERS

ItemDesired

02 Table

02 Desk

21 Chair

15 Mirror

ANTIQUES

SellerID BuyerID Item

01 50 Bed

02 15 Table

15 02 Chair

21 50 Mirror

50 01 Desk

01 21 Cabinet
02 21 Coffee Table

15 50 Chair

01 15 Jewellery Box

02 21 Pottery

21 02 Book Case

50 01 Plant Stand

a) SELECT ANTIQUEOWNERS.OWNERLASTNAME,
ANTIQUEOWNERS.OWNERFIRSTNAME FROM ANTIQUEOWNERS, ANTIQUES WHERE
ANTIQUES.SELLERID = ANTIQUEOWNERS.OWNERID AND ANTIQUES.ITEM = ‘Chair’

b) SELECT ANTIQUEOWNERS.OWNERLASTNAME,
ANTIQUEOWNERS.OWNERFIRSTNAME FROM ANTIQUEOWNERS, ANTIQUES WHERE
ANTIQUES.BUYERID = ANTIQUEOWNERS.OWNERID AND ANTIQUES.ITEM = ‘Chair’

c) SELECT OWNERLASTNAME, OWNERFIRSTNAME FROM ANTIQUEOWNERS,


ANTIQUES WHERE BUYERID = OWNERID AND

ITEM = ‘Chair’

d) None
75. Given the following query write another query simplifying the AND & OR operators:

SELECT EMPID FROM EMP WHERE POSITION = ‘Manager’ AND SALARY>60000 OR


BENEFITS<10000

a) SELECT EMPID FROM EMP WHERE (POSITION = ‘Manager’) AND SALARY>60000 OR


BENEFITS<10000

b) SELECT EMPID FROM EMP WHERE POSITION = ‘Manager’ AND SALARY>60000 OR


(BENEFITS<10000)

c) SELECT EMPID FROM EMP WHERE POSITION = ‘Manager’ AND (SALARY>60000 OR


BENEFITS<10000)

d) SELECT EMPID FROM EMP WHERE (POSITION = ‘Manager’ AND SALARY>60000 OR


BENEFITS<10000)
Answer Keys
Part - A Part - B Part - C
Q. No. Ans. Key Q. No. Ans. Key Q. No. Ans. Key Q. No. Ans. Key
1 A 21 A 41 C 61 D
2 C 22 B 42 A 62 B
3 D 23 A 43 B 63 C
4 C 24 C 44 C 64 B
5 B 25 D 45 D 65 D
6 A 26 A 46 A 66 A
7 D 27 C 47 C 67 D
8 C 28 B 48 A 68 B
9 A 29 C 49 B 69 A
10 B 30 A 50 A 70 C
11 A 31 A 51 C 71 D
12 B 32 C 52 B 72 B
13 C 33 C 53 A 73 A
14 A 34 B 54 C 74 B
15 A 35 C 55 B 75 C
16 C 36 A 56 A
17 B 37 C 57 A
18 A 38 A 58 B
19 C 39 C 59 B
20 B 40 A 60 D

Vous aimerez peut-être aussi