Unit 8: Data Base Management Systems - Practice Quiz

DECAP145 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is a database?

The Database Easy
A. An organized collection of related data
B. A single spreadsheet cell
C. A type of computer monitor
D. A programming language

2 In a database table, a row is also commonly called a:

The Database Easy
A. Query
B. Index
C. Record
D. Field

3 In a database table, a column is also known as a:

The Database Easy
A. Field
B. Table
C. Record
D. Report

4 Which field uniquely identifies each record in a table?

The Database Easy
A. Foreign key
B. Primary key
C. Sort key
D. Data field

5 A collection of related records in a database is called a:

The Database Easy
A. Menu
B. Cell
C. Table
D. Macro

6 What does the abbreviation DBMS stand for?

The DBMS Easy
A. Database Management System
B. Digital Base Memory Storage
C. Data Backup Management Service
D. Database Model Structure

7 What is the main purpose of a DBMS?

The DBMS Easy
A. To design web pages
B. To send emails
C. To edit photographs
D. To store, retrieve, and manage data

8 The most widely used type of database model organizes data into:

The DBMS Easy
A. Folders and shortcuts
B. Slides and layouts
C. Tables of rows and columns
D. Circles and lines

9 A DBMS that stores data in related tables is called a:

The DBMS Easy
A. Graphical DBMS
B. Relational DBMS
C. Textual DBMS
D. Sequential DBMS

10 Which benefit does a DBMS provide compared to storing data in separate files?

The DBMS Easy
A. Loss of data security
B. More duplicate records
C. Slower data access
D. Reduced data redundancy

11 A query in a database is used to:

Working with a database Easy
A. Print a document
B. Install software
C. Retrieve specific data
D. Format the screen

12 Which language is commonly used to work with relational databases?

Working with a database Easy
A. CSS
B. HTML
C. XML
D. SQL

13 What is a database form mainly used for?

Working with a database Easy
A. Deleting the database
B. Encrypting files
C. Compiling programs
D. Entering and viewing data

14 A database report is used to:

Working with a database Easy
A. Connect to the internet
B. Write source code
C. Draw diagrams
D. Present data in a formatted layout

15 Sorting data in a database means:

Working with a database Easy
A. Arranging records in a certain order
B. Copying the whole database
C. Deleting all records
D. Changing field names

16 Filtering data allows a user to:

Working with a database Easy
A. Back up the server
B. Change the font color
C. Merge two databases
D. Display only records that meet a condition

17 Which is a common everyday use of a database?

Databases at Work Easy
A. Playing background music
B. Drawing freehand sketches
C. Cooling a computer processor
D. Storing customer records in a store

18 A bank uses a database mainly to:

Databases at Work Easy
A. Track account and transaction data
B. Design bank buildings
C. Broadcast television
D. Print newspapers

19 Which of the following is a well-known corporate DBMS?

Common Corporate Database Management Systems Easy
A. Windows Media Player
B. Oracle
C. Photoshop
D. Google Chrome

20 Which product is a database management system developed by Microsoft?

Common Corporate Database Management Systems Easy
A. OneNote
B. Skype
C. PowerPoint
D. SQL Server

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

The Database Medium
A. Many-to-many
B. Many-to-one from customer to order
C. One-to-one
D. One-to-many

22 In a relational table, a column is chosen to uniquely identify every row and is never left blank. What is this column called?

The Database Medium
A. Foreign key
B. Index field
C. Candidate attribute
D. Primary key

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

The Database Medium
A. A primary key
B. A composite key
C. A surrogate key
D. A foreign key

24 In database terminology, a single row of a table that groups related fields about one entity is best described as a:

The Database Medium
A. Field
B. Record
C. Attribute
D. Table

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

The DBMS Medium
A. Spell checking
B. Concurrency control
C. Report formatting
D. Data compression

26 A DBMS allows a payroll clerk to see salary fields while blocking a receptionist from viewing them. Which DBMS function makes this possible?

