Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 8 MCQsData Base Management Systems
DECAP145 ·
60 questions. Pick an option to check it.
A database is an organized collection of related data that can be easily stored, accessed, and managed.
Question 2 of 60 · The Database · Easy
In a database table, a row is also commonly called a:
Not quite. Try another option.
Answer: Record
Each row in a table represents a single record, holding one complete set of related data.
Question 3 of 60 · The Database · Easy
In a database table, a column is also known as a:
Not quite. Try another option.
Answer: Field
A column represents a field, which stores one specific attribute or category of data.
Question 4 of 60 · The Database · Easy
Which field uniquely identifies each record in a table?
Not quite. Try another option.
Answer: Primary key
A primary key is a field whose value is unique for each record, so it can identify records without duplication.
Question 5 of 60 · The Database · Easy
A collection of related records in a database is called a:
Not quite. Try another option.
Answer: Table
A table organizes related records into rows and columns and is the basic structure for storing data.
Question 6 of 60 · The DBMS · Easy
What does the abbreviation DBMS stand for?
Not quite. Try another option.
Answer: Database Management System
DBMS stands for Database Management System, the software used to create and manage databases.
Question 7 of 60 · The DBMS · Easy
What is the main purpose of a DBMS?
Not quite. Try another option.
Answer: To store, retrieve, and manage data
A DBMS provides tools to store, retrieve, update, and manage data in a database efficiently.
Question 8 of 60 · The DBMS · Easy
The most widely used type of database model organizes data into:
Not quite. Try another option.
Answer: Tables of rows and columns
The relational model, the most common type, stores data in tables made up of rows and columns.
Question 9 of 60 · The DBMS · Easy
A DBMS that stores data in related tables is called a:
Not quite. Try another option.
Answer: Relational DBMS
A relational DBMS (RDBMS) stores data in tables that can be linked, or related, to one another.
Question 10 of 60 · The DBMS · Easy
Which benefit does a DBMS provide compared to storing data in separate files?
Not quite. Try another option.
Answer: Reduced data redundancy
A DBMS reduces data redundancy by storing data centrally, avoiding repeated copies of the same information.
Question 11 of 60 · Working with a database · Easy
A query in a database is used to:
Not quite. Try another option.
Answer: Retrieve specific data
A query is a request that retrieves specific data from a database based on given conditions.
Question 12 of 60 · Working with a database · Easy
Which language is commonly used to work with relational databases?
Not quite. Try another option.
Answer: SQL
SQL (Structured Query Language) is the standard language used to query and manage relational databases.
Question 13 of 60 · Working with a database · Easy
What is a database form mainly used for?
Not quite. Try another option.
Answer: Entering and viewing data
A form provides a user-friendly interface for entering, editing, and viewing data one record at a time.
Question 14 of 60 · Working with a database · Easy
A database report is used to:
Not quite. Try another option.
Answer: Present data in a formatted layout
A report presents data from a database in an organized, formatted layout suitable for printing or review.
Question 15 of 60 · Working with a database · Easy
Sorting data in a database means:
Not quite. Try another option.
Answer: Arranging records in a certain order
Sorting arranges records in a specific order, such as alphabetical or numerical, to make data easier to read.
Question 16 of 60 · Working with a database · Easy
Filtering data allows a user to:
Not quite. Try another option.
Answer: Display only records that meet a condition
Filtering temporarily displays only the records that match a specified condition, hiding the rest.
Question 17 of 60 · Databases at Work · Easy
Which is a common everyday use of a database?
Not quite. Try another option.
Answer: Storing customer records in a store
Businesses commonly use databases to store and manage customer records, orders, and inventory.
Question 18 of 60 · Databases at Work · Easy
A bank uses a database mainly to:
Not quite. Try another option.
Answer: Track account and transaction data
Banks rely on databases to store account details and track transactions accurately and securely.
Question 19 of 60 · Common Corporate Database Management Systems · Easy
Which of the following is a well-known corporate DBMS?
Not quite. Try another option.
Answer: Oracle
Oracle Database is one of the most widely used corporate database management systems.
Question 20 of 60 · Common Corporate Database Management Systems · Easy
Which product is a database management system developed by Microsoft?
Not quite. Try another option.
Answer: SQL Server
Microsoft SQL Server is a popular corporate relational database management system.
Question 21 of 60 · The Database · Medium
A retail company stores customer records where each customer can place many orders, but each order belongs to exactly one customer. Which type of relationship best describes this design?
Not quite. Try another option.
Answer: One-to-many
A single customer relates to many orders while each order maps back to one customer, which is a classic one-to-many relationship.
Question 22 of 60 · The Database · Medium
In a relational table, a column is chosen to uniquely identify every row and is never left blank. What is this column called?
Not quite. Try another option.
Answer: Primary key
A primary key uniquely identifies each record and cannot be null, ensuring every row can be distinguished.
Question 23 of 60 · The Database · Medium
A database designer wants to link an Orders table to a Customers table. The CustomerID column in Orders refers to the primary key of Customers. What is CustomerID in the Orders table?
Not quite. Try another option.
Answer: A foreign key
A foreign key is a column in one table that references the primary key of another table to enforce a relationship.
Question 24 of 60 · The Database · Medium
In database terminology, a single row of a table that groups related fields about one entity is best described as a:
Not quite. Try another option.
Answer: Record
A record (or row) holds one complete set of related fields describing a single instance of an entity.
Question 25 of 60 · The DBMS · Medium
A hospital needs many staff members to read and update patient data at the same time without corrupting records. Which core DBMS capability directly addresses this need?
Not quite. Try another option.
Answer: Concurrency control
Concurrency control manages simultaneous access so multiple users can work on data without conflicts or corruption.
Question 26 of 60 · The DBMS · Medium
A DBMS allows a payroll clerk to see salary fields while blocking a receptionist from viewing them. Which DBMS function makes this possible?
Not quite. Try another option.
Answer: Access control and security
Security and access-control features let the DBMS grant or restrict user permissions on specific data.
Question 27 of 60 · The DBMS · Medium
Which statement best explains why a DBMS reduces data redundancy compared with separate flat files?
Not quite. Try another option.
Answer: It centralizes data so the same fact is stored once and shared
A DBMS keeps data in one integrated store that many applications share, avoiding repeated copies of the same information.
Question 28 of 60 · The DBMS · Medium
A power failure interrupts a bank transfer after money left one account but before it reached another. Which DBMS feature ensures the whole transaction is undone rather than left half-done?
Not quite. Try another option.
Answer: Transaction rollback
Transaction management rolls back incomplete transactions so the database returns to a consistent state after failures.
Question 29 of 60 · The DBMS · Medium
The part of a DBMS that provides a layer between the physical data storage and the user's view, so users need not know how data is physically stored, is achieved through:
Not quite. Try another option.
Answer: Data abstraction
Data abstraction hides the physical storage details and presents users a logical view of the data.
Question 30 of 60 · Working with a database · Medium
A user runs the SQL statement SELECT name FROM Employees WHERE dept = 'Sales';. What does this statement do?
Not quite. Try another option.
Answer: Retrieves names of employees in the Sales department
SELECT ... WHERE retrieves rows matching the condition; here it returns names where dept equals 'Sales'.
Question 31 of 60 · Working with a database · Medium
Which SQL command would you use to permanently remove specific rows from a table while keeping the table structure intact?
Not quite. Try another option.
Answer: DELETE
DELETE removes rows based on a condition but leaves the table definition in place, unlike DROP which removes the table.
Question 32 of 60 · Working with a database · Medium
A manager wants a screen where staff can type data into labeled boxes without seeing the raw table. Which database object is designed for this input task?
Not quite. Try another option.
Answer: Form
A form provides a user-friendly interface for entering and editing data without exposing the underlying table directly.
Question 33 of 60 · Working with a database · Medium
To combine matching rows from a Students table and an Enrollments table based on a common StudentID, which SQL operation is used?
Not quite. Try another option.
Answer: JOIN
A JOIN links rows from two tables using a shared column, letting you query related data together.
Question 34 of 60 · Working with a database · Medium
A librarian wants a printable, formatted summary of overdue books grouped by member. Which database object best produces this output?
Not quite. Try another option.
Answer: Report
A report presents query results in a formatted, printable layout suitable for summaries and presentation.
Question 35 of 60 · Working with a database · Medium
When you define that the Age field may only accept values greater than 0, you are applying a:
Not quite. Try another option.
Answer: Validation rule
Validation rules restrict what data can be entered into a field, improving accuracy and integrity.
Question 36 of 60 · Databases at Work · Medium
An online store analyzes years of sales history to discover that customers who buy printers often buy ink within two weeks. This process of finding hidden patterns in large data is called:
Not quite. Try another option.
Answer: Data mining
Data mining searches large datasets for patterns and relationships that support business decisions.
Question 37 of 60 · Databases at Work · Medium
A company keeps a large, integrated store of historical data from many systems specifically for analysis and reporting rather than daily transactions. This is known as a:
Not quite. Try another option.
Answer: Data warehouse
A data warehouse consolidates historical data from multiple sources to support analysis and decision-making.
Question 38 of 60 · Databases at Work · Medium
When you search an airline website for flights and it instantly returns matching options from a live database, this best illustrates:
Not quite. Try another option.
Answer: A database connected to a web application
Interactive websites query back-end databases in real time to display up-to-date results to users.
Question 39 of 60 · Common Corporate Database Management Systems · Medium
A small business needs a free, widely used open-source relational DBMS that pairs well with web applications. Which option best fits?
Not quite. Try another option.
Answer: MySQL
MySQL is a popular open-source relational DBMS commonly used with web applications, offering a free community edition.
Question 40 of 60 · Common Corporate Database Management Systems · Medium
A large enterprise runs a very high-volume mission-critical system and chooses a commercial DBMS known for scalability and robust enterprise features. Which of these is such a corporate DBMS?
Not quite. Try another option.
Answer: Oracle Database
Oracle Database is a widely adopted commercial DBMS designed for large-scale, mission-critical enterprise workloads.
Question 41 of 60 · The Database · Hard
A retail company stores customer orders where a single customer can place many orders, but each order belongs to exactly one customer. In a relational schema, which design correctly enforces this relationship while avoiding data redundancy?
Not quite. Try another option.
Answer: Place a foreign key CustomerID in the Orders table referencing the primary key of the Customers table
In a one-to-many relationship, the foreign key is placed on the 'many' side. Since one customer has many orders, CustomerID goes in Orders. A junction table is for many-to-many, and duplicating attributes causes redundancy.
Question 42 of 60 · The Database · Hard
A table has attributes {StudentID, CourseID, StudentName, Grade} with the composite primary key (StudentID, CourseID). StudentName depends only on StudentID. This design most directly violates which normal form?
Not quite. Try another option.
Answer: Second Normal Form (2NF)
2NF requires no partial dependency on part of a composite key. StudentName depends only on StudentID (part of the key), which is a partial dependency, violating 2NF.
Question 43 of 60 · The DBMS · Hard
Two banking transactions execute concurrently. reads a balance, and before commits, updates and commits a change to that same balance. When reads the balance again it sees a different value. Which concurrency anomaly is this?
Not quite. Try another option.
Answer: Non-repeatable read
A non-repeatable read occurs when a transaction reads the same row twice and gets different values because another committed transaction modified it in between. A dirty read involves uncommitted data; phantom reads involve new rows appearing.
Question 44 of 60 · The DBMS · Hard
Which set of properties must a DBMS transaction guarantee, and what does the 'D' specifically ensure?
Not quite. Try another option.
Answer: ACID; Durability ensures committed changes survive system failures such as crashes or power loss
Transactions follow ACID (Atomicity, Consistency, Isolation, Durability). Durability guarantees that once a transaction commits, its effects persist even after a crash. Isolation, not Durability, handles interference.
Question 45 of 60 · Working with a database · Hard
Consider the SQL query: SELECT dept, COUNT(*) FROM employees WHERE salary > 50000 GROUP BY dept HAVING COUNT(*) > 3;. Which statement correctly describes the logical order of evaluation?
Not quite. Try another option.
Answer: WHERE filters rows first, then GROUP BY groups them, then HAVING filters the groups
SQL processes WHERE before grouping (row-level filter), then GROUP BY, then HAVING (group-level filter after aggregation). WHERE cannot use aggregate results; HAVING can.
Question 46 of 60 · Working with a database · Hard
Table A has 5 rows and Table B has 3 rows. If you perform SELECT * FROM A CROSS JOIN B;, how many rows result, and what does this operation compute?
Not quite. Try another option.
Answer: 15 rows; the Cartesian product of the two tables
A CROSS JOIN produces the Cartesian product: every row of A paired with every row of B, giving rows. No join condition is applied.
Question 47 of 60 · Working with a database · Hard
A query joins two tables where some rows in the left table have no match in the right table. The result should include all left-table rows, filling NULL for unmatched right-table columns. Which join accomplishes this?
Not quite. Try another option.
Answer: LEFT OUTER JOIN
A LEFT OUTER JOIN keeps all rows from the left table, filling NULLs where no matching right-table row exists. INNER JOIN drops unmatched rows; RIGHT keeps all right rows; FULL keeps unmatched rows from both.
Question 48 of 60 · The DBMS · Hard
A database index dramatically speeds up SELECT queries on a column but is known to slow down another category of operations. Which operations are negatively affected and why?
Not quite. Try another option.
Answer: INSERT, UPDATE, and DELETE, because the index structure must be maintained on every data modification
Indexes accelerate reads but add overhead to writes: each INSERT, UPDATE, or DELETE must also update the index structure, slowing down modification operations.
Question 49 of 60 · The DBMS · Hard
Two transactions each hold a lock the other needs, and neither can proceed. A DBMS resolves this by aborting one transaction and rolling it back. What condition occurred and what is the resolution called?
Not quite. Try another option.
Answer: A deadlock; the aborted transaction is the deadlock victim
A deadlock is a circular wait where transactions block each other indefinitely. The DBMS detects it and aborts one transaction (the deadlock victim), rolling it back so the other can proceed.
Question 50 of 60 · The Database · Hard
A designer wants to guarantee that the Email column in a Users table never contains duplicate values but may be left empty (NULL) for some users. Which constraint best satisfies both requirements?
Not quite. Try another option.
Answer: A UNIQUE constraint, which permits NULLs while rejecting duplicate non-null values
A UNIQUE constraint enforces distinct values but allows NULLs. A PRIMARY KEY forbids NULLs. NOT NULL does not enforce uniqueness, and CHECK constraints cannot reference other rows.
Question 51 of 60 · The Database · Hard
In an entity-relationship model, a Booking entity exists only when linked to both a Flight and a Passenger, and cannot exist independently. What kind of entity is Booking?
Not quite. Try another option.
Answer: A weak (dependent) entity
A weak entity has no primary key of its own and depends on one or more owner entities for its existence and identification. Booking cannot exist without Flight and Passenger, making it weak.
Question 52 of 60 · Working with a database · Hard
Given a table Sales(region, amount), which query correctly returns only regions whose total sales exceed 10000?
Not quite. Try another option.
Answer: SELECT region FROM Sales GROUP BY region HAVING SUM(amount) > 10000;
Aggregate conditions on grouped data must use HAVING, not WHERE. WHERE cannot reference aggregate functions like SUM, and HAVING must follow GROUP BY.
Question 53 of 60 · The DBMS · Hard
A DBMS view is defined by a stored query. Which statement most accurately captures a key characteristic of a standard (non-materialized) view?
Not quite. Try another option.
Answer: It stores no data itself; its results are computed from the underlying tables each time it is queried
A standard view is a virtual table defined by a query; it holds no data and reflects current base-table data on each access. A materialized view, by contrast, physically stores results.
Question 54 of 60 · Data bases at Work · Hard
An organization needs to store historical data from multiple operational systems, optimized for complex analytical queries and reporting rather than day-to-day transactions. Which system is most appropriate?
Not quite. Try another option.
Answer: A data warehouse using an OLAP-oriented design
Data warehouses consolidate historical data from many sources and are optimized for OLAP (analytical) workloads. OLTP databases are optimized for frequent, small transactions, not complex analysis.
Question 55 of 60 · Data bases at Work · Hard
A rapidly scaling web application must store semi-structured product catalogs with varying attributes per item and requires horizontal scalability across many servers. Which database type best fits, and why is a rigid relational schema less ideal here?
Not quite. Try another option.
Answer: A NoSQL document database, because it stores flexible, schema-less documents and scales horizontally across distributed nodes
NoSQL document stores handle varying, semi-structured data without a fixed schema and are designed to scale out horizontally, making them well-suited for such workloads where a rigid relational schema is restrictive.
Question 56 of 60 · Common Corporate Database Management Systems · Hard
A corporation needs an open-source relational DBMS known for strong standards compliance, advanced features like complex queries and extensibility, often preferred for data integrity in analytical workloads. Which system best matches?
Not quite. Try another option.
Answer: PostgreSQL
PostgreSQL is an open-source, standards-compliant relational DBMS praised for advanced features and data integrity. Access is a desktop tool, MongoDB is a NoSQL document store, and Redis is a key-value store.
Question 57 of 60 · Common Corporate Database Management Systems · Hard
A team must choose a DBMS for a small departmental application built primarily as a Windows desktop tool with an integrated forms/report designer, expecting only a handful of concurrent users. Which is the most fitting choice?
Not quite. Try another option.
Answer: Microsoft Access
Microsoft Access is a desktop database with built-in form and report design, suited for small-scale, low-concurrency departmental apps. Oracle and Db2 are enterprise-scale; Cassandra is a distributed NoSQL store.
Question 58 of 60 · Working with a database · Hard
A query must find customers who have placed at least one order. Which construct is generally the most efficient and semantically correct when you only need existence, not the matched data?
Not quite. Try another option.
Answer: WHERE EXISTS (SELECT 1 FROM Orders o WHERE o.CustomerID = c.CustomerID)
EXISTS stops as soon as one matching row is found, making it efficient for existence checks. IN (SELECT *) is invalid for multi-column comparison, and = (subquery) fails if the subquery returns multiple rows.
Question 59 of 60 · The DBMS · Hard
In a client/server database architecture, why does placing the DBMS engine on the server rather than on each client generally improve integrity and consistency in a multi-user environment?
Not quite. Try another option.
Answer: The server centralizes data access, enforcing constraints, locking, and concurrency control in one place for all clients
A centralized server DBMS enforces integrity rules, manages locks, and coordinates concurrent access consistently for all clients, preventing the conflicts that arise when each client manages its own data.
Question 60 of 60 · The Database · Hard
A table Employee(EmpID, DeptID, DeptName) where EmpID is the primary key, EmpID → DeptID, and DeptID → DeptName. This chain of dependencies violates which normal form, and what is the fix?
Not quite. Try another option.
Answer: 3NF; move DeptName into a separate Department table keyed on DeptID to remove the transitive dependency
DeptName depends on DeptID, which depends on EmpID — a transitive dependency of a non-key attribute, violating 3NF. The fix is to place DeptName in its own Department table keyed by DeptID.
That's unit 8
Answer a few questions and your score shows up here.
Nearly through. Did unit 8 of DECAP145 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 8 of DECAP145 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.