1. Home
  2. Explore
  3. Computer Science
  4. Database Management Systems Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Database Management Systems Overview

  • 44Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Database Uses

What does a database management system provide for an enterprise?

44 questions

  1. 1

    What does a database management system provide for an enterprise?

    1. A

      Programs for communication, but no organized data or processing environment

    2. B

      A file hierarchy that stores documents without supporting data processing

    3. C

      A collection of unrelated files, manual processing, and a fixed storage location

    4. D

      Related data, programs to process it, and a convenient, efficient environment

    Correct answer
    D

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

  2. 2

    In the context of database systems, what can count as an enterprise?

    1. A

      Only a large commercial corporation with many employees

    2. B

      Only a government agency or a financial institution

    3. C

      Any entity that needs to collect and manage interrelated data

    4. D

      Any computer system that contains a single electronic document

    Correct answer
    C

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

  3. 3

    Why are online banking and payment services examples of database applications?

    1. A

      They replace all financial records with unstructured text messages

    2. B

      They work only by storing copies of transactions in individual users’ folders

    3. C

      They use computers to display financial news without retaining user information

    4. D

      They store and process information needed to carry out financial transactions

    Correct answer
    D

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

  4. 4

    Why do railway and airline reservation services rely on databases?

    1. A

      They need to manage reservation information and coordinate access to limited seats or berths

    2. B

      They use databases primarily to store timetables as unchanging text documents

    3. C

      They need to avoid recording which travelers have reserved particular seats

    4. D

      They can assign seats only if each traveler maintains a separate local file

    Correct answer
    A

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

  5. 5

    Which combination of tasks is described as part of a university database application?

    1. A

      Manufacturing devices, monitoring factory machines, and controlling power grids

    2. B

      Editing personal documents, compressing images, and managing desktop folders

    3. C

      Registering students, assigning grades, and generating class rosters

    4. D

      Designing processors, compiling operating systems, and routing internet traffic

    Correct answer
    C

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

  6. 6

    Why are e-commerce retailers database applications?

    1. A

      They store each customer’s information exclusively on that customer’s device

    2. B

      They avoid storing information about products, customers, or transactions

    3. C

      They use databases only to publish static advertisements

    4. D

      They manage large amounts of information associated with online sales and retail operations

    Correct answer
    D

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

  7. 7

    Why are email and social media services also considered database applications?

    1. A

      They rely exclusively on a user’s local files rather than organized stored data

    2. B

      They retain information such as messages, contacts, and send-and-receive details

    3. C

      They store only the names of users and do not retain communication information

    4. D

      They work by processing every message without keeping any records

    Correct answer
    B

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

  8. 8

    Which set of skills does the content identify as having broad industry demand?

    1. A

      Database programming, database design, and database administration

    2. B

      Manual record keeping, hardware repair, and office administration

    3. C

      Spreadsheet formatting, document editing, and desktop customization

    4. D

      Computer assembly, graphics design, and network cabling

    Correct answer
    A

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

  9. 9

    What is a flat file, as described in the content?

    1. A

      A tree structure that stores records in sorted order

    2. B

      Data stored in a file rather than managed as a database system

    3. C

      A program that processes transactions across multiple accounts

    4. D

      A collection of tables linked by enforced database relationships

    Correct answer
    B

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

  10. 10

    How does a CSV file commonly represent data?

    1. A

      It separates field values with commas in a file

    2. B

      It encrypts each field and stores it in a separate database

    3. C

      It represents relationships using only binary logic operations

    4. D

      It stores each value as a node in a balanced search tree

    Correct answer
    A

    It separates field values with commas in a file

    Explanation

    CSV stands for comma-separated values: values for different fields are commonly separated by commas.

  11. 11

    How can storing the same data in multiple files create redundancy and inconsistency?

    1. A

      Duplicated information uses extra space, and updates may be made to only some copies

    2. B

      Each copy is guaranteed to receive every update, but files become slower to open

    3. C

      The copies combine into a single record and remove the need for consistency checks

    4. D

      The data is automatically compressed, but the original values become inaccessible

    Correct answer
    A

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

  12. 12

    What is the difficulty with accessing data stored only in simple files?

    1. A

      Every file automatically enforces complex rules on the data it contains

    2. B

      The data cannot be opened as text or viewed in a spreadsheet

    3. C

      The data must be accessed only through a database query language

    4. D

      Automated access and processing may be difficult compared with using an organized database

    Correct answer
    D

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

  13. 13

    What does data isolation mean as a problem in file-based data management?

    1. A

      Data is duplicated within one file but automatically synchronized across systems

    2. B

      Data is protected from access by being organized into database tables

    3. C

      Data is spread across files and formats that are difficult to integrate consistently

    4. D

      Data is stored in one place and is therefore inaccessible to all users

    Correct answer
    C

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

  14. 14

    What is a data integrity constraint in the bank-account example?

    1. A

      A rule that account holders may never make electronic transactions

    2. B

      A rule that every account must be stored in a separate file

    3. C

      A rule that a bank must allow every requested debit to proceed

    4. D

      A rule that an account balance must not fall below a required minimum

    Correct answer
    D

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

  15. 15

    Why can integrity constraints be difficult to maintain with simple files?

    1. A

      The rules may be buried in program code and difficult to apply consistently

    2. B

      The rules require every file to be converted into a social media account

    3. C

      The rules prevent users from reading or updating any file-based data

    4. D

      The rules are automatically enforced by the file format but cannot be changed

    Correct answer
    A

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

  16. 16

    What is the main security concern identified for data management systems?

    1. A

      The data may be too easy to sort using a spreadsheet

    2. B

      A file hierarchy may contain more folders than users can remember

    3. C

      Threats such as spyware and identity theft can expose or misuse information

    4. D

      Users may be unable to format a CSV file with consistent commas

    Correct answer
    C

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

  17. 17

    What is the defining requirement of atomicity for an operation that maintains consistency?

    1. A

      The operation is performed only when no other user is logged in

    2. B

      Each part of the operation happens independently when convenient

    3. C

      The operation can be interrupted after any step without affecting consistency

    4. D

      The entire operation happens, or none of it does

    Correct answer
    D

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

  18. 18

    In a bank transfer, which actions together form the transaction described in the content?

    1. A

      Checking the recipient’s address and changing the sender’s password

    2. B

      Opening two account files and copying their contents to a spreadsheet

    3. C

      Debiting the sender’s account and crediting the recipient’s account

    4. D

      Recording the sender’s name and printing a balance statement

    Correct answer
    C

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

  19. 19

    What could happen if a banking system fails after debiting a payer but before crediting the recipient?

    1. A

      The recipient would be credited twice while the payer’s balance stayed unchanged

    2. B

      Both accounts would automatically be restored without any transaction handling

    3. C

      The payer would receive the money while the recipient’s balance stayed unchanged

    4. D

      The money could be debited from the payer without being credited to the recipient

    Correct answer
    D

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

  20. 20

    How should a system handle a multi-step transfer to preserve atomicity?

    1. A

      Treat the debit and credit as one unit that either completes fully or does not occur

    2. B

      Commit the debit immediately and attempt the credit later as an unrelated action

    3. C

      Perform the credit only if the system has no other active users

    4. D

      Allow each step to finish independently and rely on users to notice mismatches

    Correct answer
    A

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

  21. 21

    Why does reserving the last available train berth illustrate a concurrency problem?

    1. A

      A reservation system must duplicate every berth in separate files for each user

    2. B

      Two users may request the same limited berth at nearly the same time, but only one can receive it

    3. C

      Two users may view different schedules, so the train cannot leave on time

    4. D

      A berth can be reserved only when no other user is using the reservation system

    Correct answer
    B

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

  22. 22

    Which statement best captures the concurrency challenge described in the content?

    1. A

      Many users may access a system only if each receives a separate copy of all its data

    2. B

      Many users may access the same system at once, so shared actions must be managed fairly and correctly

    3. C

      A system avoids concurrency issues by preventing users from making simultaneous requests

    4. D

      Concurrent access is possible only when users are in the same part of an organization

    Correct answer
    B

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

  23. 23

    What does membership in a set indicate?

    1. A

      That two sets have no elements in common

    2. B

      That one set contains every possible set as an element

    3. C

      That a relation between two elements is necessarily a function

    4. D

      That an element belongs to the collection represented by the set

    Correct answer
    D

    That an element belongs to the collection represented by the set

    Explanation

    Membership describes whether a particular element belongs to a set.

  24. 24

    What does it mean for one set to be a subset of another?

    1. A

      The first set contains every element that could possibly exist

    2. B

      Every element of the first set is also an element of the second set

    3. C

      The first set contains only ordered pairs from the second set

    4. D

      The two sets contain exactly one common element

    Correct answer
    B

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

  25. 25

    What is the power set of a set?

    1. A

      The set of elements that are outside the original set

    2. B

      The set of all ordered pairs formed from the original set

    3. C

      The set of elements that belong to every universal set

    4. D

      The set of all subsets of the original set

    Correct answer
    D

    The set of all subsets of the original set

    Explanation

    The power set collects all subsets of a given set.

  26. 26

    What is the universal set in a particular discussion of sets?

    1. A

      The set containing only elements that appear in every subset

    2. B

      The set of all subsets that contain exactly one element

    3. C

      The set formed only by intersecting two smaller sets

    4. D

      The set that contains the full collection of elements being considered

    Correct answer
    D

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

  27. 27

    Which operation produces the elements that are in either of two sets, or in both?

    1. A

      Complement

    2. B

      Set difference

    3. C

      Union

    4. D

      Intersection

    Correct answer
    C

    Union

    Explanation

    The union of two sets contains elements that belong to at least one of the sets.

  28. 28

    Which operation produces only the elements shared by two sets?

    1. A

      Complement

    2. B

      Cartesian product

    3. C

      Intersection

    4. D

      Union

    Correct answer
    C

    Intersection

    Explanation

    The intersection of two sets contains the elements that belong to both sets.

  29. 29

    Which operation identifies elements in one set that are not in another?

    1. A

      Union

    2. B

      Intersection

    3. C

      Set difference

    4. D

      Cartesian product

    Correct answer
    C

    Set difference

    Explanation

    Set difference selects elements belonging to one set while excluding those belonging to the other.

  30. 30

    What kind of elements does the Cartesian product of two sets contain?

    1. A

      Only elements shared by both sets, without any ordering

    2. B

      Elements of the first set that do not belong to the second

    3. C

      Ordered pairs whose first and second components come from the respective sets

    4. D

      All subsets of either set, including the empty set

    Correct answer
    C

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

  31. 31

    What do De Morgan’s laws relate in set theory?

    1. A

      The power set of a set to its Cartesian product

    2. B

      Ordered pairs to the truth values of logical implications

    3. C

      Complements of unions and intersections to unions and intersections of complements

    4. D

      Set membership to the domain and range of a function

    Correct answer
    C

    Complements of unions and intersections to unions and intersections of complements

    Explanation

    De Morgan’s laws express how complementation interacts with union and intersection.

  32. 32

    What is a binary relation built from?

    1. A

      Only individual elements with no pairing

    2. B

      A collection of subsets that must all have equal size

    3. C

      Ordered pairs connecting elements of sets

    4. D

      A list of truth values without reference to sets

    Correct answer
    C

    Ordered pairs connecting elements of sets

    Explanation

    A binary relation is represented using ordered pairs drawn from sets.

  33. 33

    What is a function in relation to a set-based relation?

    1. A

      A relation in which every input must have several different outputs

    2. B

      A relation that assigns each input in its domain exactly one output

    3. C

      A set that contains every possible ordered pair from the universal set

    4. D

      A relation that connects elements without specifying any inputs or outputs

    Correct answer
    B

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

  34. 34

    What is the purpose of a truth table in propositional logic?

    1. A

      To compare the storage cost of files and database tables

    2. B

      To show the truth values of a proposition or compound statement for possible inputs

    3. C

      To list every element of a set and all of its subsets

    4. D

      To record the domain and range of a function as ordered pairs

    Correct answer
    B

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

  35. 35

    Which set lists only operations on propositions explicitly covered in the content?

    1. A

      Conjunction, disjunction, negation, implication, and equivalence

    2. B

      Union, intersection, complementation, set difference, and product

    3. C

      Domain, range, image, preimage, and inversion

    4. D

      Search, sorting, hashing, traversal, and balancing

    Correct answer
    A

    Conjunction, disjunction, negation, implication, and equivalence

    Explanation

    The content identifies conjunction, disjunction, negation, implication, and equivalence as propositional logic operations.

  36. 36

    What is the difference between propositional logic and predicate logic as described?

    1. A

      Predicate logic adds quantification over elements or collections

    2. B

      Propositional logic is used for functions while predicate logic is used for files

    3. C

      Predicate logic removes truth values and truth tables from reasoning

    4. D

      Propositional logic uses ordered pairs while predicate logic uses only sets

    Correct answer
    A

    Predicate logic adds quantification over elements or collections

    Explanation

    Predicate logic extends beyond propositional logic by expressing properties about elements or collections using quantifiers.

  37. 37

    What does the universal quantifier express?

    1. A

      A property holds for at least one element in the relevant collection

    2. B

      A property holds for every element in the relevant collection

    3. C

      A property holds for exactly one element in the relevant collection

    4. D

      A property holds only for elements outside the relevant collection

    Correct answer
    B

    A property holds for every element in the relevant collection

    Explanation

    Universal quantification expresses that a statement applies to every element in a collection.

  38. 38

    What does the existential quantifier express?

    1. A

      There is at least one element for which the stated property holds

    2. B

      The stated property holds only for the first element in the collection

    3. C

      The stated property holds for no elements in the collection

    4. D

      The stated property holds for every element in the collection

    Correct answer
    A

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

  39. 39

    Why are data structures relevant to studying database systems?

    1. A

      Database systems use many data-structure concepts, including structures for organizing and searching data

    2. B

      Data structures are used only to format database results after all processing is complete

    3. C

      Database systems are identical to small data structures and require no additional concepts

    4. D

      Database systems replace the need to understand arrays, lists, trees, or hashing

    Correct answer
    A

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

  40. 40

    Which group contains data structures highlighted as particularly relevant to the course?

    1. A

      Matrices, linked lists, recursion stacks, and syntax trees only

    2. B

      Splay trees, suffix trees, Fibonacci heaps, and skip lists only

    3. C

      Stacks, queues, heaps, graphs, and tries only

    4. D

      Search trees, balanced trees, B-trees, hashing, and hash maps

    Correct answer
    D

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

  41. 41

    What level of Python ability is encouraged for the course?

    1. A

      Proficiency in reading and writing Python, beyond mere familiarity

    2. B

      No Python knowledge, because the course uses only C and C++

    3. C

      Experience with Python libraries but no understanding of basic programming

    4. D

      Only the ability to recognize Python keywords without writing code

    Correct answer
    A

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

  42. 42

    How does the content address Python database connectivity and additional Python features?

    1. A

      Additional libraries and features, such as database connectivity, will be covered in the course

    2. B

      The course teaches only spreadsheet use and does not involve Python libraries

    3. C

      Python connectivity is excluded because all database applications use C

    4. D

      All database connectivity must be mastered before beginning the course

    Correct answer
    A

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

  43. 43

    What role does knowledge of C play in the course, according to the content?

    1. A

      It is unnecessary because sorting and searching are not used in database work

    2. B

      It is essential because all database programming in the course is performed in C

    3. C

      It is desirable rather than essential and can help with algorithmic issues such as sorting and searching

    4. D

      It replaces the need for Python in application programming

    Correct answer
    C

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

  44. 44

    How can object-oriented analysis and design relate to database system design?

    1. A

      Both involve considering data elements, properties, and relationships, though they also differ in important ways

    2. B

      Object-oriented design avoids representing data properties or relationships

    3. C

      Database design is unrelated to the organization of data elements

    4. D

      They are identical methods and use the same concepts in every respect

    Correct answer
    A

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

Question 1 of 44
Question 1 of 44

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent