CPT103 Introduction to Database
33 Questions
3 Views

CPT103 Introduction to Database

Created by
@GodGivenFeynman

Questions and Answers

Which of the following data models is NOT directly used by any databases?

  • Relational Data Model
  • Hierarchical Data Model
  • Entity-Relationship Model (correct)
  • Network Data Model
  • Who originally introduced the relational model in 1970?

  • E.F. Codd (correct)
  • Ted Codd
  • Peter Chen
  • Charles Bachman
  • Which data model specifically uses graph structures for semantic queries?

  • Document Model
  • Object-Oriented Model
  • Graph Model (correct)
  • Relational Model
  • What is a characteristic of the Document model in data storage?

    <p>Stores documents in forms like JSON or XML</p> Signup and view all the answers

    Which one of the following options is a key feature of a Database Management System (DBMS)?

    <p>Must be accessible from remote computers</p> Signup and view all the answers

    Which data structure is commonly arranged for ease and speed of search and retrieval?

    <p>Organized collection of data</p> Signup and view all the answers

    What is the primary focus of the hierarchical data model?

    <p>Representing data in a tree-like structure</p> Signup and view all the answers

    What does the object-oriented model present information as?

    <p>Objects</p> Signup and view all the answers

    What is one primary purpose of a database management system?

    <p>To manage and store data efficiently</p> Signup and view all the answers

    Which of the following is considered a type of data example?

    <p>A docx file storing a project status report</p> Signup and view all the answers

    Which characteristic should data possess to be meaningful?

    <p>It should be relevant to its designed scenario</p> Signup and view all the answers

    What percentage of the assessment is attributed to the closed-book exam in the module?

    <p>70%</p> Signup and view all the answers

    What is an important activity to do before assessments according to the module information?

    <p>Revise contents weekly</p> Signup and view all the answers

    What does a relation represent in the context of databases?

    <p>One class/type of objects</p> Signup and view all the answers

    Which of the following statements about tuples is correct?

    <p>Each tuple must contain unique attribute combinations.</p> Signup and view all the answers

    Which key uniquely identifies each tuple in a relation?

    <p>Primary key</p> Signup and view all the answers

    Given the examples, which combination uniquely identifies an office room?

    <p>Building number and room number</p> Signup and view all the answers

    What ensures the uniqueness of a staff member's identity in a database?

    <p>Their unique ID number</p> Signup and view all the answers

    What is true about super keys in database relations?

    <p>They do not guarantee uniqueness.</p> Signup and view all the answers

    Which of the following is NOT a type of relational key mentioned?

    <p>Attribute key</p> Signup and view all the answers

    Why are duplicate tuples disallowed in a relation?

    <p>To ensure data integrity</p> Signup and view all the answers

    What does a foreign key in a database ensure?

    <p>It ensures correct references across relations.</p> Signup and view all the answers

    Which of the following correctly describes the attributes of a foreign key?

    <p>It can be a single or multiple attributes.</p> Signup and view all the answers

    In the database example provided, which ticket belongs to the group with the largest table size?

    <p>B1</p> Signup and view all the answers

    Which combination of attributes can uniquely identify an office?

    <p>Building Number, Room, Room Size</p> Signup and view all the answers

    What is the definition of a superkey?

    <p>A set of attributes that uniquely identifies a tuple and may contain extra attributes.</p> Signup and view all the answers

    What information is NOT typically included in a foreign key relationship?

    <p>The size of the data table.</p> Signup and view all the answers

    Which of the following statements about candidate keys is false?

    <p>A relation can have multiple primary keys.</p> Signup and view all the answers

    Which option correctly classifies a primary key?

    <p>The candidate key selected to uniquely identify tuples.</p> Signup and view all the answers

    In the context of the given office data, which room has a printer?

    <p>Room 502 in Building 11</p> Signup and view all the answers

    What is the function of an alternate key?

    <p>To provide a method for identifying tuples that is not the primary key.</p> Signup and view all the answers

    If a relation has multiple candidate keys, how many of these can be primary keys?

    <p>Only one candidate key can be a primary key.</p> Signup and view all the answers

    Which key consists of more than one attribute?

    <p>Composite key</p> Signup and view all the answers

    Study Notes

    Module Overview

    • Instructors: Jianjun Chen, Jun Qi, Yu Liu with designated office hours.
    • Textbook: "Database Systems: a practical approach to design, implementation, and management" by Thomas M. Connolly and Carolyn E. Begg.
    • Assessment: 15% from two online quizzes and 70% from a closed-book exam.

    Importance of Collaboration

    • Engaging in discussions enhances understanding of concepts and terminology.
    • Regular notifications from instructors regarding updates and important announcements.

    Understanding Data

    • Data examples include documents (docx) and spreadsheets (Excel) containing relevant information.
    • Meaningful data requires specific contexts and restrictions on access to authorized users.

    Data Models

    • Defined as organized collections of data structured for efficient search and retrieval.
    • Key models include:
      • Relational Data Model: Data is organized in tables.
      • Hierarchical Data Model: Data organized in a tree-like structure.
      • Network Data Model: Data organized as a graph.
      • Entity-Relationship Model: Used for teaching, not implemented in databases.
      • Graph Model: Utilizes nodes and edges for semantic queries.
      • Document Model: Stores information in JSON/XML.
      • Object-Oriented Model: Information presented as objects.

    The Relational Model

    • Introduced by E.F. Codd in 1970.
    • Enforces uniqueness with no duplicate tuples.
    • Each relation represents a class/type of objects with tuples as instances.

    Relation Keys

    • Super Key: Any attribute(s) that uniquely identifies a tuple.
    • Candidate Key: A minimal super key with no proper subset also being a super key.
    • Primary Key: Selected candidate key for unique identification.
    • Foreign Key: Attribute(s) in one relation that reference a candidate key in another relation.

    Examples of Relations

    • Staff table attributes might include ID, Name, Salary, and Department.
    • Combination keys are needed where single attributes are not unique (e.g., Building Number + Room).

    Identifying Key Attributes

    • Tuples in staff or office relations can have overlapping attributes (like Name or Room Size) but must have unique identifiers (like ID or a combination of Building Number and Room).
    • Composite keys allow identification using multiple attributes.

    Questions for Understanding

    • Queries to test knowledge on which attribute combinations uniquely identify relations, particularly in office and teaching staff scenarios.

    Assessment Preparation

    • Encourage weekly revision and not being solely reliant on slides before assessments.
    • Utilize lab sessions to clarify doubts and enhance understanding of practical applications.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Welcome to CPT103, where you will explore the fundamentals of databases. This module covers the relational model, relational keys, and provides an understanding of database structures. Get ready to dive into the intriguing world of data management!

    More Quizzes Like This

    Database System Concepts Quiz
    10 questions

    Database System Concepts Quiz

    UnforgettableTropicalIsland avatar
    UnforgettableTropicalIsland
    Relational Database Fundamentals
    52 questions
    Relational Database Fundamentals
    10 questions
    Use Quizgecko on...
    Browser
    Browser