Database Management Systems Overview
- 44Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What does a database management system provide for an enterprise?
What does a database management system provide for an enterprise?
44 questions
- 1
What does a database management system provide for an enterprise?
- A
Programs for communication, but no organized data or processing environment
- B
A file hierarchy that stores documents without supporting data processing
- C
A collection of unrelated files, manual processing, and a fixed storage location
- D
Related data, programs to process it, and a convenient, efficient environment
Correct answer
DRelated data, programs to process it, and a convenient, efficient environment
Explanation
A database management system contains information about an enterprise, provides programs to process that data, and offers an environment that is convenient and efficient to use.
- A
- 2
In the context of database systems, what can count as an enterprise?
- A
Only a large commercial corporation with many employees
- B
Only a government agency or a financial institution
- C
Any entity that needs to collect and manage interrelated data
- D
Any computer system that contains a single electronic document
Correct answer
CAny entity that needs to collect and manage interrelated data
Explanation
An enterprise can be a business, nation, bank, global organization, small group, or even an individual—any entity with a need to collect interrelated data.
- A
- 3
Why are online banking and payment services examples of database applications?
- A
They replace all financial records with unstructured text messages
- B
They work only by storing copies of transactions in individual users’ folders
- C
They use computers to display financial news without retaining user information
- D
They store and process information needed to carry out financial transactions
Correct answer
DThey store and process information needed to carry out financial transactions
Explanation
Banking and payment services rely on databases to store and process information required for transactions and account management.
- A
- 4
Why do railway and airline reservation services rely on databases?
- A
They need to manage reservation information and coordinate access to limited seats or berths
- B
They use databases primarily to store timetables as unchanging text documents
- C
They need to avoid recording which travelers have reserved particular seats
- D
They can assign seats only if each traveler maintains a separate local file
Correct answer
AThey need to manage reservation information and coordinate access to limited seats or berths
Explanation
Reservation applications manage bookings for limited resources, such as seats and berths, and must handle reservations reliably.
- A
- 5
Which combination of tasks is described as part of a university database application?
- A
Manufacturing devices, monitoring factory machines, and controlling power grids
- B
Editing personal documents, compressing images, and managing desktop folders
- C
Registering students, assigning grades, and generating class rosters
- D
Designing processors, compiling operating systems, and routing internet traffic
Correct answer
CRegistering students, assigning grades, and generating class rosters
Explanation
University databases can manage student and faculty records, courses, registration, rosters, timetables, grades, and grade point averages.
- A
- 6
Why are e-commerce retailers database applications?
- A
They store each customer’s information exclusively on that customer’s device
- B
They avoid storing information about products, customers, or transactions
- C
They use databases only to publish static advertisements
- D
They manage large amounts of information associated with online sales and retail operations
Correct answer
DThey manage large amounts of information associated with online sales and retail operations
Explanation
Large e-commerce retailers are examples of wide-ranging database applications that manage information needed for retail operations.
- A
- 7
Why are email and social media services also considered database applications?
- A
They rely exclusively on a user’s local files rather than organized stored data
- B
They retain information such as messages, contacts, and send-and-receive details
- C
They store only the names of users and do not retain communication information
- D
They work by processing every message without keeping any records
Correct answer
BThey retain information such as messages, contacts, and send-and-receive details
Explanation
Email services store messages, contacts, and sending and receiving information; social media and chat services also depend on databases.
- A
- 8
Which set of skills does the content identify as having broad industry demand?
- A
Database programming, database design, and database administration
- B
Manual record keeping, hardware repair, and office administration
- C
Spreadsheet formatting, document editing, and desktop customization
- D
Computer assembly, graphics design, and network cabling
Correct answer
ADatabase programming, database design, and database administration
Explanation
Database programming, design, and administration are described as skills needed across IT infrastructure, IT applications, and related industries.
- A
- 9
What is a flat file, as described in the content?
- A
A tree structure that stores records in sorted order
- B
Data stored in a file rather than managed as a database system
- C
A program that processes transactions across multiple accounts
- D
A collection of tables linked by enforced database relationships
Correct answer
BData stored in a file rather than managed as a database system
Explanation
A flat file is a way to keep data in files; CSV is given as a common example of sharing data in this form.
- A
- 10
How does a CSV file commonly represent data?
- A
It separates field values with commas in a file
- B
It encrypts each field and stores it in a separate database
- C
It represents relationships using only binary logic operations
- D
It stores each value as a node in a balanced search tree
Correct answer
AIt separates field values with commas in a file
Explanation
CSV stands for comma-separated values: values for different fields are commonly separated by commas.
- A
- 11
How can storing the same data in multiple files create redundancy and inconsistency?
- A
Duplicated information uses extra space, and updates may be made to only some copies
- B
Each copy is guaranteed to receive every update, but files become slower to open
- C
The copies combine into a single record and remove the need for consistency checks
- D
The data is automatically compressed, but the original values become inaccessible
Correct answer
ADuplicated information uses extra space, and updates may be made to only some copies
Explanation
Duplicating data in multiple places can bloat storage. If one copy is updated but another is not, the copies become inconsistent.
- A
- 12
What is the difficulty with accessing data stored only in simple files?
- A
Every file automatically enforces complex rules on the data it contains
- B
The data cannot be opened as text or viewed in a spreadsheet
- C
The data must be accessed only through a database query language
- D
Automated access and processing may be difficult compared with using an organized database
Correct answer
DAutomated access and processing may be difficult compared with using an organized database
Explanation
Simple file-based data may be read as text or traversed in a spreadsheet, but accessing and processing it in an automated fashion can be difficult.
- A
- 13
What does data isolation mean as a problem in file-based data management?
- A
Data is duplicated within one file but automatically synchronized across systems
- B
Data is protected from access by being organized into database tables
- C
Data is spread across files and formats that are difficult to integrate consistently
- D
Data is stored in one place and is therefore inaccessible to all users
Correct answer
CData is spread across files and formats that are difficult to integrate consistently
Explanation
When data is stored in multiple files and formats, it can be difficult to integrate the files and keep their information consistent.
- A
- 14
What is a data integrity constraint in the bank-account example?
- A
A rule that account holders may never make electronic transactions
- B
A rule that every account must be stored in a separate file
- C
A rule that a bank must allow every requested debit to proceed
- D
A rule that an account balance must not fall below a required minimum
Correct answer
DA rule that an account balance must not fall below a required minimum
Explanation
The minimum-balance requirement is an integrity constraint: a transaction should not leave an account below the permitted balance.
- A
- 15
Why can integrity constraints be difficult to maintain with simple files?
- A
The rules may be buried in program code and difficult to apply consistently
- B
The rules require every file to be converted into a social media account
- C
The rules prevent users from reading or updating any file-based data
- D
The rules are automatically enforced by the file format but cannot be changed
Correct answer
AThe rules may be buried in program code and difficult to apply consistently
Explanation
With file-based applications, a rule such as maintaining a minimum balance may be buried in code, making it difficult to ensure that every relevant action observes it.
- A
- 16
What is the main security concern identified for data management systems?
- A
The data may be too easy to sort using a spreadsheet
- B
A file hierarchy may contain more folders than users can remember
- C
Threats such as spyware and identity theft can expose or misuse information
- D
Users may be unable to format a CSV file with consistent commas
Correct answer
CThreats such as spyware and identity theft can expose or misuse information
Explanation
Security is a major concern because of threats such as spyware and identity theft.
- A
- 17
What is the defining requirement of atomicity for an operation that maintains consistency?
- A
The operation is performed only when no other user is logged in
- B
Each part of the operation happens independently when convenient
- C
The operation can be interrupted after any step without affecting consistency
- D
The entire operation happens, or none of it does
Correct answer
DThe entire operation happens, or none of it does
Explanation
Atomicity means an operation is treated as an indivisible whole: either the entire task occurs or it does not occur at all.
- A
- 18
In a bank transfer, which actions together form the transaction described in the content?
- A
Checking the recipient’s address and changing the sender’s password
- B
Opening two account files and copying their contents to a spreadsheet
- C
Debiting the sender’s account and crediting the recipient’s account
- D
Recording the sender’s name and printing a balance statement
Correct answer
CDebiting the sender’s account and crediting the recipient’s account
Explanation
A transfer requires both debiting the payer’s account and crediting the recipient’s account; both actions must be treated as parts of one transaction.
- A
- 19
What could happen if a banking system fails after debiting a payer but before crediting the recipient?
- A
The recipient would be credited twice while the payer’s balance stayed unchanged
- B
Both accounts would automatically be restored without any transaction handling
- C
The payer would receive the money while the recipient’s balance stayed unchanged
- D
The money could be debited from the payer without being credited to the recipient
Correct answer
DThe money could be debited from the payer without being credited to the recipient
Explanation
If the system fails between the two steps, the payer’s account may be debited while the recipient’s account is not credited, making the funds appear lost.
- A
- 20
How should a system handle a multi-step transfer to preserve atomicity?
- A
Treat the debit and credit as one unit that either completes fully or does not occur
- B
Commit the debit immediately and attempt the credit later as an unrelated action
- C
Perform the credit only if the system has no other active users
- D
Allow each step to finish independently and rely on users to notice mismatches
Correct answer
ATreat the debit and credit as one unit that either completes fully or does not occur
Explanation
The complete transaction, including its related actions, must succeed as a whole or not happen at all.
- A
- 21
Why does reserving the last available train berth illustrate a concurrency problem?
- A
A reservation system must duplicate every berth in separate files for each user
- B
Two users may request the same limited berth at nearly the same time, but only one can receive it
- C
Two users may view different schedules, so the train cannot leave on time
- D
A berth can be reserved only when no other user is using the reservation system
Correct answer
BTwo users may request the same limited berth at nearly the same time, but only one can receive it
Explanation
Concurrent users can try to reserve the same last berth. The system must ensure that the berth is allocated to only one of them.
- A
- 22
Which statement best captures the concurrency challenge described in the content?
- A
Many users may access a system only if each receives a separate copy of all its data
- B
Many users may access the same system at once, so shared actions must be managed fairly and correctly
- C
A system avoids concurrency issues by preventing users from making simultaneous requests
- D
Concurrent access is possible only when users are in the same part of an organization
Correct answer
BMany users may access the same system at once, so shared actions must be managed fairly and correctly
Explanation
Database systems may be used concurrently by many people from different locations, creating challenges in managing shared data and resources fairly.
- A
- 23
What does membership in a set indicate?
- A
That two sets have no elements in common
- B
That one set contains every possible set as an element
- C
That a relation between two elements is necessarily a function
- D
That an element belongs to the collection represented by the set
Correct answer
DThat an element belongs to the collection represented by the set
Explanation
Membership describes whether a particular element belongs to a set.
- A
- 24
What does it mean for one set to be a subset of another?
- A
The first set contains every element that could possibly exist
- B
Every element of the first set is also an element of the second set
- C
The first set contains only ordered pairs from the second set
- D
The two sets contain exactly one common element
Correct answer
BEvery element of the first set is also an element of the second set
Explanation
A set is a subset of another when all elements of the first set are contained in the second.
- A
- 25
What is the power set of a set?
- A
The set of elements that are outside the original set
- B
The set of all ordered pairs formed from the original set
- C
The set of elements that belong to every universal set
- D
The set of all subsets of the original set
Correct answer
DThe set of all subsets of the original set
Explanation
The power set collects all subsets of a given set.
- A
- 26
What is the universal set in a particular discussion of sets?
- A
The set containing only elements that appear in every subset
- B
The set of all subsets that contain exactly one element
- C
The set formed only by intersecting two smaller sets
- D
The set that contains the full collection of elements being considered
Correct answer
DThe set that contains the full collection of elements being considered
Explanation
The universal set represents the full collection of elements under consideration for a given context.
- A
- 27
Which operation produces the elements that are in either of two sets, or in both?
- A
Complement
- B
Set difference
- C
Union
- D
Intersection
Correct answer
CUnion
Explanation
The union of two sets contains elements that belong to at least one of the sets.
- A
- 28
Which operation produces only the elements shared by two sets?
- A
Complement
- B
Cartesian product
- C
Intersection
- D
Union
Correct answer
CIntersection
Explanation
The intersection of two sets contains the elements that belong to both sets.
- A
- 29
Which operation identifies elements in one set that are not in another?
- A
Union
- B
Intersection
- C
Set difference
- D
Cartesian product
Correct answer
CSet difference
Explanation
Set difference selects elements belonging to one set while excluding those belonging to the other.
- A
- 30
What kind of elements does the Cartesian product of two sets contain?
- A
Only elements shared by both sets, without any ordering
- B
Elements of the first set that do not belong to the second
- C
Ordered pairs whose first and second components come from the respective sets
- D
All subsets of either set, including the empty set
Correct answer
COrdered pairs whose first and second components come from the respective sets
Explanation
The Cartesian product forms ordered pairs using an element from each of the two sets.
- A
- 31
What do De Morgan’s laws relate in set theory?
- A
The power set of a set to its Cartesian product
- B
Ordered pairs to the truth values of logical implications
- C
Complements of unions and intersections to unions and intersections of complements
- D
Set membership to the domain and range of a function
Correct answer
CComplements of unions and intersections to unions and intersections of complements
Explanation
De Morgan’s laws express how complementation interacts with union and intersection.
- A
- 32
What is a binary relation built from?
- A
Only individual elements with no pairing
- B
A collection of subsets that must all have equal size
- C
Ordered pairs connecting elements of sets
- D
A list of truth values without reference to sets
Correct answer
COrdered pairs connecting elements of sets
Explanation
A binary relation is represented using ordered pairs drawn from sets.
- A
- 33
What is a function in relation to a set-based relation?
- A
A relation in which every input must have several different outputs
- B
A relation that assigns each input in its domain exactly one output
- C
A set that contains every possible ordered pair from the universal set
- D
A relation that connects elements without specifying any inputs or outputs
Correct answer
BA relation that assigns each input in its domain exactly one output
Explanation
A function is a particular kind of relation in which each input in the domain has exactly one corresponding output.
- A
- 34
What is the purpose of a truth table in propositional logic?
- A
To compare the storage cost of files and database tables
- B
To show the truth values of a proposition or compound statement for possible inputs
- C
To list every element of a set and all of its subsets
- D
To record the domain and range of a function as ordered pairs
Correct answer
BTo show the truth values of a proposition or compound statement for possible inputs
Explanation
Truth tables represent how propositional statements evaluate across possible truth-value assignments.
- A
- 35
Which set lists only operations on propositions explicitly covered in the content?
- A
Conjunction, disjunction, negation, implication, and equivalence
- B
Union, intersection, complementation, set difference, and product
- C
Domain, range, image, preimage, and inversion
- D
Search, sorting, hashing, traversal, and balancing
Correct answer
AConjunction, disjunction, negation, implication, and equivalence
Explanation
The content identifies conjunction, disjunction, negation, implication, and equivalence as propositional logic operations.
- A
- 36
What is the difference between propositional logic and predicate logic as described?
- A
Predicate logic adds quantification over elements or collections
- B
Propositional logic is used for functions while predicate logic is used for files
- C
Predicate logic removes truth values and truth tables from reasoning
- D
Propositional logic uses ordered pairs while predicate logic uses only sets
Correct answer
APredicate logic adds quantification over elements or collections
Explanation
Predicate logic extends beyond propositional logic by expressing properties about elements or collections using quantifiers.
- A
- 37
What does the universal quantifier express?
- A
A property holds for at least one element in the relevant collection
- B
A property holds for every element in the relevant collection
- C
A property holds for exactly one element in the relevant collection
- D
A property holds only for elements outside the relevant collection
Correct answer
BA property holds for every element in the relevant collection
Explanation
Universal quantification expresses that a statement applies to every element in a collection.
- A
- 38
What does the existential quantifier express?
- A
There is at least one element for which the stated property holds
- B
The stated property holds only for the first element in the collection
- C
The stated property holds for no elements in the collection
- D
The stated property holds for every element in the collection
Correct answer
AThere is at least one element for which the stated property holds
Explanation
Existential quantification states that at least one element in the relevant collection satisfies a property.
- A
- 39
Why are data structures relevant to studying database systems?
- A
Database systems use many data-structure concepts, including structures for organizing and searching data
- B
Data structures are used only to format database results after all processing is complete
- C
Database systems are identical to small data structures and require no additional concepts
- D
Database systems replace the need to understand arrays, lists, trees, or hashing
Correct answer
ADatabase systems use many data-structure concepts, including structures for organizing and searching data
Explanation
The content notes that many data-structure ideas are used in database systems, while also distinguishing databases from data structures in a broader sense.
- A
- 40
Which group contains data structures highlighted as particularly relevant to the course?
- A
Matrices, linked lists, recursion stacks, and syntax trees only
- B
Splay trees, suffix trees, Fibonacci heaps, and skip lists only
- C
Stacks, queues, heaps, graphs, and tries only
- D
Search trees, balanced trees, B-trees, hashing, and hash maps
Correct answer
DSearch trees, balanced trees, B-trees, hashing, and hash maps
Explanation
Search trees, binary search trees, balanced trees, B-trees, hashing, and hash maps are identified as important data-structure topics.
- A
- 41
What level of Python ability is encouraged for the course?
- A
Proficiency in reading and writing Python, beyond mere familiarity
- B
No Python knowledge, because the course uses only C and C++
- C
Experience with Python libraries but no understanding of basic programming
- D
Only the ability to recognize Python keywords without writing code
Correct answer
AProficiency in reading and writing Python, beyond mere familiarity
Explanation
Python is described as essential, and students are encouraged to become proficient by reading and writing Python code.
- A
- 42
How does the content address Python database connectivity and additional Python features?
- A
Additional libraries and features, such as database connectivity, will be covered in the course
- B
The course teaches only spreadsheet use and does not involve Python libraries
- C
Python connectivity is excluded because all database applications use C
- D
All database connectivity must be mastered before beginning the course
Correct answer
AAdditional libraries and features, such as database connectivity, will be covered in the course
Explanation
The content says that additional Python libraries and features, including database connectivity, will be covered in the course.
- A
- 43
What role does knowledge of C play in the course, according to the content?
- A
It is unnecessary because sorting and searching are not used in database work
- B
It is essential because all database programming in the course is performed in C
- C
It is desirable rather than essential and can help with algorithmic issues such as sorting and searching
- D
It replaces the need for Python in application programming
Correct answer
CIt is desirable rather than essential and can help with algorithmic issues such as sorting and searching
Explanation
C programming is described as a desirable prerequisite, not one used extensively in the course, but it can help with algorithmic topics such as sorting and searching.
- A
- 44
How can object-oriented analysis and design relate to database system design?
- A
Both involve considering data elements, properties, and relationships, though they also differ in important ways
- B
Object-oriented design avoids representing data properties or relationships
- C
Database design is unrelated to the organization of data elements
- D
They are identical methods and use the same concepts in every respect
Correct answer
ABoth involve considering data elements, properties, and relationships, though they also differ in important ways
Explanation
Object-oriented analysis and design considers data elements as capsules with properties and interrelationships. These ideas overlap with database design, while significant differences remain.
- A

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