compresive

21
1.The fact that the same operation may apply to two or more classes is called what? A. Inheritance B. Polymorphism C. Encapsulation D. Multiple classification Answer:B 2. The object-oriented development life cycle is which of the following? A. Analysis, design, and implementation steps in the given order and using multiple iterations. B. Analysis, design, and implementation steps in the given order and going through the steps no more than one time. C. Analysis, design, and implementation steps in any order and using multiple iterations. D. Analysis, design, and implementation steps in any order and going through the steps no more than one time. Answer:A 3. Multiplicity is the same as what concept for an ERD? A. Relationship B. Attribute C. Entity D. Cardinality Answer:D

Upload: divya-reddy

Post on 15-Oct-2014

39 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: compresive

1.The fact that the same operation may apply to two or more classes is called what?

A. Inheritance

B. Polymorphism

C. Encapsulation

D. Multiple classification

Answer:B

2.  The object-oriented development life cycle is which of the following?

A.Analysis, design, and implementation steps in the given order and using multiple iterations.

B.Analysis, design, and implementation steps in the given order and going through the steps no more than one time.

C.Analysis, design, and implementation steps in any order and using multiple iterations.

D.Analysis, design, and implementation steps in any order and going through the steps no more than one time.

Answer:A

3.  Multiplicity is the same as what concept for an ERD?

A. Relationship B. Attribute

C. Entity D. Cardinality

Answer:D

Page 2: compresive

4.Composition is a stronger form of which of the following?

A. Aggregation

B. Encapsulation

C. Inheritance

D. All of the above.

Answer:A

5.An abstract class is which of the following?

A. A class that has direct instances, but whose descendants may have direct instances.

B. A class that has no direct instances, but whose descendants may have direct instances.

C. A class that has direct instances, but whose descendants may not have direct instances.

D.A class that has no direct instances, but whose descendants may not have direct instances

Answer:B

6.  The term Complete for a UML has the same meaning as which of the following for an EER diagram?

A. Overlapping rule

B. Disjoint rule

C. Total specialization rule

D. Partial specialization rule

Answer:C

7.  A UML diagram includes which of the following?

A. Class name

Page 3: compresive

B. List of attributes

C. List of operations

D. All of the above.

Answer:D

8. An object can have which of the following multiplicities?

A. Zero

B. One

C. More than one

D. All of the above.

Answer:D

9.  Which of the following statement is true concerning objects and/or classes?

A. An object is an instance of a class.

B. A class is an instance of an object.

C. An object includes encapsulates only data.

D. A class includes encapsulates only data.

Answer:A

Page 4: compresive

10.Which of the following applies to a class rather than an object?

A. Query B. Update

C. Scope D. Constructor

Answer:c

11.  The benefits of object-oriented modeling are which of the following?

A. The ability to tackle more challenging problems

B. Reusability of analysis, design, and programming results

C. Improved communication between users, analysts, etc.

D. All of the above.

Answer:D

12.  A constructor operation does which of the following?

A. Creates a new instance of a class

B. Updates an existing instance of a class

C. Deletes and existing instance of a class

D. All of the above.

Answer:A

13.Which of the following is a technique for hiding the internal implementation details of an object?

A. Encapsulation

B. Polymorphism

C. Inheritance

D. All of the above. Answer:A

Page 5: compresive

14.  Aggregation is which of the following?

A.Expresses a part-of relationship and is a stronger form of an association relationship.

B.Expresses a part-of relationship and is a weaker form of an association relationship.

C.Expresses an is-a relationship and is a stronger form of an association relationship.

D.Expresses an is-a relationship and is a weaker form of an association relationship.

Answer:A

  15.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)

Answer:B

16.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

Page 6: compresive

17.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

Answer:D

18.A recursive relationship is a relationship between an entity and ________ .

A. itself

B. a subtype entity

C. an archetype entity

D. an instance entity

Answer:A

19.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

Answer:A

20.In which of the following is a single-entity instance of one type related to many entity

Page 7: compresive

instances of another type?

A. One-to-One Relationship

B. One-to-Many Relationship

C. Many-to-Many Relationship

D. Composite Relationship

Answer:B

21.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

Answer:C

  22.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

Answer:A

23.An attribute that names or identifies entity instances is a(n):

A. entity. B. attribute.

Page 8: compresive

C. identifier. D. relationship.

Answer:C

24.Properties that describe the characteristics of entities are called:

A. entities. B. attributes.

C. identifiers. D. relationships.

Answer:B

25.  Entities of a given type are grouped into a(n):

A. database.

B. entity class.

C. attribute.

D. ERD.

Answer:B

26.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

Answer:D

27.Which of the following data constraints would be used to specify that the value of cells in a column must be one of a specific set of possible values?

Page 9: compresive

A. A domain constraint

B. A range constraint

C. An intrarelation constraint

D. An interrelation constraint

Answer:A

28.In a 1:N relationship, the foreign key is placed in:

A. either table without specifying parent and child tables.

B. the parent table.

C. the child table.

D. either the parent table or the child table.

Answer:C

29.Which of the following column properties specifies whether or not cells in a column must contain a data value?

A. Null status

B. Data type

C. Default value

D. Data constraints

Answer:A

30.A primary key should be defined as:

A. NULL.

Page 10: compresive

B. NOT NULL.

