Introduction to Database Systems Question Bank
Showing 45 questions of 45 with verified answers
(Scenario-Based) A university registrar uses a traditional File Processing System. Student addresses are stored in both a Billing.dat file and a Library.dat file. When a student moves, the address is only updated in the Billing.dat file. What specific database problem does this illustrate? • • •
(Comparison) Which of the following best describes the difference between a Database Schema and a Database Instance?
(Code-Tracing) A database administrator executes the following SQL query to inspect the database. What specific DBMS component is being accessed here?
(Conceptual) In traditional file systems, if you change the length of a 'ZipCode' field from 5 to 9 characters in the storage file, you must also rewrite the application code reading that file. A DBMS eliminates this requirement. This characteristic is known as:
(Scenario-Based) Two travel agents attempt to book the last remaining seat on a flight at the exact same millisecond. In a traditional file system, both might succeed, causing an overbooking. What inherent feature of a DBMS prevents this?
(Conceptual) While a DBMS offers many advantages, there are scenarios where utilizing a DBMS is considered unnecessary or harmful. Which of the following is a valid reason to avoid using a full-scale DBMS?
(Scenario-Based) A bank's IT department is separating roles. Employee A manages the physical disk storage and backup strategies. Employee B designs the logical tables and ER diagrams. Employee C writes web applications that query the database. Who represents the Database Administrator (DBA)?
(Conceptual) Which of the following is NOT a fundamental property of a Database Management System?
(Comparison) What is the primary difference between a "Data Definition Language (DDL)" and a "Data Manipulation Language (DML)"?
(Scenario-Based) An e-commerce system uses a DBMS to ensure that if a server crashes during a checkout process (after deducting inventory but before charging the credit card), the inventory deduction is undone. This capability falls under:
(Scenario-Based) A DBA notices that queries searching for a specific user's email are too slow. They create a B-Tree index on the email column. The backend application's SQL queries remain exactly the same, but execution speed increases 10x. This is a practical example of:
(Comparison) In the context of database application architecture, what is the primary distinction between a 2-Tier and a 3-Tier architecture?
(Code-Tracing) A developer runs the following command in their terminal. Which specific internal component of the DBMS architecture is responsible for generating the output shown?
(Conceptual) In the Three-Schema Architecture, what mechanism allows the DBMS to translate a request on an External View into a request against the Conceptual Schema, and finally into a read operation on the physical disk?
(Scenario-Based) An application suddenly starts throwing SQLSyntaxErrorException errors. Upon investigation, you discover a DBA split a massive Customers table into two normalized tables (Customers_Core and Customers_Address). What architectural concept failed to protect the application?
(Diagram/Visual Interpretation) If you were to draw an architectural diagram of a modern Web Application, where does the DBMS Engine itself typically reside?
(Code-Tracing) Look at the SQL script below. The object hr_employee_view belongs to which level of the database architecture?
(Conceptual) What is the primary role of the Storage Manager module in a database system?
(Comparison) Why is Logical Data Independence generally considered much harder to fully achieve than Physical Data Independence?
(Conceptual) When a database crash occurs, the recovery manager ensures that incomplete transactions are undone and committed transactions are preserved. Which file structure, maintained by the DBMS architecture, is strictly required to accomplish this?
(Conceptual) Which early database model organizes data in a strict upside-down tree structure, where every child record is allowed to have exactly one parent record?
(Comparison) How did the Network Data Model fundamentally improve upon the limitations of the Hierarchical Data Model?
(Scenario-Based) A software architect is designing the backend for a social media application. The most critical, high-frequency query is finding "friends of friends of friends" (3rd-degree connections). Which data model is most highly optimized for this specific traversal operation?
(Conceptual) In the Relational Data Model introduced by E.F. Codd in 1970, what fundamental mathematical concept serves as the absolute foundation for tables?
(Scenario-Based) During the initial requirements phase of a new university database, a database architect draws a diagram on a whiteboard. They draw rectangles for `Students`, diamonds representing `Enrollments`, and ovals representing `Student_IDs`. What specific data model is being utilized here?
(Code/Data Tracing) Examine the raw data representation extracted from a database below. What type of data model is being utilized to store this record?
(Comparison) Which of the following is a primary architectural advantage of the Object-Oriented Data Model over the traditional Relational Data Model?
(Conceptual) Database design typically progresses through three distinct modeling phases. Which data model specifies the absolute low-level storage details, such as record formats, file structures, table spaces, and B-Tree access paths?
(Scenario-Based) A legacy banking system runs on an old Hierarchical database. A customer can have multiple accounts (checking, savings). However, the bank is trying to implement "Joint Accounts" where two distinct customers share one account. The development team reports this is extremely difficult. Why?
(Conceptual) In the context of database models and architecture, what specific problem does "Data Abstraction" solve for the end-user?
(Calculation) Consider a relation Employees(EmpID, Name, DeptID, Salary, Phone). Currently, there are 500 employee records. What are the Degree and the Cardinality of this relation?
(Conceptual) According to the Entity Integrity Constraint, which of the following statements is true regarding a Primary Key?
(Scenario-Based) A database designer identifies three possible unique identifiers for a Vehicle table: VIN (Vehicle Identification Number), EngineNumber, and LicensePlate. In relational terminology, what are these three attributes called before one is officially selected as the Primary Key?
(Code-Tracing) A developer attempts to execute the following SQL script. Which relational constraint will likely cause the second INSERT to fail?
(Comparison) What is the technical difference between a Super Key and a Candidate Key?
(Scenario-Based) A table ProjectAssignments uses a composite Primary Key consisting of (EmployeeID, ProjectID). If a manager tries to assign Employee 501 to Project 'A' twice, which error will the DBMS throw?
(Conceptual) In the relational model, why is it stated that "tuples are unordered"?
(Code-Tracing) Consider the following table and data. What happens if you try to execute: DELETE FROM Parent WHERE id = 1;? postgres - delete_logic CREATE TABLE Parent (id INT PRIMARY KEY); CREATE TABLE Child ( c_id INT PRIMARY KEY, p_id INT REFERENCES Parent(id) ON DELETE CASCADE ); INSERT INTO Parent VALUES (1);
(Comparison) How does a Foreign Key differ from a Primary Key regarding NULL values?
(Calculation) A relation R has attributes {A, B, C, D}. The only unique combinations of attributes are {A, B} and {A, C}. How many Candidate Keys does this relation have?
(Conceptual) What does the term "Domain" represent in a relational schema? INSERT INTO Child VALUES (100, 1);
(Scenario-Based) An e-commerce database has a table Orders. The designer wants to ensure that the total_amount column never accepts negative values. Which relational concept should be applied?
(Calculation) If Relation A has 10 tuples and Relation B has 5 tuples, what is the Cardinality of the Cartesian Product (A x B)?
(Code-Tracing) Observe the SQL below. What is the Primary Key of the Enrollments table? sql-editor - composite_keys CREATE TABLE Enrollments ( student_id INT,
(Comparison) What happens if you try to insert a duplicate value into a column that has a UNIQUE constraint, but is NOT the Primary Key?