Database Systems Fundamentals
- 54Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which description best captures what a database is?
Which description best captures what a database is?
54 questions
- 1
Which description best captures what a database is?
- A
A software program that processes user requests without storing information
- B
A collection of related data representing information about a real-world enterprise
- C
A set of physical devices used to connect computers across an enterprise
- D
A collection of unrelated files stored together on a computer
Correct answer
BA collection of related data representing information about a real-world enterprise
Explanation
A database is a collection of related pieces of data that represent or capture information about a real-world enterprise or part of one.
- A
- 2
Why might a very large enterprise need more than one database?
- A
The enterprise may have too much information for a single database to capture completely
- B
One database cannot store information about more than one kind of entity
- C
Each database must contain data from a different real-world enterprise
- D
A database can represent only information that is updated infrequently
Correct answer
AThe enterprise may have too much information for a single database to capture completely
Explanation
An enterprise can be large enough that multiple databases are needed to capture all of its information.
- A
- 3
What gives a database its purpose?
- A
The physical location where its users access the system
- B
The number of files its operating system can create
- C
The programming language used to create its user interface
- D
The particular data-management needs it is built to serve
Correct answer
DThe particular data-management needs it is built to serve
Explanation
Data is collected and maintained in a database to serve specific data-management needs of an enterprise.
- A
- 4
How should a database reflect changes in the enterprise it represents?
- A
It should record changes only when a database administrator requests them
- B
It should remain fixed so users can compare current work with old records
- C
It should be updated continually as the enterprise's activities and state change
- D
It should be rebuilt only when the enterprise changes its software
Correct answer
CIt should be updated continually as the enterprise's activities and state change
Explanation
As an enterprise's activities and circumstances change, those changes are reflected by continually updating the database.
- A
- 5
A university database is intended to describe only academic activities. Which information best fits that scope?
- A
Local weather patterns, regional traffic, and public transport schedules
- B
Manufacturing inventories, shipping records, and product defect reports
- C
Student records, courses, faculty, laboratories, and course registrations
- D
Personal shopping histories, entertainment preferences, and restaurant reviews
Correct answer
CStudent records, courses, faculty, laboratories, and course registrations
Explanation
The university example focuses on academic information such as students, faculty, courses, research laboratories, and student enrollment.
- A
- 6
Why would unrelated weather data generally not belong in a university's academic database?
- A
Weather data cannot be stored in a computer database
- B
Weather information can be represented only by a physical data model
- C
It is not related to the academic information the database is intended to represent
- D
A university database may contain only numerical information
Correct answer
CIt is not related to the academic information the database is intended to represent
Explanation
Database contents should be related to the enterprise information and purpose the database is designed to support.
- A
- 7
What is the main purpose of the example university database?
- A
To coordinate every financial, medical, and transportation activity in the region
- B
To keep an accurate record of the university's academic activities
- C
To store only the permanent identities of students and faculty
- D
To replace all teaching and research activities with automated processes
Correct answer
BTo keep an accurate record of the university's academic activities
Explanation
The example database is designed to keep accurate track of the university's academic activities.
- A
- 8
What is the key difference between a database and a database management system?
- A
A database handles queries; a DBMS contains only metadata about those queries
- B
A database is software; a DBMS is the physical collection of stored records
- C
A database is always paper-based; a DBMS is always a disk-based archive
- D
A database is the related data; a DBMS is software used to create and manage it
Correct answer
DA database is the related data; a DBMS is software used to create and manage it
Explanation
A database is a collection of related data, while a database management system (DBMS) is software that helps create and manage databases.
- A
- 9
Which statement best describes a DBMS?
- A
A special-purpose file containing one enterprise's records
- B
A general-purpose software system for creating and managing databases
- C
A query written by an end user to retrieve one particular record
- D
A physical storage device designed to preserve data without software
Correct answer
BA general-purpose software system for creating and managing databases
Explanation
A DBMS is complex, general-purpose software that helps create and manage databases.
- A
- 10
Why are databases commonly kept on secondary storage such as disks?
- A
Primary memory cannot hold records while a program is running
- B
Secondary storage can preserve information over time, unlike volatile primary memory
- C
Disks automatically determine which information users are allowed to see
- D
Secondary storage makes it impossible for hardware to fail
Correct answer
BSecondary storage can preserve information over time, unlike volatile primary memory
Explanation
Databases need long-term storage. Primary memory is volatile, so its contents can disappear when applications close, whereas secondary storage supports persistent storage.
- A
- 11
What does it mean for a database to be disk-resident?
- A
Its data is stored on persistent secondary storage rather than only in volatile memory
- B
Its records are stored exclusively in the computer's temporary working memory
- C
Its data can be accessed only while a disk is physically removed from a computer
- D
Its files are permanently protected from all forms of storage failure
Correct answer
AIts data is stored on persistent secondary storage rather than only in volatile memory
Explanation
A disk-resident database is stored on secondary storage so that its information can be maintained over a long period.
- A
- 12
How does a DBMS help users retrieve information from a database?
- A
It permits retrieval only when the database contains a single record
- B
It provides a standard way to express queries and returns the requested information
- C
It requires users to inspect every stored record manually
- D
It converts every query into a new physical storage device
Correct answer
BIt provides a standard way to express queries and returns the requested information
Explanation
Users pose queries to retrieve information, and a DBMS supports standardized ways of expressing and processing those queries.
- A
- 13
What role does SQL play in relational database systems?
- A
It is a physical disk structure that stores database records
- B
It is a backup method that copies data to another location
- C
It is a rule that requires every database to contain the same information
- D
It is a widely recognized standard for expressing database queries
Correct answer
DIt is a widely recognized standard for expressing database queries
Explanation
SQL is an internationally recognized standard for expressing queries to relational databases.
- A
- 14
Why does query efficiency matter especially when a database contains a large amount of data?
- A
Query results become inconsistent whenever more than one record is stored
- B
Large databases cannot contain records that users are allowed to retrieve
- C
Retrieving a particular item may take a long time unless the system processes queries efficiently
- D
A large database automatically changes every query into a data update
Correct answer
CRetrieving a particular item may take a long time unless the system processes queries efficiently
Explanation
Retrieving a particular piece of information can take longer as the amount of stored data grows, so a DBMS aims to provide results efficiently.
- A
- 15
Why is concurrent access useful in a database system?
- A
It prevents users from making requests while the database is in use
- B
It allows the system to handle requests from many users without serving only one at a time
- C
It ensures that each user receives a separate copy of every database record
- D
It removes the need to check whether updates agree with one another
Correct answer
BIt allows the system to handle requests from many users without serving only one at a time
Explanation
A DBMS supports many users accessing the system concurrently, rather than making the server answer only one request at a time.
- A
- 16
What does a user ideally experience when many people are using a database concurrently?
- A
The certainty that no other user can access the database at the same time
- B
The requirement to wait until every other user's work has ended
- C
The need to combine all users' requests into a single manual query
- D
The impression that the system is handling that user's request while also serving others
Correct answer
DThe impression that the system is handling that user's request while also serving others
Explanation
Concurrent systems handle requests from many users while giving each user the impression that their own question is being answered.
- A
- 17
Which responsibility is shared by a DBMS beyond storing data and answering queries?
- A
Organizing data storage and managing concurrent use
- B
Deciding the academic curriculum of every university
- C
Replacing the logical design decisions made by database designers
- D
Preventing enterprises from changing their information
Correct answer
AOrganizing data storage and managing concurrent use
Explanation
A DBMS helps organize data storage, process queries, and manage concurrent users.
- A
- 18
In a railway reservation system, which situation violates the stated consistency requirement?
- A
The same seat between two stations is allotted to two different people
- B
Two people request different seats on the same train
- C
The system stores a passenger's name along with a seat assignment
- D
A user searches for a seat that has already been reserved
Correct answer
AThe same seat between two stations is allotted to two different people
Explanation
The example's consistency requirement is that a particular seat between two points on a train must not be allocated to two people.
- A
- 19
Why does concurrent seat booking create a consistency challenge?
- A
A train seat can be associated with only one station
- B
Concurrent requests prevent the database from storing passenger names
- C
Several users may request the same seat at nearly the same time
- D
Users can make reservations only when no seats remain
Correct answer
CSeveral users may request the same seat at nearly the same time
Explanation
When many users make requests concurrently, multiple users may try to reserve the same seat, so the system must prevent double allocation.
- A
- 20
Where do consistency requirements for a database come from?
- A
From a requirement that every database use the same rules
- B
From the programming language used by the database operator
- C
From the needs of the particular application or domain
- D
From the physical size of the storage disk
Correct answer
CFrom the needs of the particular application or domain
Explanation
The specific consistency requirements depend on the application; for example, a reservation system must prevent one seat from being assigned twice.
- A
- 21
What does guaranteed availability of data require a database system to address?
- A
Preventing all users from updating stored information
- B
Keeping data available despite system failures
- C
Storing every database only in primary memory
- D
Ensuring that every query produces an identical result
Correct answer
BKeeping data available despite system failures
Explanation
A database system is expected to make data available even when system failures occur.
- A
- 22
What is a potential consequence of a disk failure for a database?
- A
The database automatically becomes consistent without further action
- B
The system can no longer receive queries but all data is necessarily preserved
- C
Every record is automatically transferred to volatile primary memory
- D
Stored information may be lost unless measures are taken to preserve its availability
Correct answer
DStored information may be lost unless measures are taken to preserve its availability
Explanation
Disks can fail, so a DBMS must use appropriate measures to prevent such failures from making important data unavailable.
- A
- 23
How can geographically separated replication help protect a database?
- A
It eliminates the need to maintain consistency between stored copies
- B
It prevents all programs from crashing while they update the database
- C
It ensures that every query runs faster regardless of its content
- D
A separate copy may remain available if the original site is destroyed by a catastrophe
Correct answer
DA separate copy may remain available if the original site is destroyed by a catastrophe
Explanation
Keeping a replica in a different geographic location can preserve access to data if a fire, storm, or other catastrophe destroys the original server.
- A
- 24
What danger arises if a process crashes after making only part of its intended database changes?
- A
The database will become independent of its stored metadata
- B
The crash guarantees that all intended changes were completed
- C
Partial changes may leave the database in an inconsistent state
- D
The database will necessarily erase every unrelated record
Correct answer
CPartial changes may leave the database in an inconsistent state
Explanation
A process may fail after performing only part of its work, and those partial changes can affect database consistency.
- A
- 25
What should a database system ensure when a process fails before completing its work?
- A
The failed process should continue running without recovering
- B
The database should accept the partial result as complete
- C
Every change made by every other process should be erased
- D
Incomplete changes should not be left reflected as a partial operation
Correct answer
DIncomplete changes should not be left reflected as a partial operation
Explanation
The system should avoid leaving incomplete work reflected in a way that compromises consistency; failure recovery addresses this problem.
- A
- 26
Why is simply storing records in separate files often inadequate for managing shared information?
- A
It guarantees that every copy changes automatically when one is updated
- B
It makes it impossible to store personal information on disk
- C
It can create duplicated data that must be kept consistent across locations
- D
It prevents programmers from writing any retrieval programs
Correct answer
CIt can create duplicated data that must be kept consistent across locations
Explanation
If the same information is stored in multiple files, every copy must be updated when that information changes or the copies may disagree.
- A
- 27
A student's phone number is stored in both an academic file and a health-record file. What is the main risk if only one file is updated?
- A
The student will necessarily be removed from both files
- B
The files will automatically merge into one record
- C
The two files may report different phone numbers for the same student
- D
The DBMS will be unable to store any other student information
Correct answer
CThe two files may report different phone numbers for the same student
Explanation
When duplicated data is changed in only one place, the copies become inconsistent and it may be unclear which value is correct.
- A
- 28
Why can duplicated data create problems even when storage space is inexpensive?
- A
Every duplicated value requires a separate database management system
- B
Every copy must be updated consistently when the underlying information changes
- C
Redundant information prevents users from writing queries
- D
Duplicated records cannot be stored on modern disks
Correct answer
BEvery copy must be updated consistently when the underlying information changes
Explanation
The central problem with redundancy is not just storage use; it is the work required to update every copy and maintain consistency.
- A
- 29
Why are record structures hard-coded into file-processing programs a limitation?
- A
Hard-coded structures cause all records to disappear when read
- B
Changing a structure may require modifying and recompiling the programs that use it
- C
A program can use a hard-coded structure only once
- D
They prevent a program from opening files on an operating system
Correct answer
BChanging a structure may require modifying and recompiling the programs that use it
Explanation
When record definitions are embedded in programs, structural changes can require changing the definitions and recompiling the software.
- A
- 30
What makes it difficult to serve new information requests using only custom file-processing programs?
- A
Every query must change the structure of every stored record
- B
A separate program may need to be written for each kind of query
- C
Custom programs can return only information that is not in files
- D
File-based systems cannot search through stored records
Correct answer
BA separate program may need to be written for each kind of query
Explanation
With separate files and programs, each new kind of query may require a specially written program that searches the records and returns an answer.
- A
- 31
Why is it difficult to prepare custom programs for every possible user query in advance?
- A
Users can ask queries only after every file has been deleted
- B
The range of queries users may ask is difficult to anticipate completely
- C
Queries always require the same answer, so separate programs are unnecessary
- D
A custom program cannot read records from a file
Correct answer
BThe range of queries users may ask is difficult to anticipate completely
Explanation
It is impractical to anticipate all possible user questions and write a dedicated program for each one.
- A
- 32
Which database-management responsibility becomes especially difficult when many custom programs access files independently?
- A
Preventing the operating system from creating files
- B
Choosing the names of the users who may ask questions
- C
Replacing all stored records with a single data structure
- D
Coordinating concurrent access and recovering consistently from failures
Correct answer
DCoordinating concurrent access and recovering consistently from failures
Explanation
Managing concurrent access and failure recovery becomes a difficult responsibility for programmers if there is no DBMS to provide these capabilities.
- A
- 33
What is a central advantage of using a DBMS instead of building a database system from independent file-processing programs?
- A
The DBMS ensures that storage devices can never fail
- B
The DBMS requires every enterprise to use identical records
- C
The DBMS provides general-purpose facilities for managing data, queries, users, and failures
- D
The DBMS removes the need to decide what information the enterprise needs
Correct answer
CThe DBMS provides general-purpose facilities for managing data, queries, users, and failures
Explanation
A DBMS provides shared capabilities for data storage, query processing, concurrent access, and failure handling, avoiding the need to build each capability independently.
- A
- 34
Where does a DBMS keep information describing data structures separately from the actual data?
- A
In a catalog containing metadata
- B
In the query results returned to each user
- C
In the volatile memory of every application
- D
In a separate copy of each user's program
Correct answer
AIn a catalog containing metadata
Explanation
A DBMS maintains metadata, such as record-type descriptions, separately in a system catalog.
- A
- 35
What is metadata in the database approach described here?
- A
A user's request to retrieve a particular record
- B
A second copy of every actual database record
- C
A physical disk failure affecting stored information
- D
Information describing how the database's data is structured
Correct answer
DInformation describing how the database's data is structured
Explanation
Metadata includes structural information, such as record types, that describes how the actual data is organized.
- A
- 36
How does separating metadata from application programs support program-data independence?
- A
Data structures become impossible to change after programs are written
- B
Programs can consult catalog descriptions rather than embedding all data structures directly
- C
The catalog automatically decides what information users should request
- D
Programs no longer need to access or process database records
Correct answer
BPrograms can consult catalog descriptions rather than embedding all data structures directly
Explanation
Programs can use catalog information to learn how data is structured instead of relying entirely on structure definitions hard-coded into the programs.
- A
- 37
If a database structure changes, what makes program-data independence useful?
- A
Every user must manually rewrite every stored record
- B
The catalog can be changed so programs can read the revised structural information
- C
The DBMS must discard the database and create an unrelated one
- D
The actual data must be copied into the application programs
Correct answer
BThe catalog can be changed so programs can read the revised structural information
Explanation
Structural information can be updated in the catalog, which programs can consult when they operate on the data.
- A
- 38
How can one DBMS support databases for different purposes, such as a hospital and a university?
- A
It converts all databases into a single shared file
- B
It uses the relevant catalog information to interpret each database's structure
- C
It requires a different DBMS for every type of enterprise
- D
It forces all databases to use the same records and attributes
Correct answer
BIt uses the relevant catalog information to interpret each database's structure
Explanation
A general-purpose DBMS can manage different databases by consulting the catalog information associated with each database.
- A
- 39
What is the relationship between SQL and relational database theory in this material?
- A
SQL is a standard for expressing queries, and relational theory underlies its use
- B
SQL is a metadata catalog, and relational theory defines user permissions
- C
SQL is the physical storage format, and relational theory describes disk failures
- D
SQL is a backup system, and relational theory determines server locations
Correct answer
ASQL is a standard for expressing queries, and relational theory underlies its use
Explanation
SQL is a widely used query standard associated with relational databases, supported by relational database theory.
- A
- 40
Which theoretical tools are identified as foundations for expressing and processing relational queries?
- A
Record declarations and operating-system commands
- B
Backup replication and transaction logs
- C
Tuple relational calculus and relational algebra
- D
Entity relationship diagrams and file allocation tables
Correct answer
CTuple relational calculus and relational algebra
Explanation
Tuple relational calculus and relational algebra are identified as theoretical tools underlying relational query processing.
- A
- 41
Why does a standard query language make ad hoc querying easier?
- A
Every query is stored permanently as a new record in the database
- B
The DBMS can answer questions without examining or processing stored data
- C
The standard limits users to queries prepared before the database is created
- D
Users can express varied information requests with standard constructs instead of requiring a new program for each
Correct answer
DUsers can express varied information requests with standard constructs instead of requiring a new program for each
Explanation
Once a DBMS implements the standard query language, users can formulate a wide range of requests without needing a specially written program for each query.
- A
- 42
When a DBMS handles storage and query-processing mechanisms, what can database designers focus on?
- A
The electrical design of storage devices and network cables
- B
Writing a separate low-level file-search program for every request
- C
The logical organization of information and the queries the enterprise needs
- D
Preventing the enterprise from changing the information it tracks
Correct answer
CThe logical organization of information and the queries the enterprise needs
Explanation
With DBMS facilities handling many implementation tasks, designers can concentrate on what information is represented and what queries are needed.
- A
- 43
What is a data model?
- A
A physical device that stores database files in a particular location
- B
A list of every query that users have ever submitted
- C
A program that copies database records to another server
- D
A collection of conceptual tools for describing a database at a chosen level of abstraction
Correct answer
DA collection of conceptual tools for describing a database at a chosen level of abstraction
Explanation
A data model provides conceptual tools for describing a database at a particular level of abstraction.
- A
- 44
Why are different levels of abstraction useful when describing a database?
- A
Different tasks require descriptions ranging from high-level requirements to physical implementation details
- B
Physical storage details are the only information relevant to database design
- C
Abstraction eliminates the need to identify what data an enterprise needs
- D
Every database must be described with exactly the same amount of detail
Correct answer
ADifferent tasks require descriptions ranging from high-level requirements to physical implementation details
Explanation
Data models allow a database to be described at different levels, from high-level requirements and logical design to detailed physical representation.
- A
- 45
When is a conceptual data model especially useful?
- A
When measuring the execution time of a completed query
- B
When diagnosing a failed storage device
- C
When gathering and understanding an enterprise's database requirements
- D
When specifying the exact physical layout of every disk record
Correct answer
CWhen gathering and understanding an enterprise's database requirements
Explanation
A conceptual data model offers a high-level description that is useful for understanding database requirements.
- A
- 46
Why can a conceptual model help database designers communicate with nontechnical stakeholders?
- A
It automatically converts stakeholder requests into running programs
- B
It avoids discussing the information the enterprise wants to track
- C
It describes every record in terms of machine-level storage addresses
- D
Its concepts can be explained without requiring detailed knowledge of computer science
Correct answer
DIts concepts can be explained without requiring detailed knowledge of computer science
Explanation
Conceptual modeling uses general concepts that designers can explain to nontechnical people while discussing what information should be captured.
- A
- 47
What does a representational data model emphasize?
- A
The logical representation of data while hiding physical storage details
- B
The sequence in which users submit queries to a database
- C
The informal business requirements without describing data logically
- D
The exact physical layout of every file and record on disk
Correct answer
AThe logical representation of data while hiding physical storage details
Explanation
A representational data model describes a database at the logical representation level without specifying the full physical implementation.
- A
- 48
Why is it useful to hide physical details while working on a database's logical design?
- A
It prevents the database from being stored in files or records
- B
Designers can evaluate how information is represented without being distracted by storage implementation
- C
It guarantees that the logical design will never need revision
- D
It makes it unnecessary to determine what information the database contains
Correct answer
BDesigners can evaluate how information is represented without being distracted by storage implementation
Explanation
Hiding physical representation details helps designers focus on the logical design of the database.
- A
- 49
Which details belong primarily to a physical data model?
- A
Only the names users give to their database queries
- B
The meanings of entities and associations without implementation detail
- C
Record formats, file structures, and the relationships among physical structures
- D
High-level stakeholder goals and informal descriptions of business needs
Correct answer
CRecord formats, file structures, and the relationships among physical structures
Explanation
A physical data model describes detailed implementation matters, including record formats, file structures, and related physical data structures.
- A
- 50
Which set of concepts does the entity-relationship model provide?
- A
Transactions, crashes, and recovery checkpoints
- B
Files, disk blocks, and backup locations
- C
Programs, queries, and operating-system processes
- D
Entities, relationships, and attributes
Correct answer
DEntities, relationships, and attributes
Explanation
The entity-relationship model uses the concepts of entities, relationships, and attributes to describe data.
- A
- 51
In a university database, which choice is an example of an entity?
- A
The act of updating a database catalog
- B
The enrollment association between a student and a course
- C
A student's address
- D
A faculty member
Correct answer
DA faculty member
Explanation
Students, faculty members, courses, and departments are examples of entities in the university context.
- A
- 52
In an entity-relationship description of a university, what does student enrollment in a course represent?
- A
A relationship between the student entity and the course entity
- B
An attribute belonging only to the course entity
- C
A physical file structure for student records
- D
A metadata catalog describing a record format
Correct answer
AA relationship between the student entity and the course entity
Explanation
Enrollment is an association between students and courses, so it is modeled as a relationship between those entities.
- A
- 53
In the university example, a student's name, identification number, and address are best treated as what?
- A
Separate database management systems
- B
Physical record formats for a course
- C
Attributes of the student entity
- D
Relationships between the student and a department
Correct answer
CAttributes of the student entity
Explanation
Names, student identification numbers, and addresses are examples of attributes that describe a student.
- A
- 54
Which example correctly distinguishes a relationship from an entity in the university context?
- A
A department is an entity, while a faculty member's employment in it is a relationship
- B
A faculty member's address is an entity, while the faculty member is an attribute
- C
A laboratory is an attribute, while its name is a relationship
- D
A course is a relationship, while student enrollment is a physical file
Correct answer
AA department is an entity, while a faculty member's employment in it is a relationship
Explanation
A department is one of the things represented as an entity, while employment connects faculty members with departments and is modeled as a relationship.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.