Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTTest.
Simulator
Home/Subjects/Databases & SQL/Introduction to Database Systems
Databases & SQLTopic #1 of 445 MCQs Available

Introduction to Database Systems

Comprehensive question bank, step-by-step rationales, and dedicated timed quiz for Introduction to Database Systems.

Launch Quiz Mode ↗

Introduction to Database Systems Question Bank

Showing 45 questions of 45 with verified answers

1Multiple Choice

(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? • • •

2Multiple Choice

(Comparison) Which of the following best describes the difference between a Database Schema and a Database Instance?

3Multiple Choice

(Code-Tracing) A database administrator executes the following SQL query to inspect the database. What specific DBMS component is being accessed here?

4Multiple Choice

(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:

5Multiple Choice

(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?

6Multiple Choice

(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?

7Multiple Choice

(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)?

8Multiple Choice

(Conceptual) Which of the following is NOT a fundamental property of a Database Management System?

9Multiple Choice

(Comparison) What is the primary difference between a "Data Definition Language (DDL)" and a "Data Manipulation Language (DML)"?

10Multiple Choice

(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:

1Multiple Choice

(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:

2Multiple Choice

(Comparison) In the context of database application architecture, what is the primary distinction between a 2-Tier and a 3-Tier architecture?

3Multiple Choice

(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?

4Multiple Choice

(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?

5Multiple Choice

(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?

6Multiple Choice

(Diagram/Visual Interpretation) If you were to draw an architectural diagram of a modern Web Application, where does the DBMS Engine itself typically reside?

7Multiple Choice

(Code-Tracing) Look at the SQL script below. The object hr_employee_view belongs to which level of the database architecture?

8Multiple Choice

(Conceptual) What is the primary role of the Storage Manager module in a database system?

9Multiple Choice

(Comparison) Why is Logical Data Independence generally considered much harder to fully achieve than Physical Data Independence?

10Multiple Choice

(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?

1Multiple Choice

(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?

2Multiple Choice

(Comparison) How did the Network Data Model fundamentally improve upon the limitations of the Hierarchical Data Model?

3Multiple Choice

(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?

4Multiple Choice

(Conceptual) In the Relational Data Model introduced by E.F. Codd in 1970, what fundamental mathematical concept serves as the absolute foundation for tables?

5Multiple Choice

(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?

6Multiple Choice

(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?

7Multiple Choice

(Comparison) Which of the following is a primary architectural advantage of the Object-Oriented Data Model over the traditional Relational Data Model?

8Multiple Choice

(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?

9Multiple Choice

(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?

10Multiple Choice

(Conceptual) In the context of database models and architecture, what specific problem does "Data Abstraction" solve for the end-user?

1Multiple Choice

(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?

2Multiple Choice

(Conceptual) According to the Entity Integrity Constraint, which of the following statements is true regarding a Primary Key?

3Multiple Choice

(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?

4Multiple Choice

(Code-Tracing) A developer attempts to execute the following SQL script. Which relational constraint will likely cause the second INSERT to fail?

5Multiple Choice

(Comparison) What is the technical difference between a Super Key and a Candidate Key?

6Multiple Choice

(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?

7Multiple Choice

(Conceptual) In the relational model, why is it stated that "tuples are unordered"?

8Multiple Choice

(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);

9Multiple Choice

(Comparison) How does a Foreign Key differ from a Primary Key regarding NULL values?

10Multiple Choice

(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?

11Multiple Choice

(Conceptual) What does the term "Domain" represent in a relational schema? INSERT INTO Child VALUES (100, 1);

12Multiple Choice

(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?

13Multiple Choice

(Calculation) If Relation A has 10 tuples and Relation B has 5 tuples, what is the Cardinality of the Cartesian Product (A x B)?

14Multiple Choice

(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,

15Multiple Choice

(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?