Documente Academic
Documente Profesional
Documente Cultură
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.
3. The set of all values that can be taken by the attribute is called as _______ of the attribute.
6. The ______ key of a relation is the attribute (column) or collection of attributes, which
uniquely identify a given tuple.
a) Integrity
b) Availability
c) Confidentiality
d) Discretionary Security
10. _______ product was acquired by Informix, integrated into its RDBMS and introduced as the
Informix Universal Server – an ORDBMS.
12. The ____ operator joins two or more conditions and displays rows only if that rows data
satisfies all conditions specified.
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.
14. A ______ module is typically designed so that it will run on a user workstation or personal
computer.
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.
18. The _____ category includes storage media that can be operated on directly by the
computer’s central processing unit.
19. Between DRAM and magnetic disk storage another form of memory, called ______ memory
is becoming common because it is non – volatile.
20. The transactions like adding an employee, enrolling a student in a course are examples of
_______
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.
23. The data in the database at a particular moment of time is called the _______
24. The fact that all employees of a particular organization should not have salaries more than
$10000 is a _____ constraint.
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.
26. In an ER diagram the ___shape specifies the Attibute and a ____ shape specifies the
primary key attribute.
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.
29. By ______ an area on disk in certain ways, one can make it represent a bit value of either
zero (0) or one (1).
31. Change Staff table by removing default of ‘Assistant’ for position column
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:
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
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:
39. The schema diagram for the relation EMP(ENO,ENAME,DOJ) where ENO is the primary
key is:
a)
b)
c)
d)
40. A mechanism used to deal with the problems arising due to concurrency is _________
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
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.
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
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 ______
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 _________
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
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
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:
a) 3 b) 4 c) 6 d) 8
57. Given the following relation, find the cardinality of the relation:
a) 3 b) 4 c) 6 d) 8
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:
60. Write a query to list all managers and staff using employee table:
Part A
i. External View
ii. Conceptual View
iii. Internal View
iv. Data Independence
Part B
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
iii. Relationships
iv. Attributes
Part B
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
Part A
i. 1NF
ii. 2NF
iii. 3NF
iv. BCNF
Part B
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
Part A
ii. MODIFY
iii. REFERENCES
Part B
b. Gives the account the capability to reference a relation R when specifying integrity
constraints
c. Gives the account retrieval privilege
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
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
Part A
i. DML
ii. DDL
iii. DCL
Part B
a. Consists of SQL statements for operating on the data (Insert, Modify, Delete,
Retrieve)
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
Part B
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.
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) 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:
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
i. The built in function sysdate can be used to obtain the current system date
EName VarChar(15),
(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
Part B
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
EMP
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
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
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’
ITEM = ‘Chair’
d) None
75. Given the following query write another query simplifying the AND & OR operators: