Option A; Comp Sci IB

Cards (270)

  • What does this video contain for paper 2 option A?
    Both SL and HL content
  • Why is this video the longest one?
    It covers an entire paper's worth of content
  • How can you navigate to the HR content in the video?
    By checking the timestamps in the description
  • What is the distinction between data and information?
    Data is raw facts, while information is data with context
  • What is an example of data?
    Json got a 95 out of 100 on the final exam
  • How does information differ from data?
    Information is data given meaning or interpreted by the user
  • What is a database?
    An organized collection of data connected to a specific topic
  • What are tables in a database?
    Tables are collections of fields and records related to each other
  • What is a database management system (DBMS)?
    A piece of software used to create and store databases
  • What is SQL?
    Structured Query Language used to interact with databases
  • What are attributes in a database table?
    Columns that hold a set of values
  • What are records in a database table?
    Rows of data that are related to each other
  • What is a foreign key in a database?
    A field that links to a primary key in another table
  • What is the purpose of a primary key?
    To uniquely identify each row in a table
  • How do primary keys and foreign keys work together?
    Primary keys uniquely identify records, while foreign keys link tables
  • What are the common data types in a database?
    Text, character, Boolean, integer, real, date/time
  • What does the SQL command 'CREATE TABLE' do?
    It creates a new table with specified fields and data types
  • What is the purpose of the 'SELECT' statement in SQL?
    To retrieve specific data from a table
  • What does the 'WHERE' clause do in a SQL query?
    It specifies criteria for filtering records
  • How does a simple query differ from a complex query in SQL?
    A simple query has one criterion, while a complex query has multiple criteria
  • What is the significance of data validation in a database?
    It checks that input follows rules for the type of data entered
  • What is data verification in the context of databases?
    It checks that the input matches expected values in the database
  • What is an entity in a database?
    A real-world object or person represented by a row in a table
  • How are attributes related to entities in a database?
    Attributes are the characteristics of an entity represented in the table
  • What is the purpose of the 'LIKE' keyword in SQL?
    To search for a specific string within a field
  • What does the 'SELECT *' statement do in SQL?
    It retrieves all fields from a specified table
  • How do Boolean operators enhance SQL queries?
    They allow for more complex criteria in filtering records
  • If you want to find products with a price greater than 20, which SQL command would you use?
    SELECT * FROM products WHERE price > 20
  • What is the role of intermediary tables in a database?
    They connect multiple tables to establish relationships
  • What is the maximum number of records a database can store compared to an Excel spreadsheet?
    A database can store a greater number of records than an Excel spreadsheet
  • Why is it important to understand SQL for the exam?
    SQL is used to interact with databases and retrieve data
  • How do data types affect the structure of a database?
    Data types determine how data is stored and validated in fields
  • What SQL command would you use to create a table with fields for name, age, address, and salary?
    CREATE TABLE table_name (name TEXT, age INTEGER, address TEXT, salary REAL)
  • What is the significance of the 'FROM' clause in a SQL query?
    It specifies the table from which to retrieve data
  • How does the use of the 'AND' operator change a SQL query?
    It adds an additional criterion that must be met for records to be selected
  • What is the purpose of the 'ORDER BY' clause in SQL?
    To sort the results of a query based on specified fields
  • What is the function of the 'GROUP BY' clause in SQL?
    To group records that have the same values in specified fields
  • How does a database support data validation?
    It checks that input follows rules for the type of data entered
  • What is the relationship between data validation and data verification?
    Data validation checks input rules, while data verification checks input against expected values
  • Why is it important to have unique primary keys in a database?
    They ensure that each record can be uniquely identified