The DBMS Medium
A. Query optimization
B. Access control and security
C. Indexing
D. Data backup

27 Which statement best explains why a DBMS reduces data redundancy compared with separate flat files?

The DBMS Medium
A. It automatically deletes duplicate applications
B. It converts all data into spreadsheets
C. It stores each user's data in a private copy
D. It centralizes data so the same fact is stored once and shared

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

The DBMS Medium
A. Transaction rollback
B. Data mining
C. Normalization
D. Field validation

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

The DBMS Medium
A. Data abstraction
B. Data entry
C. Data duplication
D. Data export

30 A user runs the SQL statement SELECT name FROM Employees WHERE dept = 'Sales';. What does this statement do?

Working with a database Medium
A. Deletes Sales employees
B. Adds a new Sales employee
C. Renames the department column
D. Retrieves names of employees in the Sales department

31 Which SQL command would you use to permanently remove specific rows from a table while keeping the table structure intact?

Working with a database Medium
A. DELETE
B. SELECT
C. CREATE
D. DROP

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

Working with a database Medium
A. Form
B. Schema
C. Index
D. Query

33 To combine matching rows from a Students table and an Enrollments table based on a common StudentID, which SQL operation is used?

Working with a database Medium
A. GROUP BY
B. ORDER BY
C. DISTINCT
D. JOIN

34 A librarian wants a printable, formatted summary of overdue books grouped by member. Which database object best produces this output?

Working with a database Medium
A. Report
B. Form
C. Field
D. Table

35 When you define that the Age field may only accept values greater than 0, you are applying a:

Working with a database Medium
A. Validation rule
B. Primary key
C. Backup policy
D. Sort order

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

Databases at Work Medium
A. Data mining
B. Data entry
C. Data backup
D. Data validation

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

Databases at Work Medium
A. Web form
B. Field index
C. Data warehouse
D. Transaction log

38 When you search an airline website for flights and it instantly returns matching options from a live database, this best illustrates:

Databases at Work Medium
A. A word processor mail merge
B. A local text file lookup
C. A database connected to a web application
D. A spreadsheet macro

39 A small business needs a free, widely used open-source relational DBMS that pairs well with web applications. Which option best fits?

Common Corporate Database Management Systems Medium
A. IBM Db2
B. MySQL
C. Oracle Database
D. Microsoft SQL Server

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

Common Corporate Database Management Systems Medium
A. Windows Explorer
B. MS Paint
C. Notepad
D. Oracle Database

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

The Database Hard
A. Duplicate all customer attributes (name, address, phone, loyalty tier) directly into each row of the Orders table so that every order is fully self-contained and no join is ever required
B. Place a foreign key OrderID in the Customers table referencing the primary key of the Orders table
C. Create a separate junction table containing both CustomerID and OrderID as a composite key
D. Place a foreign key CustomerID in the Orders table referencing the primary key of the Customers table

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

The Database Hard
A. First Normal Form (1NF)
B. Third Normal Form (3NF)
C. Boyce-Codd Normal Form (BCNF)
D. Second Normal Form (2NF)

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

The DBMS Hard
A. Phantom read
B. Non-repeatable read
C. Dirty read
D. Lost update

44 Which set of properties must a DBMS transaction guarantee, and what does the 'D' specifically ensure?

The DBMS Hard
A. ACID; Durability ensures that transactions do not interfere with one another
B. CRUD; Durability ensures data can be read, updated, and deleted reliably
C. BASE; Durability ensures data is eventually consistent across replicas
D. ACID; Durability ensures committed changes survive system failures such as crashes or power loss

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

Working with a database Hard
A. GROUP BY runs first, then WHERE filters the resulting groups, then HAVING
B. WHERE and HAVING are interchangeable and both filter individual rows before grouping
C. HAVING filters rows first, then WHERE filters the groups after grouping
D. WHERE filters rows first, then GROUP BY groups them, then HAVING filters the groups

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

Working with a database Hard
A. 15 rows; the Cartesian product of the two tables
B. 3 rows; an inner join keeping only matching rows
C. 8 rows; the union of the two tables
D. 5 rows; a natural join matching on common columns

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

Working with a database Hard
A. RIGHT OUTER JOIN
B. LEFT OUTER JOIN
C. INNER JOIN
D. FULL OUTER JOIN

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

The DBMS Hard
A. SELECT queries with WHERE clauses, because the optimizer must scan the index redundantly
B. INSERT, UPDATE, and DELETE, because the index structure must be maintained on every data modification
C. Read-only queries, because the index locks the table for reads
D. GROUP BY and ORDER BY, because indexes prevent sorting entirely

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

The DBMS Hard
A. A cascade failure; the aborted transaction is the checkpoint
B. A deadlock; the aborted transaction is the deadlock victim
C. A dirty read; the aborted transaction is the shadow copy
D. A race condition; the aborted transaction is the rollback candidate

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

The Database Hard
A. A CHECK constraint verifying the email is distinct from all other rows
B. A PRIMARY KEY constraint, which permits NULLs and rejects duplicates
C. A UNIQUE constraint, which permits NULLs while rejecting duplicate non-null values
D. A NOT NULL constraint, which rejects duplicates and empty values

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

The Database Hard
A. A recursive entity
B. A weak (dependent) entity
C. A derived entity
D. A strong (independent) entity

52 Given a table Sales(region, amount), which query correctly returns only regions whose total sales exceed 10000?

Working with a database Hard
A. SELECT region FROM Sales GROUP BY region HAVING SUM(amount) > 10000;
B. SELECT region FROM Sales GROUP BY region WHERE SUM(amount) > 10000;
C. SELECT region FROM Sales WHERE SUM(amount) > 10000 GROUP BY region;
D. SELECT region, SUM(amount) FROM Sales WHERE amount > 10000;

53 A DBMS view is defined by a stored query. Which statement most accurately captures a key characteristic of a standard (non-materialized) view?

The DBMS Hard
A. It stores a permanent physical copy of the query results that must be manually refreshed
B. It is a temporary table that is automatically deleted when the session ends
C. It duplicates the underlying tables to improve write performance
D. It stores no data itself; its results are computed from the underlying tables each time it is queried

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

Data bases at Work Hard
A. An in-memory cache serving frequent lookups
B. An OLTP transactional database with high normalization
C. A flat-file spreadsheet system
D. A data warehouse using an OLAP-oriented design

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

Data bases at Work Hard
A. A relational database, because normalization guarantees flexible attributes
B. A hierarchical database, because tree structures scale horizontally
C. A network database, because pointers eliminate the need for scaling
D. A NoSQL document database, because it stores flexible, schema-less documents and scales horizontally across distributed nodes

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

Common Corporate Database Management Systems Hard
A. Microsoft Access
B. PostgreSQL
C. Redis
D. MongoDB

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

Common Corporate Database Management Systems Hard
A. Oracle Database
B. IBM Db2
C. Cassandra
D. Microsoft Access

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

Working with a database Hard
A. WHERE CustomerID = (SELECT CustomerID FROM Orders)
B. WHERE EXISTS (SELECT 1 FROM Orders o WHERE o.CustomerID = c.CustomerID)
C. INNER JOIN Orders and then SELECT DISTINCT every customer column
D. WHERE CustomerID IN (SELECT * FROM Orders)

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

The DBMS Hard
A. Clients handle all locking, so the server never needs to coordinate access
B. Each client maintains its own copy of the data, so conflicts never occur
C. The server only stores backups while clients perform all processing independently
D. The server centralizes data access, enforcing constraints, locking, and concurrency control in one place for all clients

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

The Database Hard
A. 2NF; remove the partial dependency of DeptName on EmpID
B. 1NF; split multi-valued DeptName into separate rows
C. BCNF; make DeptName the primary key of the table
D. 3NF; move DeptName into a separate Department table keyed on DeptID to remove the transitive dependency