C. Either of the above can be used.

D.

None of the above are correct.

Answer:B

31.Which of the following column properties would be used to specify that cells in a column must contain a monetary value?

A. Null status

B. Data type

C. Default value

D. Data constraints

Answer:B

32.Which of the following situation requires the use of ID-dependent entities?

A. Association relationships only

B. Multivalued attributes only

C. Archetype/instance relationships only

D. All of the above use ID dependent entities

Answer:D

33.A foreign key is:

A. a column containing the primary key of another table.

Page 11: compresive

B. used to define data types.

C. used to define null status.

D. all of the above are above correct.

Answer:A

34.  Which of the following columns is(are) are required in a table?

A. A foreign key

B. An alternate key

C. A primary key

D. A surrogate key.

Answer:c

35.In a 1:1 relationship, the foreign key is placed in:

A. either table without specifying parent and child tables.

B. the parent table.

C. the child table.

D. either the parent table or the child table.

Answer:A

  36.Which of the following column properties would be used to specify that cells in a column must be immediately filled with a monetary value of $10,000?

A. Null status

Page 12: compresive

B. Data type

C. Default value

D. Data constraints

Answer:C

37.The identifier of an entity will become the of the new table.

A. foreign key

B. main attribute

C. primary key

D. identity key

Answer:C

38.  Which of the following data constraints would be used to specify that the value of a cell in one column must be less than the value of a cell in another column in the same row of the same table?

A. A domain constraint

B. A range constraint

C. An intrarelation constraint

D. An interrelation constraint

Answer:C

39.A unique, DBMS-supplied identifier used as the primary key of a relation is called a(n):

A. primary key.

Page 13: compresive

B. foreign key.

C. composite key.

D. surrogate key.

Answer:D

40.Which is not true about surrogate keys?

A. They are short.

B. They are fixed.

C. They have meaning to the user.

D. They are numeric.

Answer:C

41.For every relationship, how many possible types of actions are there when enforcing minimum cardinalities?

A. Two B. Three

C. Four D. Six

Answer:D

42.Which constraint requires that the binary relationship indicate all combinations that must appear in the ternary relationship?

Page 14: compresive

A. MUST COVER

B. MUST NOT

C. Both of the above.

D. None of the above is correct.

Answer:A

43. Each entity is represented as a(n):

A. tuple. B. table.

C. attribute. D. file.

Answer:B

44. For every relationship, how many possible sets of minimum cardinalities are there?

A. Two B. Three

C. Four D. Six

Answer:C

45.If a relationship has a cascade updates constraint, then if ________ in the parent table is changed, then the same change will automatically be made to any corresponding foreign key value.

A. the primary key

B. any alternate key

C. a surrogate key

D. a foreign key

Page 15: compresive

Answer:A

46.Which of the following column properties would be used to specify that cells in a column must contain a monetary value that is less than another monetary value in the same row?

A. Null status

B. Data type

C. Default value

D. Data constraints

Answer:D

47. ODBC minimum SQL grammar contains which of the following?

A. INSERT, UPDATE, DELETE only

B. Stored Procedures only

C. Literals for date, time and timestamp only

D. CREATE VIEW, DROP VIEW only

Answer:A

48.When using ODBC, which of the following processes ODBC requests and submits specific SQL statements to a given type of data source?

A. Data source

B. Driver

C. Driver manager

D. DBMS

Answer:B

49.The ODBC core API consists of which of the following functions?

A. Commit or rollback transactions only

Page 16: compresive

B. Connect to data sources with driver-specific information only

C. Connect to data sources only

D. Both 1 and 3 above are in the OBDC core API.

Answer:D

50. ________ is a simple object model that is easier to understand and use than OLE DB, and is frequently used for database applications.

A. ASP B. XML

C. ODBC D. ADO

Answer:D

51.ODBC core SQL grammar contains which of the following?:

A. INSERT, UPDATE, DELETE only

B. Stored procedures only

C. Full SELECT (includes subqueries) only

D. Both 1 and 3 above are contained in the ODBC core SQL.

Answer:D

52.A good identifier is which of the following?

A. One that can change over time

B. Can be null

Page 17: compresive

C. One that is unique

D. Be intelligent

Answer:C

53.  A rectangle represents which of the following in an ERD?

A. Attribute

B. Entity

C. Optional One

D. Relationship

Answer:B

54.An entity name should be which of the following?

A. A singular noun

B. Specific to the organization

C. Concise

D. All of the above.

Answer:D

55.An oval represents which of the following in an ERD?

A. Attribute

B. Entity

Page 18: compresive

C. Optional One

D. Relationship

Answer:A

56. When the minimum and maximum number of instances of an entity is one, you know which of the following?

A. Mandatory one

B. Optional one

C. Mandatory many

D. Cannot tell

Answer:A

  57. A binary relationship cannot be which of the following?

A. One-to-One B. One-to-Many

C. Many-to-Many D. Zero-to-Zero

Answer:D

58.A ternary relationship involves how many entities?

A. 3 or less

B. 3

C. More than 3

Page 19: compresive

D. 3 or more

Answer:B

59.Which is not a type of data management technology?

A. Relational B. Rational

C. Object-oriented D. Dimensional

Answer:B

60.User views are included as part of which schema?

A. Internal

B. Conceptual

C. External

D. None of the above.

Answer:C