Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2. Which of the following products was an early implementation of the relational model developed by
E.F. Codd of IBM?
a) IDMS b) DB2 c) dBase-II d) R:base
4.An application where only one user accesses the database at a given time is an example of a(n) ___.
a) single-user database application b) multiuser database application
c) e-commerce database application d) data mining database application
6. Which of the following products was the first to implement true relational algebra in a PC DBMS?
a) IDMS b) Oracle c) dBase-II d) R:base
10. Helping people keep track of things is the purpose of a(n) ________ .
a) database b) table c) instance d) relationship
11. Which of the following products implemented the CODASYL DBTG model?
1
ADITYA
a) IDMS b) DB2 c) dBase-II d) R:base
14. You have run an SQL statement that asked the DBMS to display data in a table named
USER_TABLES. The results include columns of data labeled "TableName,"
"NumberOfColumns" and "PrimaryKey." You are looking at ________ .
a) user data b) metadata c) A report d) indexes
15. Which of the following is not considered to be a basic element of an enterprise-class database
system?
a) Users b) Database applications c) DBMS d) COBOL programs
17. Every time attribute A appears, it is matched with the same value of attribute B, but not the same
value of attribute C) Therefore, it is true that:
a) A ? B) b) A ? C) c) A ? (B,C). d) (B,C) ? A)
18. The different classes of relations created by the technique for preventing modification anomalies
are called:
a) normal forms. b) referential integrity constraints.
c) functional dependencies. d) None of the above is correct.
22. Which of the following is a group of one or more attributes that uniquely identifies a row?
2
ADITYA
a) Key b) Determinant c) Tuple d) Relation
23. When the values in one or more attributes being used as a foreign key must exist in another set of
one or more attributes in another table, we have created a(n):
a) transitive dependency. b) insertion anomaly.
c) referential integrity constraint. d) normal form.
25. In the relational model, relationships between relations or tables are created by using:
a) composite keys. b) determinants. c) candidate keys. d) foreign keys.
28. For some relations, changing the data can have undesirable consequences called:
a) referential integrity constraints. b) modification anomalies.
c) normal forms. d) transitive dependencies.
29. A key:
a) must always be composed of two or more columns. b) can only be one column.
c) identifies a row. d) identifies a column.
34. If attribute A determines both attributes B and C, then it is also true that:
a) A ? B) b) B ? A)
c) C ? A) d) (B,C) ? A)
36. Which of the following indicates the maximum number of entities that can be involved in a
relationship?
a) Minimum cardinality b) Maximum cardinality
c) ERD d) Greater Entity Count (GEC)
37. Which type of entity cannot exist in the database unless another type of entity also exists in the
database, but does not require that the identifier of that other entity be included as part of its own
identifier?
a) Weak entity b) Strong entity c) ID-dependent entity d) ID- independent entity
38.In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n)
________ entity.
a) parent b) child c) instance d) subtype
39. which type of entity represents an actual occurrence of an associated generalized entity?
a) Supertype entity b) Subtype entity c) Archetype entity d) Instance entity
41. Which of the following indicates the minimum number of entities that must be involved in a
relationship?
a) Minimum cardinality b) Maximum cardinality c) ERD d) Greater Entity Count (GEC)
42. Which of the following refers to something that can be identified in the users' work environment,
something that the users want to track?
a) Entity b) Attribute c) Identifier d) Relationship
43. In which of the following is a single-entity instance of one type related to many entity instances of
another type?
a) One-to-One Relationship b) One-to-Many Relationship
4
ADITYA
c) Many-to-Many Relationship d) Composite Relationship
44. Which of the following refers to an entity in which the identifier of one entity includes the
identifier of another entity?
a) Weak entity b) Strong entity c) ID-dependent entity d) ID-independent entity
45. Which type of entity is related to two or more associated entities that each contain specialized
attributes that apply to some but not all of the instances of the entity?
a) Supertype entity b) Subtype entity c) Archetype entity d) Instance entity
48. In which of the following can many entity instances of one type be related to many entity
instances of another type?
a) One-to-One Relationship b) One-to-Many Relationship
c) Many-to-Many Relationship d) Composite Relationship
50.Which of the following is NOT a basic element of all versions of the E-R model?
a) Entities b) Attributes c) Relationships d) Primary keys
51. In which of the following is a single-entity instance of one type of related to a single-entity
instance of another type?
a) One-to-One Relationship b) One-to-Many Relationship
c) Many-to-Many Relationship d) Composite Relationship
52. Entities can be associated with one another in which of the following?
a) Entities b) Attributes c) Identifiers d) Relationships
53. Which type of entity has its relationship to another entity determined by an attribute in that other
entity called a discriminator?
a) Supertype entity b) Subtype entity c) Archetype entity d) Instance entity
54. Which type of entity represents a logical generalization whose actual occurrence is represented
by a second, associated entity?
a) Supertype entity b) Subtype entity c) Archetype entity d) Instance entity
55.In a one-to-many relationship, the entity that is on the many side of the relationship is called a(n)
________ entity.
a) parent b) child c) instance d) subtype
5
ADITYA
56. The SQL command to create a table is:
a) MAKE TABLE. b) ALTER TABLE. c) DEFINE TABLE. d) CREATE TABLE.
61. To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:
a) a particular column in a particular underlying table.
b) a particular column in a particular row.
c) a particular row in a particular underlying table.
d) None of the above is correct.
63. A ________ is a program that performs some common action on database data and that is stored in
the database.
a) trigger b) stored procedure c) pseudofile d) None of the above is correct.
65. What is an SQL virtual table that is constructed from other tables?
a) Just another table b) A view c) A relation d) Query results
72. Which is NOT one of the most common types of SQL CHECK constraints?
a) System date b) Range checks c) Lists of values
d) Comparing one column value to another within the same table
74.Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not
contain:
a) GROUP BY. b) WHERE. c) ORDER BY. d) FROM.
75. Which of the following database activities allow for the actual retrieval and use of a database?
a) Enterprise modeling b) Logical database design
c) Physical database design and definition d) Database implementation
80. Which of the following database activities determines the entities, attributes, and relationships of
data?
a) Conceptual data modeling b) Logical database design
c) Physical database design and definition d) Database implementation
81. The use of packaged data models can offer which of the following benefits?
a) Reduce implementation time and costs b) Higher quality models
c) Both A and B) d) Neither A nor B)
87. Which of the following database activities require a specific knowledge of a DBMS?
a) Enterprise modeling b) Conceptual data modeling
c). Logical database design d) Physical database design and definition
8
ADITYA
88. You can add a row using SQL in a database with which of the following?
a) ADD b) CREATE c) INSERT d) MAKE
98. Whose role is it to determine the requirements and design for a database?
a) Database analysts b) Database administrators
c) Both A and B) d) Neither A or B)
9
ADITYA
99. The SQL keyword(s) ________ is used with wildcards.
a) LIKE only b) IN only c)NOT IN only d) IN and NOT IN
100. Which of the following is the correct order of keywords for SQL SELECT statements?
a) SELECT, FROM, WHERE b) FROM, WHERE, SELECT
c)WHERE, FROM,SELECT d) SELECT,WHERE,FROM
103. Which of the following are the five built-in functions provided by SQL?
a) COUNT, SUM, AVG, MAX, MIN b) SUM, AVG, MIN, MAX, MULT
c) SUM, AVG, MULT, DIV, MIN d) SUM, AVG, MIN, MAX, NAME
104. To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier
specified must be included.
a) ONLY b) UNIQUE c)DISTINCT d) SINGLE
105. The benefits of a standard relational language include which of the following?
a) Reduced training costs b) Increased dependence on a single vendor
c) Applications are not needed. d) All of the above.
106. Which of the following do you need to consider when you make a table in SQL?
a) Data types b) Primary keys
c)Default values d) All of the above.
108. When three or more AND and OR conditions are combined, it is easier to use the SQL
keyword(s):
a) LIKE only. b) IN only. c) NOT IN only. d) Both IN and NOT IN.
10
ADITYA
110. Find the SQL statement below that is equal to the following: SELECT NAME FROM
CUSTOMER WHERE STATE = 'VA';
a) SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
b) SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
c) SELECT NAME IN CUSTOMER WHERE STATE = 'V';
d) SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA');
119. Needing to using more complicated SQL in database applications is a(n) ________ of
normalization.
a) advantage b) disadvantage
c)either an advantage or disadvantage d) neither an advantage nor disadvantage
11
ADITYA
120.Eliminating modification anomalies is a(n) ________ of normalization.
a) advantage b) disadvantage
c) either an advantage or disadvantage d) neither an advantage nor disadvantage
122. When assessing the table structure of an acquired set of tables with data, accessing the validity of
possible referential integrity constraints on foreign keys is (part of) the:
a) first step. b) second step. c)third step. d) fourth step.
123. Using the SQL GROUP BY phrase with a SELECT statement can help detect which of the
following problems?
a) The multivalue, multicolumn problem b) The inconsistent values problem
c)The missing values problem d) The general-purpose remarks column problem
124. For a number of reasons, normalizations is not often an advantage for a(n) ________ database.
a) read-only b) updateable
c) either a read-only or an updateable d) None of the above is correct.
125. Most of the time, modification anomalies are serious enough that tables should be normalized
into:
a) 1NF. b) 2NF. c)3NF. d)BCNF.
12
ADITYA
130. To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:
a) a particular column in a particular underlying table.
b) a particular column in a particular row.
c)a particular row in a particular underlying table.
d) None of the above is correct.
132. A ________ is a program that performs some common action on database data and that is stored
in the database.
a) trigger b) stored procedure c)pseudofile d)None of the above is correct.
143. Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not
contain:
a) GROUP BY. b) WHERE. c) ORDER BY. d)FROM.
145.Relational calculus is a
a) Procedural language. b) Non- Procedural language.
c)Data definition language. d)High level language.
155.An entity set that does not have sufficient attributes to form a primary key is a
a)strong entity set. b)weak entity set. c)simple entity set. d)primary entity set.
159.The language used in application programs to request data from the DBMS is referred to as the
a)DML b)DDL c)VDL d)SDL
163.The language which has recently become the defactostandard for interfacing application programs
with relational database system is
a)Oracle. b)SQL. c)DBase. d)4GL.
164.The way a particular application views the data from the database that the applicationuses is a
a)module. b)relational model. c)schema) d)sub schema)
15
ADITYA
165.In an E-R diagram an entity set is represent by a
a)rectangle. b)ellipse. c)diamond box. d)circle.
170.Which of these query will display the the table given above ?
a) Select employee from name b) Select name
c) Select name from employee d) Select employee
172. The ______ clause allows us to select only those rows in the result relation of the ____ clause that
satisfy a specified predicate.
a) Where, from b) From, select c) Select, from d) From, where
173. Select ID, name, dept name, salary * 1.1 where instructor;
The query given below will not give an error. Which one of the following has to be replaced to get the
desired output?
a) Salary*1.1 b) ID c) Where d) Instructor
.
174. The ________ clause is used to list the attributes desired in the result of a query.
a) Where b) Select c) From d) Distinct
175. Select name, course_id from instructor, teaches where instructor_ID= teaches_ID;
This Query can be replaced by which one of the following ?
a) Select name,course_id from teaches,instructor where instructor_id=course_id;
b) Select name, course_id from instructor natural join teaches;
16
ADITYA
c) Select name ,course_id from instructor; d) Select course_id from instructor join teaches;
179. The union operation automatically __________, unlike the select clause.
a) Adds tuples b) Eliminates unique tuples
c) Adds common tuples d) Eliminates duplicate
180. If we want to retain all duplicates, we must write ________ in place of union.
a) Union all b) Union some c) Intersect all d) Intersect some
181. (Select course id from section where semester = Fall and year= 2009)
Except (select course id from section where semester = Spring and year= 2010);
This query displays
a) Only tuples from second part
b) Only tuples from the first part which has the tuples from second part
c) Tuples from both the parts
d) Tuples from first part which do not have second part
186. The _____________ is essentially used to search for patterns in target string.
a) Like Predicate b) Null Predicate c) In Predicate d) Out Predicate
187. A _____ indicates an absent value that may exist but be unknown or that may not exist at all.
a) Empty tuple b) New value c) Null value d) Old value
17
ADITYA
188. If the attribute phone number is included in the relation all the values need not be entered into the
phone number column . This type of entry is given as
a) 0 b) - c) Null d) Empty space
189. The predicate in a where clause can involve Boolean operations such as and.The result of true and
unknown is_______, false and unknown is _____, while unknown and unknown is _____.
a) Unknown, unknown, false b) True, false, unknown
c) True, unknown, unknown d) Unknown, false, unknown
196. The statement in SQL which allows to change the definition of a table is
a) Alter. b) Update. c) Create. d) Select.
18
ADITYA
198. DBMS helps achieve
a) Data independence b) Centralized control of data
c) Neither (A) nor (B) d) Both (A) and (B)
207. Which of the following database object does not physically exist?
a) Base table b) Index c) View d) None of the above
211. Which two files are used during operation of the DBMS?
a) Query languages and utilities b) DML and query language
c) Data dictionary and transaction log d) Data dictionary and query language
20
ADITYA