INTRODUCTION TO DATABASES CT042-3-1-IDB (Version1)
INTRODUCTION TO DATABASES CT042-3-1-IDB (Version1)
What is data?
● A. Processed information
● B. Raw facts
● C. Metadata
● D. Information used for decision making
What is information?
● A. Raw facts
● B. Unprocessed data
● C. Data processed to reveal meaning
● D. Metadata
What is a database?
What is a DBMS?
● A. Raw data
● B. Data processed to reveal meaning
● C. A collection of programs that manage database structure
● D. Metadata
● A. Desktop
● B. Workgroup
● C. Enterprise
● D. Distributed
● A. Desktop
● B. Single-user
● C. Multi-user
● D. Centralized
Which type of database supports a small group of users or a single department?
● A. Enterprise
● B. Desktop
● C. Workgroup
● D. Distributed
● A. Centralized
● B. Distributed
● C. Workgroup
● D. Enterprise
● A. Centralized
● B. Distributed
● C. Workgroup
● D. Enterprise
● A. Data warehouse
● B. Transactional (or production)
● C. Centralized
● D. Distributed
Which type of database stores data used to generate information for tactical or strategic
decisions?
What is metadata?
● A. Raw facts
● B. Data about data
● C. Processed information
● D. Data used for decision making
Which of the following is NOT a function of a DBMS?
● A. Raw data
● B. Metadata
● C. Accurate, relevant, and timely information
● D. Integrated database structure
● A. Centralized
● B. Distributed
● C. Workgroup
● D. Desktop
Which of the following is a multi-user database that supports a large group of users or an
entire organization?
● A. Desktop
● B. Workgroup
● C. Enterprise
● D. Centralized
● A. To store data
● B. To reveal data meaning
● C. To create raw facts
● D. To generate metadata
================================================================
CHAPTER 2
● A. Data anomaly
● B. Data redundancy
● C. Data inconsistency
● D. Data normalization
Which component of a database environment is responsible for defining data elements and
their relationships?
● A. Application programs
● B. Data dictionary management
● C. Security management
● D. Data presentation
Which type of data anomaly occurs when changes must be made to existing records?
● A. Insertion anomaly
● B. Update anomaly
● C. Deletion anomaly
● D. Retrieval anomaly
● A. Database administrators
● B. Individual users or departments
● C. System administrators
● D. Application developers
Which DBMS function ensures that multiple users can access the database concurrently
without compromising its integrity?
What is one key reason why database design is critical for organizations?
Which DBMS function is responsible for translating logical requests into commands to
retrieve data?
What problem arises from having different and conflicting versions of the same data?
● A. Data redundancy
● B. Data inconsistency
● C. Data normalization
● D. Data integrity
Which historical root of file systems involved organizing data in file folders based on its
expected use?
Which type of data anomaly occurs when entering new records into a database?
● A. Deletion anomaly
● B. Update anomaly
● C. Insertion anomaly
● D. Retrieval anomaly
Which component of a database environment includes the physical devices used to store
data?
● A. Software
● B. Hardware
● C. People
● D. Procedures
What does the term 'data anomaly' refer to in the context of database management?
● A. Redundant data entries
● B. Inconsistent data updates
● C. Data security breaches
● D. Errors in data retrieval
Which function of a DBMS is responsible for providing backup and data recovery
procedures?
Which type of database environment component involves end users, system administrators,
and database designers?
● A. Hardware
● B. Software
● C. People
● D. Procedures
Which DBMS function enforces user security and data privacy within a database?
● A. Data redundancy
● B. Complex system administration
● C. High-level time-consuming activity
● D. Difficulty in changing file structures
What type of database environment component includes operating system software and
DBMS software?
● A. Hardware
● B. Software
● C. Procedures
● D. Data
What does the term 'multiuser access control' in DBMS refer to?
Which historical root of file systems resulted in 'home-grown' systems being created due to
technical complexity?
What is the main advantage of using a database system compared to a file system?
Which data anomaly is most likely to occur when records are deleted from a database?
● A. Update anomaly
● B. Deletion anomaly
● C. Insertion anomaly
● D. Retrieval anomaly
================================================================
CHAPTER 3
● A. Relational Model
● B. Network Model
● C. Hierarchical Model
● D. Entity Relationship Model
● A. A characteristic of data
● B. A relationship between tables
● C. Anything about which data is collected and stored
● D. A constraint on data
Which type of relationship describes an association where a single entity instance in one
entity class is related to multiple entity instances in another entity class?
● A. One-to-one (1:1)
● B. One-to-many (1
)
● C. Many-to-many (M
)
● D. Many-to-one (M:1)
What role do attributes play in a data model?
● A. Relational Model
● B. Network Model
● C. Hierarchical Model
● D. Entity Relationship Model
What is the primary advantage of the relational model over hierarchical and network
models?
● A. Entity
● B. Attribute
● C. Relationship
● D. Constraint
What is the significance of the relational diagram in database design?
● A. System logs
● B. Database schemas
● C. Company managers and policy makers
● D. Automated discovery tools
What aspect of the relational model contributed to its revolutionary impact on database
design?
What is a key feature of the Entity Relationship Model (ERM) introduced by Chen?
What does the term "entity set" refer to in the context of an ERD?
What characteristic of business rules makes them essential for database design?
Which data model is described as having evolved from the limitations of hierarchical and
network models?
● A. One-to-many (1)
● B. Many-to-one (M:1)
● C. One-to-one (1:1)
● D. Many-to-many (M)
What does the relational model use to represent the relationships between tables?
● A. Indexes
● B. Keys
● C. Files
● D. Network links
Which of the following best describes the evolution of data models in database design?
● A. Flat File > Hierarchical > Network > Relational > Entity Relationship
● B. Hierarchical > Flat File > Network > Relational > Entity Relationship
● C. Flat File > Network > Hierarchical > Relational > Entity Relationship
● D. Hierarchical > Network > Relational > Entity Relationship
================================================================
CHAPTER 4
What is the primary advantage of the relational model over its hierarchical and network
predecessors?
● A. Data integrity
● B. Structural and data independence
● C. Increased data redundancy
● D. Enhanced security
● A. Primary key
● B. Foreign key
● C. Candidate key
● D. Secondary key
Which type of key can contain null values but should be avoided to prevent issues?
● A. Primary key
● B. Foreign key
● C. Candidate key
● D. Secondary key
● A. To store metadata
● B. To uniquely identify each row in the table
● C. To link to external databases
● D. To provide a default value
Which integrity rule ensures that a foreign key must match a primary key value in another
table?
● A. Entity integrity
● B. Domain integrity
● C. Referential integrity
● D. User integrity
Which component of a relational model is a persistent relation that can be saved for future
use?
● A. Attribute
● B. Constraint
● C. Table
● D. Relationship
Which key should be unique, not contain null values, and should not change?
● A. Foreign key
● B. Primary key
● C. Candidate key
● D. Secondary key
Which integrity rule states that all primary key values must be unique and not null?
● A. Referential integrity
● B. Entity integrity
● C. Domain integrity
● D. Data integrity
What is the relationship between a primary key and a foreign key in a relational database?
Why is the relational model easier to understand compared to its hierarchical and network
predecessors?
================================================================
CHAPTER 5
● A. One-to-One (1:1)
● B. One-to-Many (1)
● C. Many-to-Many (M)
● D. None of the above
How is a Many-to-Many (M) relationship typically resolved in a relational database?
● A. They often indicate that entity components were not defined properly
● B. They increase data redundancy
● C. They simplify database design
● D. They are more complex to implement
Which relationship type requires the use of a foreign key to maintain referential integrity?
● A. One-to-One (1:1)
● B. One-to-Many (1)
● C. Many-to-Many (M)
● D. None of the above
● A. One-to-One (1:1)
● B. One-to-Many (1)
● C. Many-to-Many (M)
● D. One-to-Subset (1)
● A. As 1:1 relationships
● B. As two 1:N relationships with a bridge table
● C. As hierarchical relationships
● D. As entity-attribute relationships
● A. Each entity in one table can relate to only one entity in another table
● B. Each entity in one table can relate to multiple entities in another table
● C. Each entity in one table can relate to multiple entities in the same table
● D. Each entity in one table cannot relate to any entity in another table
What is a bridge table in the context of relational databases?
● A. Data redundancy
● B. Inaccurate entity definitions
● C. Complicated query execution
● D. Increased data integrity
In the context of relational databases, what does the term "data anomaly" refer to?
Which type of key is crucial for maintaining relationships between tables in a relational
database?
● A. Primary key
● B. Foreign key
● C. Candidate key
● D. Secondary key
Which relational model component helps control data redundancy by sharing common
attributes?
● A. Entity integrity
● B. Foreign keys
● C. Composite keys
● D. Primary keys
● A. One-to-One (1:1)
● B. One-to-Many (1)
● C. Many-to-Many (M)
● D. One-to-Subset (1)
● A. Composite key
● B. Foreign key
● C. Primary key
● D. Secondary key
How does a relational database handle 1:1 relationships to improve design efficiency?
What is the main benefit of resolving M relationships into 1 relationships using a composite
entity?
=====================================================================
CHAPTER 6
● A. By rectangles
● B. By ovals connected to entity rectangles with a line
● C. By diamonds
● D. By squares
● A. Composite attribute
● B. Derived attribute
● C. Simple attribute
● D. Multivalued attribute
● A. Single-valued attribute
● B. Multivalued attribute
● C. Composite attribute
● D. Derived attribute
● A. By rectangles
● B. By ovals
● C. By diamonds
● D. By lines
What characteristic of a derived attribute makes it different from other attribute types?
● A. Simple attribute
● B. Multivalued attribute
● C. Derived attribute
● D. Composite attribute
● A. An attribute that can have only one value for a given entity instance
● B. An attribute that can have multiple values for a given entity instance
● C. An attribute that is derived from another attribute
● D. An attribute that is used as a foreign key
Which ER model component is crucial for depicting how entities interact with each other?
● A. Attributes
● B. Relationships
● C. Domains
● D. Composite keys
● A. An entity
● B. An attribute
● C. A relationship
● D. A primary key
What is the significance of the entity relationship diagram (ERD) in database design?
● A. Employee
● B. Department
● C. Dependent
● D. Product
Which type of relationship is more difficult to establish if only one side of the relationship is
known?
● A. One-to-One (1:1)
● B. One-to-Many (1)
● C. Many-to-Many (M)
● D. Derived relationship
What characteristic of a weak entity’s primary key distinguishes it from other entities?
=====================================================================
CHAPTER 7
● A. Crow’s Foot
● B. Chen’s model
● C. UML
● D. Barker’s notation
● A. Unary
● B. Binary
● C. Ternary
● D. Quaternary
● A. Unary
● B. Binary
● C. Ternary
● D. Quaternary
What type of relationship is depicted if a PROFESSOR can teach multiple CLASSES, but
each CLASS is taught by only one PROFESSOR?
● A. One-to-One
● B. One-to-Many
● C. Many-to-Many
● D. Many-to-One
In an ER diagram, what does a crow’s foot at the end of a relationship line indicate?
● A. A One-to-One relationship
● B. A Many-to-Many relationship
● C. A One-to-Many relationship
● D. A Ternary relationship
● A. By a solid line
● B. By a dashed line
● C. By a double line
● D. By a dotted line
● A. Crow’s Foot
● B. Chen’s model
● C. UML
● D. Barker’s notation
● A. By a solid line
● B. By a dashed line
● C. By a double line
● D. By a dotted line
● A. Unary
● B. Binary
● C. Ternary
● D. Quaternary
● A. Unary
● B. Binary
● C. Ternary
● D. Quaternary
● A. Unary
● B. Binary
● C. Ternary
● D. Quaternary
===================================================
CHAPTER 8
● A. UNF
● B. 1NF
● C. 2NF
● D. 3NF
In which normal form are all non-key attributes fully functionally dependent on the
primary key?
● A. UNF
● B. 1NF
● C. 2NF
● D. 3NF
● A. UNF
● B. 1NF
● C. 2NF
● D. 3NF
● A. UNF
● B. 1NF
● C. 2NF
● D. 3NF
What is the first step in converting a table to First Normal Form (1NF)?
Which of the following is NOT a characteristic of a table in First Normal Form (1NF)?
What is the second step in converting a table to Second Normal Form (2NF)?
Which of the following statements is true about a table in Second Normal Form (2NF)?
What is the first step in converting a table to Third Normal Form (3NF)?
● A. A foreign key
● B. A composite key
● C. Any attribute whose value determines other values within a row
● D. An attribute that depends on another attribute
Which normal form is most commonly sufficient for business database design purposes?
● A. 1NF
● B. 2NF
● C. 3NF
● D. BCNF
Why might the highest level of normalization not always be the most desirable?
Which step in the normalization process involves presenting data in tabular format without
repeating groups?
● A. Conversion to 1NF
● B. Conversion to 2NF
● C. Conversion to 3NF
● D. Conversion to BCNF
Which of the following best describes the Third Normal Form (3NF)?
Which normal form is typically used to ensure that no attribute is dependent on only a
portion of the primary key?
● A. 1NF
● B. 2NF
● C. 3NF
● D. BCNF
What is the purpose of identifying each new determinant in the conversion to 3NF?
===============================================================
CHAPTER 9
● A. INSERT
● B. UPDATE
● C. CREATE
● D. SELECT
Which command would you use to modify existing data in a SQL table?
● A. DELETE
● B. INSERT
● C. UPDATE
● D. CREATE
● A. ROLLBACK
● B. COMMIT
● C. SAVE
● D. APPLY
Which SQL command is used to restore a database to its previous state if changes were not
yet committed?
● A. RESTORE
● B. ROLLBACK
● C. UNDO
● D. REVERT
How do you select all columns from a table named 'Employees' in SQL?
Which operator would you use to check if a value is within a specific range in SQL?
● A. LIKE
● B. BETWEEN
● C. IN
● D. EXISTS
● A. MODIFY TABLE
● B. UPDATE TABLE
● C. ALTER TABLE
● D. CHANGE TABLE
How do you ensure that a column in a SQL table cannot have null values?
● A. DELETE TABLE
● B. REMOVE TABLE
● C. DROP TABLE
● D. ERASE TABLE
Which command would you use to change the name of an existing table in SQL?
How do you select rows from a table that satisfy multiple conditions in SQL?
How do you retrieve all rows from a table named 'Orders' where the order amount is
greater than 1000?
● A. IF
● B. AND
● C. WHEN
● D. CASE
Which SQL command is used to update the structure of an existing table by adding a new
column?
How do you delete all rows from a table named 'Customers' without removing the table
itself?
● A. DELETE FROM Customers;
● B. DROP TABLE Customers;
● C. REMOVE FROM Customers;
● D. ERASE TABLE Customers;
Which SQL keyword is used to sort the result-set in ascending or descending order?
● A. SORT BY
● B. ORDER
● C. ORDER BY
● D. SORT
=====================================================================
CHAPTER 10
Which SQL command would you use to change the data type of an existing column?
● A. MODIFY TABLE
● B. ALTER COLUMN
● C. CHANGE TYPE
● D. ALTER TABLE
What does the ADD keyword in the ALTER TABLE command do?
In SQL, what does the DROP command do when used with the ALTER TABLE statement?
● A. ORDER BY
● B. GROUP BY
● C. HAVING
● D. WHERE
Which SQL function is used to calculate the average value of a numeric column?
● A. AVG()
● B. COUNT()
● C. SUM()
● D. MIN()
How do you ensure that a SQL query only returns unique results?
Which SQL command is used to permanently remove a table from the database?
● A. DELETE TABLE
● B. REMOVE TABLE
● C. DROP TABLE
● D. ERASE TABLE
● A. SORT BY
● B. ORDER BY
● C. GROUP BY
● D. HAVING
Which clause in SQL is used to filter the result set to include only rows where a specified
condition is true?
● A. WHERE
● B. HAVING
● C. GROUP BY
● D. ORDER BY
Which command would you use to remove a column from an existing table in SQL?
● A. MIN()
● B. MAX()
● C. LEAST()
● D. LOWEST()
● A. Returns all rows from the left table and the matched rows from the right table
● B. Returns all rows from the right table and the matched rows from the left table
● C. Returns only the matching rows from both tables
● D. Returns all rows from both tables, even if there are no matches
● A. ALIAS
● B. AS
● C. RENAME
● D. NAME
● A. A join that returns all possible combinations of rows from two tables
● B. A join that returns only the matching rows from both tables
● C. A join that returns all rows from the left table and the matched rows from the right
table
● D. A join that returns all rows from the right table and the matched rows from the left
table
Which command would you use to add a primary key to an existing table in SQL?
● A. MAX()
● B. MIN()
● C. GREATEST()
● D. HIGHEST()
● A. Returns all rows from the right table and the matched rows from the left table
● B. Returns all rows from the left table and the matched rows from the right table
● C. Returns only the matching rows from both tables
● D. Returns all rows from both tables, even if there are no matches
● A. SUM()
● B. TOTAL()
● C. ADD()
● D. COUNT()
=====================================================================
CHAPTER 11
What are the three levels of data abstraction defined by the ANSI SPARC framework?
Which term describes a specific type of entity that contains unique characteristics?
● A. Entity supertype
● B. Entity subtype
● C. Entity instance
● D. Entity cluster
What does the term 'disjoint subtypes' mean in the context of EERM?
● A. Subtypes that do not overlap and contain unique subsets of the supertype entity
set
● B. Subtypes that overlap and share subsets of the supertype entity set
● C. Subtypes that are not related to any supertype
● D. Subtypes that contain the same attributes as the supertype
Which attribute in the supertype entity determines to which subtype each supertype
occurrence is related?
● A. Primary key
● B. Foreign key
● C. Subtype discriminator
● D. Composite key
Which term refers to the ability of a subtype to inherit attributes and relationships from its
supertype?
● A. Specialization
● B. Generalization
● C. Inheritance
● D. Aggregation
In an EER model, what type of constraint specifies that an entity instance must belong to at
least one subtype?
● A. Disjoint constraint
● B. Overlapping constraint
● C. Completeness constraint
● D. Referential integrity constraint
Which characteristic is NOT a feature of the internal model in the EER framework?
Which type of entity contains common characteristics shared by one or more entity
subtypes?
● A. Entity instance
● B. Entity cluster
● C. Entity supertype
● D. Entity subtype
Which of the following is NOT an advantage of the external model in data abstraction?
What type of completeness constraint specifies that every instance of the supertype must be
a member of some subtype?
● A. Total completeness
● B. Partial completeness
● C. Complete participation
● D. Partial participation
How does the conceptual model differ from the internal model in the EER framework?
● A. The conceptual model represents the global view of the database, while the
internal model represents the database as seen by the DBMS
● B. The conceptual model is DBMS-specific, while the internal model is independent of
the DBMS
● C. The conceptual model deals with physical storage, while the internal model deals with
user views
● D. The conceptual model is detailed, while the internal model is abstract
What does the term 'entity cluster' refer to in the EER model?
Which of the following is true about entity subtypes in the EER model?
What is the function of the external schema in the ANSI SPARC framework?
● A. Completeness constraint
● B. Overlapping constraint
● C. Disjoint constraint
● D. Referential integrity constraint
========================================
CHAPTER 12
What is the primary purpose of the Systems Development Life Cycle (SDLC)?
● A. Planning
● B. Analysis
● C. Detailed systems design
● D. Implementation
Which process establishes the need for and extent of an information system?
● A. Systems development
● B. Systems analysis
● C. Database design
● D. Database implementation
In the context of DBLC, what does the term 'initial study' refer to?
● A. Planning
● B. Analysis
● C. Implementation
● D. Maintenance
Which phase of the SDLC focuses on creating technical specifications and conversion
steps?
● A. Planning
● B. Analysis
● C. Detailed systems design
● D. Implementation
What is the role of data flow diagrams (DFDs) in the analysis phase?
Which SDLC phase involves an initial assessment of information flow and requirements?
● A. Planning
● B. Analysis
● C. Detailed systems design
● D. Implementation
What is the purpose of defining scope and boundaries during the DBLC's initial study
phase?
What are the iterative processes required for completing the first phase of DBLC?
What is the primary objective of the detailed systems design phase in the SDLC?
● A. Corrective maintenance
● B. Adaptive maintenance
● C. Perfective maintenance
● D. Preventive maintenance
What is the primary focus of the database design and implementation process in DBLC?
● A. Analysis
● B. Initial study
● C. Implementation
● D. Maintenance
What is the significance of the conceptual data model created during the analysis phase?
Which phase of the SDLC is characterized by the evaluation of alternate solutions and
system cost?
● A. Planning
● B. Analysis
● C. Detailed systems design
● D. Implementation
What does the detailed systems design phase yield for each process within the database
environment?
Which phase of the DBLC includes a thorough audit of user requirements and existing
systems?
● A. Initial study
● B. Analysis
● C. Implementation
● D. Maintenance
In the DBLC, what is the purpose of defining the company's operational components and
their interactions?
● A. Corrective maintenance
● B. Adaptive maintenance
● C. Perfective maintenance
● D. Preventive maintenance
Which phase of the DBLC is characterized by analyzing the company situation and
defining problems and constraints?
● A. Initial study
● B. Analysis
● C. Implementation
● D. Maintenance
What is the significance of defining the scope and boundaries during the DBLC?
What is the key outcome of the detailed systems design phase in the SDLC?