Deck 13: Application Design III: Database and Persistence
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/98
Play
Full screen (f)
Deck 13: Application Design III: Database and Persistence
1
________ are the providers and the consumers of data.
A) Applications
B) Database management systems
C) Interfaces
D) UMLs
A) Applications
B) Database management systems
C) Interfaces
D) UMLs
Applications
2
Applications must manage the interaction between ________.
A) object space and data space
B) inside the system and outside the system
C) solution domain and solution space
D) users of the system
A) object space and data space
B) inside the system and outside the system
C) solution domain and solution space
D) users of the system
object space and data space
3
The design of the database must satisfy ________.
A) only present requirements
B) present and past requirements
C) the requirements of the entire information system ? present and possibly future.
D) only future requirements
A) only present requirements
B) present and past requirements
C) the requirements of the entire information system ? present and possibly future.
D) only future requirements
the requirements of the entire information system ? present and possibly future.
4
Changes in data management systems bring about ________ adjustments in system development.
A) revolutionary
B) small
C) incremental
D) no
A) revolutionary
B) small
C) incremental
D) no
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following is NOT a type of data?
A) quantitative
B) dependent
C) qualitative
D) composite
A) quantitative
B) dependent
C) qualitative
D) composite
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
6
Data has meaning only within the context of a(n) ________.
A) object
B) use case
C) variable
D) structure
A) object
B) use case
C) variable
D) structure
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
7
Data management is storing and organizing data in a manner that can satisfy the needs of ________.
A) the information system
B) users
C) applications
D) all of the above
A) the information system
B) users
C) applications
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
8
The two important objectives of data management are ________.
A) safe storage and easy retrieval of data
B) to screen and calculate data
C) to minimize the storage capacity and maximize the usage of database
D) to match data and application with the user requirements
A) safe storage and easy retrieval of data
B) to screen and calculate data
C) to minimize the storage capacity and maximize the usage of database
D) to match data and application with the user requirements
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
9
A stored collection of data is called ________.
A) an entity
B) an attribute
C) a table
D) a database
A) an entity
B) an attribute
C) a table
D) a database
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
10
A distributed database is a collection of databases that ________.
A) serves different applications
B) serves different users
C) resides on separate physical devices
D) has different entities
A) serves different applications
B) serves different users
C) resides on separate physical devices
D) has different entities
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
11
When a collection of databases shares one physical space, we have a ________.
A) DBMS
B) database server
C) data space
D) network
A) DBMS
B) database server
C) data space
D) network
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is NOT an operation of a database?
A) create data
B) delete data
C) retrieve data
D) updatedata
E) analyze data
A) create data
B) delete data
C) retrieve data
D) updatedata
E) analyze data
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
13
Data management belongs to the ________.
A) problem space
B) outer space
C) data space
D) solution space
A) problem space
B) outer space
C) data space
D) solution space
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
14
________ exposes the services of an object.
A) The interface
B) Encapsulation
C) Polymorphism
D) The data service
A) The interface
B) Encapsulation
C) Polymorphism
D) The data service
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
15
________ hides the services performed by the object.
A) Encapsulation
B) The interface
C) Polymorphism
D) Hidden services
A) Encapsulation
B) The interface
C) Polymorphism
D) Hidden services
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
16
The most important function of persistence objects is to ________ into a language that is understandable to the data management system
A) manage the compiler
B) install the interpreter
C) translate application requests
D) work with the interface
A) manage the compiler
B) install the interpreter
C) translate application requests
D) work with the interface
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
17
The persistence layer is a collection of ________ objects, instances of classes that mediate between an application or the entire information.
A) entity
B) control
C) flow
D) boundary
A) entity
B) control
C) flow
D) boundary
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
18
The ________ is the carrier of messages and data between the application and the database.
A) interface
B) driver
C) data language
D) application
A) interface
B) driver
C) data language
D) application
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
19
A good database management system should be ________.
A) reliable
B) robust
C) flexible
D) all of the above
A) reliable
B) robust
C) flexible
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
20
When data is grouped in records that are stored and retrieved serially from beginning to end, we call it ________.
A) direct access
B) listing access
C) sequential access
D) data access
A) direct access
B) listing access
C) sequential access
D) data access
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
21
________ improves the performance of data operations by storing indices or "keys" to data records.
A) Indexed sequential access
B) Sequential access
C) Direct access
D) Slow access
A) Indexed sequential access
B) Sequential access
C) Direct access
D) Slow access
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
22
When we find an employee by the Social Security number and do not need to read the entire employee file but, instead, can process the records in the index file, find the entry with the right number, take the "key" to the full record, and retrieve it quickly, we are using ________.
A) direct access
B) fast access
C) indexed sequential access
D) DBMS
A) direct access
B) fast access
C) indexed sequential access
D) DBMS
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following is NOT a type of early database models?
A) digital
B) flat
C) hierarchical
D) network
A) digital
B) flat
C) hierarchical
D) network
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
24
The relational model presents a(n) ________ view of the database organization and provides the basis for using a high-level language for database management.
A) physical
B) logical
C) open
D) closed
A) physical
B) logical
C) open
D) closed
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
25
________ software functions as a layer that mediates between the application and the relational database, bridging the divide between the object-oriented and relational models.
A) Object-relational mapping (ORM)
B) Object-oriented database
C) SQL
D) Object-oriented DBMS
A) Object-relational mapping (ORM)
B) Object-oriented database
C) SQL
D) Object-oriented DBMS
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
26
A relational row represents an entity, similar to an object in the object-oriented model, and each entity in the table must be ________.
A) known
B) redundant
C) unique
D) hidden
A) known
B) redundant
C) unique
D) hidden
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
27
The ________ is an attribute in one table whose value must match the value of a primary or an alternate key in a different table.
A) first column
B) foreign key
C) first row
D) best value
A) first column
B) foreign key
C) first row
D) best value
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
28
A relational database management system protects data integrity at ________.
A) the column level
B) the row level
C) inter-table and procedural levels
D) all of the above
A) the column level
B) the row level
C) inter-table and procedural levels
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
29
Another name for a procedure, a named sequence of programming statements, is a ________.
A) function
B) method
C) routine
D) any of the above
A) function
B) method
C) routine
D) any of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
30
________ is the primary language for communication with relational database management systems.
A) SQL
B) Object-oriented
C) Fortran
D) DBMS
E) UML
A) SQL
B) Object-oriented
C) Fortran
D) DBMS
E) UML
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
31
A ________ is a virtual table that represents a selected set of attributes from one or more tables.
A) view
B) row
C) column
D) tuple
A) view
B) row
C) column
D) tuple
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
32
A trigger is executed automatically in response to ________.
A) insert
B) delete
C) update
D) all of the above
A) insert
B) delete
C) update
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
33
Data normalization is a set of guidelines, techniques, and concepts that allow us to ________.
A) identify logical relationships among attributes
B) combine attributes to form relations (or tables)
C) combine tables in a schema to form a database
D) all of the above
A) identify logical relationships among attributes
B) combine attributes to form relations (or tables)
C) combine tables in a schema to form a database
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
34
A table is in the first normal form if it ________.
A) contains no repeating groups
B) has no foreign key
C) has a unique primary key
D) has both primary and foreign keys
A) contains no repeating groups
B) has no foreign key
C) has a unique primary key
D) has both primary and foreign keys
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
35
A table is in the second normal form if it contains no repeating groups and ________.
A) every non-key attribute is fully dependent on the entire primary key
B) no repeating names
C) no repeating columns
D) no repeating rows
A) every non-key attribute is fully dependent on the entire primary key
B) no repeating names
C) no repeating columns
D) no repeating rows
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
36
A table is in the third normal form if the table is in the second normal form and ________.
A) contains no repeating groups
B) has two foreign keys
C) no non-key attribute is dependent on another non-key attribute
D) none of the above
A) contains no repeating groups
B) has two foreign keys
C) no non-key attribute is dependent on another non-key attribute
D) none of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
37
Denormalization might become necessary due to ________.
A) logical considerations
B) performance degradation
C) technological constraints
D) all of the above
A) logical considerations
B) performance degradation
C) technological constraints
D) all of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
38
________ relationships must be converted to one-to-many relationships through intersection tables.
A) Many-to-many
B) One-to-one
C) None-to-none
D) Many-to-one
A) Many-to-many
B) One-to-one
C) None-to-none
D) Many-to-one
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
39
Mapping to a relational database is the application of relational and normalization rules to ________ and their relationships.
A) classes
B) data
C) variables
D) attributes
A) classes
B) data
C) variables
D) attributes
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
40
From an object-oriented viewpoint, variables ________.
A) are attributes of objects
B) belong to the messages that the objects exchange with each other
C) belong to the messages that the objects exchange with the outside world
D) any of the above
A) are attributes of objects
B) belong to the messages that the objects exchange with each other
C) belong to the messages that the objects exchange with the outside world
D) any of the above
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
41
________ classes form the overwhelming majority of tables.
A) Entity
B) Control
C) Boundary
D) Utility
A) Entity
B) Control
C) Boundary
D) Utility
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
42
Object space and data space are separated by DBMS.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
43
The tools for building database management and object-oriented languages originate from theoretical models.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
44
The changes in data management has been very rapid.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
45
A data item does not exist in a vacuum. It exists in relation to other data and to its context.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
46
Digital information systems can handle both discrete and continuous data.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
47
Identifiers form the most widely used group of categorical data.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
48
A data item finds significance when it is associated with a variable.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
49
Age is a derived attribute because it is decided by both the Birth Date and the Current Date.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
50
It is easy to replace an existing database.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
51
The interface of a database is the same as the interface of an application system.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
52
The services and the exact design of persistence classes depends on the requirements of the application system and the technology that it employs.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
53
A persistence object must translate application requests for data operations into a language that is understandable to the application software.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
54
Drivers carry messages and data between the application and the database and are managed by the operating system.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
55
The integrity of data is determined at the system analysis phase.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
56
Sequential access is a method in which data is grouped in files that are stored and retrieved serially from beginning to end.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
57
Indexed Sequential Access Method (ISAM) improved the performance of data operations by storing indices or "keys" to data records.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
58
In the hierarchical model, data records are organized as master and detail collections.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
59
The relational model presents a physical view of the database organization.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
60
Oracle, SQL Server, DB2, Sybase are example of relational databases.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
61
Structured Query Language is used only for query.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
62
The popularity of relational database has helped the adoption of OO database.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
63
Object-relational mapping is used to bridge relational and object-oriented databases.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
64
An attribute in the relational terminology is different from an object-oriented attribute.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
65
The primary key is an attribute or a set of attributes whose values uniquely identify a record.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
66
In a relational database, rows have to be in a logical order.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
67
The foreign key is an attribute in one table whose value must match the value of a primary or an alternate key in a different table.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
68
A table must have one and only one foreign key.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
69
The table whose foreign key relies on the values in another table is called the referencing table.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
70
A relational database management system protects data integrity at only four procedural levels.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
71
Relational database management systems automatically guard against any duplication of primary key values.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
72
Triggers, stored procedures, and transaction processing assure data security when and where the relationships among entities is complex.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
73
Data definition retrieves data from the database.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
74
A view is a virtual table that represents an entire set of attributes from one or more tables.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
75
Stored procedures provide an effective mechanism for ensuring data security.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
76
A table is in the third normal form if the table is in the second normal form and no non-key attribute is dependent on another non-key attribute.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
77
Denormalization might become necessary due to performance degradation.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
78
Many-to-many relationships must be converted to one-to-many relationships through intersection tables.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
79
The main modeling tool for modeling a relational database is the entity-relationship diagram.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck
80
Define data and data management.
Unlock Deck
Unlock for access to all 98 flashcards in this deck.
Unlock Deck
k this deck