1. Home
  2. Explore
  3. Computer Science
  4. Database Concepts Introduction

Study methods

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

Database Concepts Introduction

  • 28Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Data Storage and Anomalies

What is a primary problem with storing data in a simple two-dimensional list?

28 questions

  1. 1

    What is a primary problem with storing data in a simple two-dimensional list?

    1. A

      It cannot store numeric data.

    2. B

      It requires a database management system to create.

    3. C

      It prevents users from querying the data.

    4. D

      It introduces data redundancy and multiple themes.

    Correct answer
    D

    It introduces data redundancy and multiple themes.

    Explanation

    Storing data in a list leads to redundancy and mixing multiple business concepts (themes) in one table, which can cause data anomalies.

  2. 2

    Which of the following is NOT one of the three types of data anomalies associated with lists?

    1. A

      Update anomaly

    2. B

      Query anomaly

    3. C

      Insertion anomaly

    4. D

      Deletion anomaly

    Correct answer
    B

    Query anomaly

    Explanation

    The three data anomalies are insertion, deletion, and update anomalies. Query anomaly is not a recognized type.

  3. 3

    In the context of list-based data storage, what is an update anomaly?

    1. A

      The need to modify multiple rows to change a single fact.

    2. B

      The inability to add new data without inserting a full row.

    3. C

      The accidental loss of information when deleting a row.

    4. D

      The presence of duplicate rows that cause conflicting values.

    Correct answer
    A

    The need to modify multiple rows to change a single fact.

    Explanation

    An update anomaly occurs when changing a single piece of information (e.g., a project manager's email) requires updating multiple rows because of redundancy.

  4. 4

    What happens in a deletion anomaly when using a list?

    1. A

      Deleting a row causes the loss of unrelated data.

    2. B

      Only one column can be deleted at a time.

    3. C

      Deleting a row leaves null values in other rows.

    4. D

      The database automatically creates a backup.

    Correct answer
    A

    Deleting a row causes the loss of unrelated data.

    Explanation

    A deletion anomaly occurs when deleting a row also removes information about a different business entity (e.g., deleting a student row also loses advisor information).

  5. 5

    Why does storing data in a list cause an insertion anomaly?

    1. A

      Inserting a row always requires a primary key.

    2. B

      Data cannot be inserted into a list with duplicate values.

    3. C

      New rows cannot be added if they contain null values.

    4. D

      Adding a new entity (e.g., a department) requires also providing data for unrelated attributes, leading to empty cells.

    Correct answer
    D

    Adding a new entity (e.g., a department) requires also providing data for unrelated attributes, leading to empty cells.

    Explanation

    An insertion anomaly occurs when adding a new entity (like a department) forces you to include unrelated attributes (like student and advisor) that are missing, resulting in incomplete data.

  6. 6

    What does the acronym CRUD stand for in the context of database interaction?

    1. A

      Create, Read, Update, Delete

    2. B

      Compile, Run, Undo, Debug

    3. C

      Copy, Retrieve, Upload, Drop

    4. D

      Connect, Request, Update, Display

    Correct answer
    A

    Create, Read, Update, Delete

    Explanation

    CRUD stands for Create, Read, Update, and Delete, which are the four basic operations for interacting with data.

  7. 7

    Which of the following is NOT a purpose of a database?

    1. A

      Organizing data into a structured format

    2. B

      Replacing the need for SQL

    3. C

      Providing a repository for storing data

    4. D

      Offering a mechanism for interacting with data

    Correct answer
    B

    Replacing the need for SQL

    Explanation

    A database provides a repository, organizational structure, and interaction mechanisms. SQL is a tool used with databases, not a purpose of a database itself.

  8. 8

    What are the four basic operations for interacting with data in a database?

    1. A

      Create, Read, Update, Delete

    2. B

      Input, Output, Modify, Erase

    3. C

      Add, View, Change, Remove

    4. D

      Insert, Select, Update, Delete

    Correct answer
    A

    Create, Read, Update, Delete

    Explanation

    The four basic operations are Create, Read, Update, and Delete, collectively known as CRUD.

  9. 9

    In a relational database, what do columns represent?

    1. A

      Metadata about the database

    2. B

      Instances of an entity

    3. C

      Relationships between tables

    4. D

      Different attributes of an entity

    Correct answer
    D

    Different attributes of an entity

    Explanation

    In relational databases, columns represent different attributes (properties) of an entity, while rows represent instances of that entity.

  10. 10

    How are records in different tables linked in a relational database?

    1. A

      Using embedded sub-tables within each row

    2. B

      Using pointers that reference memory addresses

    3. C

      Using matched pairs of values, such as a customer ID

    4. D

      Using alphabetical sorting of row contents

    Correct answer
    C

    Using matched pairs of values, such as a customer ID

    Explanation

    Records are linked by matched pairs of values (e.g., a customer ID attribute that appears in both tables) to associate rows across tables.

  11. 11

    What operation is used in a relational database to combine data from multiple tables back into a single list?

    1. A

      Join

    2. B

      Union

    3. C

      Merge

    4. D

      Concatenate

    Correct answer
    A

    Join

    Explanation

    A join operation is used to reassemble data from separate tables into a combined result set by linking related rows.

  12. 12

    Which statement best describes the relational database approach to handling multiple business concepts?

    1. A

      Multiple business concepts are merged into a single table using special delimiters.

    2. B

      All business concepts are stored in one large table to simplify queries.

    3. C

      Each business concept is stored in its own separate table, with relationships established between them.

    4. D

      Business concepts are stored as separate files linked by file names.

    Correct answer
    C

    Each business concept is stored in its own separate table, with relationships established between them.

    Explanation

    In a relational database, each business concept (e.g., employee, department) is stored in its own table, and relationships between tables are created to model real-world associations.

  13. 13

    What does each row in a relational database table represent?

    1. A

      A single attribute of an entity

    2. B

      A database constraint

    3. C

      A relationship between two entities

    4. D

      An instance of an entity

    Correct answer
    D

    An instance of an entity

    Explanation

    Each row in a table represents an instance of the entity (e.g., one specific employee), while columns represent attributes of that entity.

  14. 14

    Which of the following is a component of a database system?

    1. A

      Web server

    2. B

      Compiler

    3. C

      Spreadsheet

    4. D

      DBMS

    Correct answer
    D

    DBMS

    Explanation

    The four components of a database system are users, database applications, the DBMS, and the database itself.

  15. 15

    What role does the DBMS play in a database system?

    1. A

      It serves as a gatekeeper between applications and the database.

    2. B

      It replaces the need for application software.

    3. C

      It generates user interfaces automatically.

    4. D

      It directly stores all data in a single file.

    Correct answer
    A

    It serves as a gatekeeper between applications and the database.

    Explanation

    The DBMS acts as an intermediary (gatekeeper) that controls access to the database, ensuring data integrity and security.

  16. 16

    In a database system, which component interacts directly with the DBMS?

    1. A

      The operating system

    2. B

      Database applications

    3. C

      End users

    4. D

      Database administrators only

    Correct answer
    B

    Database applications

    Explanation

    Database applications (such as websites or mobile apps) interact with the DBMS to access the database; end users interact with the applications, not directly with the DBMS.

  17. 17

    What is metadata in the context of a database?

    1. A

      Duplicate data used for backup

    2. B

      Data that describes other data, such as the structure of tables

    3. C

      Temporary data used during queries

    4. D

      The actual data stored in the tables

    Correct answer
    B

    Data that describes other data, such as the structure of tables

    Explanation

    Metadata are data about the data, describing the structure (e.g., column names, data types) and other properties of the database.

  18. 18

    Which of the following is NOT a function of a database management system?

    1. A

      Directly generating graphical user interfaces for end users

    2. B

      Enforcing referential integrity constraints

    3. C

      Providing backup and recovery mechanisms

    4. D

      Creating and administering databases

    Correct answer
    A

    Directly generating graphical user interfaces for end users

    Explanation

    While a DBMS can provide tools for building applications, it does not directly generate user interfaces; that is typically done by database applications.

  19. 19

    What is the purpose of a referential integrity constraint?

    1. A

      To ensure that every table has a primary key

    2. B

      To prevent users from deleting any data

    3. C

      To ensure that values in one table have matching values in another table

    4. D

      To automatically index all columns

    Correct answer
    C

    To ensure that values in one table have matching values in another table

    Explanation

    Referential integrity ensures that foreign key values in one table match primary key values in another table, maintaining consistency across related tables.

  20. 20

    Which of the following is a type of constraint that a DBMS can enforce?

    1. A

      Referential integrity constraint

    2. B

      Selectivity constraint

    3. C

      User interface constraint

    4. D

      Query optimization constraint

    Correct answer
    A

    Referential integrity constraint

    Explanation

    A DBMS can enforce many constraints, including referential integrity, which ensures data consistency between related tables.

  21. 21

    What is an example of overhead data maintained by a DBMS?

    1. A

      The actual business data in the tables

    2. B

      The SQL queries executed by users

    3. C

      User preferences stored in application tables

    4. D

      Indexes used to improve query performance

    Correct answer
    D

    Indexes used to improve query performance

    Explanation

    Indexes are overhead data structures that the DBMS maintains to speed up data retrieval; they are not part of the business data.

  22. 22

    Which of the following is a characteristic of a personal database system?

    1. A

      Supports multiple databases simultaneously

    2. B

      Typically used by a single user at a time

    3. C

      Designed to support thousands of simultaneous users

    4. D

      Can be geographically distributed across multiple servers

    Correct answer
    B

    Typically used by a single user at a time

    Explanation

    Personal database systems (e.g., Microsoft Access) are small, simple, and intended for single-user use, unlike enterprise-level systems.

  23. 23

    Which of the following is an enterprise-level database management system?

    1. A

      FileMaker Pro

    2. B

      Microsoft Excel

    3. C

      SQL Server

    4. D

      Microsoft Access

    Correct answer
    C

    SQL Server

    Explanation

    SQL Server is an enterprise-level DBMS designed for large-scale, multi-user environments. Access is a personal DBMS.

  24. 24

    What is a key difference between personal and enterprise-level database systems?

    1. A

      Enterprise systems can be spread across multiple physical servers.

    2. B

      Personal systems support more users than enterprise systems.

    3. C

      Enterprise systems are typically used by a single user.

    4. D

      Personal systems offer more advanced security features.

    Correct answer
    A

    Enterprise systems can be spread across multiple physical servers.

    Explanation

    Enterprise-level databases are often distributed across multiple servers to handle large workloads and many concurrent users, while personal databases are typically on a single machine.

  25. 25

    What does SQL stand for?

    1. A

      Sequential Query Language

    2. B

      Simple Query Language

    3. C

      Structured Query Language

    4. D

      Standard Query Language

    Correct answer
    C

    Structured Query Language

    Explanation

    SQL stands for Structured Query Language, the primary language used to interact with relational databases.

  26. 26

    Which SQL statement is used to retrieve data from a database?

    1. A

      RETRIEVE

    2. B

      FETCH

    3. C

      GET

    4. D

      SELECT

    Correct answer
    D

    SELECT

    Explanation

    The SELECT statement is used in SQL to query and retrieve data from the database.

  27. 27

    In the SQL SELECT statement example from the lecture, how are tables linked together?

    1. A

      Using a special JOIN keyword that automatically detects relationships

    2. B

      Using matched pairs of values such as customer number and course number

    3. C

      Using alphabetical order of table names

    4. D

      Using the ORDER BY clause

    Correct answer
    B

    Using matched pairs of values such as customer number and course number

    Explanation

    The example linked the customer table to the enrollment table using customer numbers, and the course table to the enrollment table using course numbers—matched pairs of values.

  28. 28

    Why is learning SQL valuable according to the lecture?

    1. A

      It is the only language that can create databases.

    2. B

      It simplifies the process of designing user interfaces.

    3. C

      It provides a consistent way to work with virtually any modern database.

    4. D

      It allows you to bypass the DBMS and access data directly.

    Correct answer
    C

    It provides a consistent way to work with virtually any modern database.

    Explanation

    SQL is supported by most relational databases (SQL Server, Oracle, MySQL, etc.), so learning it enables you to work with many different database systems with a short learning curve.

Question 1 of 28
Question 1 of 28

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent