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. A single spreadsheet cell
B. A programming language
C. A type of computer monitor
D. An organized collection of related data

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

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

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

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

4 Which field uniquely identifies each record in a table?

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

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

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

6 What does the abbreviation DBMS stand for?

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

7 What is the main purpose of a DBMS?

The DBMS Easy
A. To send emails
B. To design web pages
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. Tables of rows and columns
C. Slides and layouts
D. Circles and lines

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

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

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

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

11 A query in a database is used to:

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

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

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

13 What is a database form mainly used for?

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

14 A database report is used to:

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

15 Sorting data in a database means:

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

16 Filtering data allows a user to:

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

17 Which is a common everyday use of a database?

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

18 A bank uses a database mainly to:

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

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

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

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

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

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-one from customer to order
B. Many-to-many
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. Candidate attribute
B. Foreign key
C. Index field
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 composite key
B. A surrogate key
C. A primary 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. Record
B. Attribute
C. Field
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. Report formatting
C. Concurrency control
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. Access control and security
B. Indexing
C. Data backup
D. Query optimization

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. Normalization
B. Data mining
C. Transaction rollback
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 duplication
B. Data entry
C. Data export
D. Data abstraction

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. Retrieves names of employees in the Sales department
B. Deletes Sales employees
C. Adds a new Sales employee
D. Renames the department column

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. DROP
D. CREATE

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. Schema
B. Query
C. Index
D. Form

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. ORDER BY
B. JOIN
C. DISTINCT
D. GROUP BY

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. Field
B. Report
C. Form
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. Primary key
B. Backup policy
C. Sort order
D. Validation rule

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 validation
B. Data entry
C. Data mining
D. Data backup

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. Field index
B. Data warehouse
C. Web form
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 local text file lookup
B. A word processor mail merge
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. Microsoft SQL Server
C. MySQL
D. Oracle Database

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. Notepad
B. Oracle Database
C. MS Paint
D. Windows Explorer

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. Place a foreign key OrderID in the Customers table referencing the primary key of the Orders table
B. Create a separate junction table containing both CustomerID and OrderID as a composite key
C. Place a foreign key CustomerID in the Orders table referencing the primary key of the Customers table
D. 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

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. Boyce-Codd Normal Form (BCNF)
B. Third Normal Form (3NF)
C. Second Normal Form (2NF)
D. First Normal Form (1NF)

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. Dirty read
C. Non-repeatable 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. BASE; Durability ensures data is eventually consistent across replicas
B. CRUD; Durability ensures data can be read, updated, and deleted reliably
C. ACID; Durability ensures committed changes survive system failures such as crashes or power loss
D. ACID; Durability ensures that transactions do not interfere with one another

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. WHERE and HAVING are interchangeable and both filter individual rows before grouping
B. WHERE filters rows first, then GROUP BY groups them, then HAVING filters the groups
C. GROUP BY runs first, then WHERE filters the resulting groups, then HAVING
D. HAVING filters rows first, then WHERE filters the groups after grouping

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. 8 rows; the union of the two tables
B. 5 rows; a natural join matching on common columns
C. 3 rows; an inner join keeping only matching rows
D. 15 rows; the Cartesian product of the two tables

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. INNER JOIN
B. FULL OUTER JOIN
C. RIGHT OUTER JOIN
D. LEFT 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. INSERT, UPDATE, and DELETE, because the index structure must be maintained on every data modification
B. GROUP BY and ORDER BY, because indexes prevent sorting entirely
C. Read-only queries, because the index locks the table for reads
D. SELECT queries with WHERE clauses, because the optimizer must scan the index redundantly

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 deadlock; the aborted transaction is the deadlock victim
B. A race condition; the aborted transaction is the rollback candidate
C. A cascade failure; the aborted transaction is the checkpoint
D. A dirty read; the aborted transaction is the shadow copy

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 NOT NULL constraint, which rejects duplicates and empty values
B. A CHECK constraint verifying the email is distinct from all other rows
C. A UNIQUE constraint, which permits NULLs while rejecting duplicate non-null values
D. A PRIMARY KEY constraint, which permits NULLs and rejects duplicates

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 weak (dependent) entity
B. A derived entity
C. A recursive 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, SUM(amount) FROM Sales WHERE amount > 10000;
B. SELECT region FROM Sales WHERE SUM(amount) > 10000 GROUP BY region;
C. SELECT region FROM Sales GROUP BY region WHERE SUM(amount) > 10000;
D. SELECT region FROM Sales GROUP BY region HAVING SUM(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 no data itself; its results are computed from the underlying tables each time it is queried
B. It is a temporary table that is automatically deleted when the session ends
C. It stores a permanent physical copy of the query results that must be manually refreshed
D. It duplicates the underlying tables to improve write performance

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. A data warehouse using an OLAP-oriented design
B. A flat-file spreadsheet system
C. An in-memory cache serving frequent lookups
D. An OLTP transactional database with high normalization

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 NoSQL document database, because it stores flexible, schema-less documents and scales horizontally across distributed nodes
C. A hierarchical database, because tree structures scale horizontally
D. A network database, because pointers eliminate the need for scaling

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. MongoDB
D. Redis

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. IBM Db2
B. Cassandra
C. Oracle Database
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 EXISTS (SELECT 1 FROM Orders o WHERE o.CustomerID = c.CustomerID)
B. WHERE CustomerID = (SELECT CustomerID FROM Orders)
C. WHERE CustomerID IN (SELECT * FROM Orders)
D. INNER JOIN Orders and then SELECT DISTINCT every customer column

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

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. 3NF; move DeptName into a separate Department table keyed on DeptID to remove the transitive dependency
C. 1NF; split multi-valued DeptName into separate rows
D. BCNF; make DeptName the primary key of the table