wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Transactions and Concurrency Control

Total questions: 55

Worksheet time: 55mins

Name
Class
Date
1.

What is a transaction in a database?

a)

A collection of operations that form a single logical unit of work

b)

A request to read or write data in a database

c)

A constraint specified in the database schema

d)

A log used to track database updates

2.

Which of the following is an example of a transaction?

a)

Writing a new customer's invoice

b)

Updating the sales in a database

c)

Reducing the quantity of on-hand products in inventory

d)

All of the above

3.

What is a database request equivalent to in an application program or transaction?

a)

A single SQL statement

b)

A collection of SQL statements

c)

A database update

d)

A database query

4.

What is a database consistent state?

a)

A state where all data is up-to-date

b)

A state where all data is accurate

c)

A state that satisfies the constraints specified in the schema

d)

A state that allows concurrent transactions

5.

What is the purpose of a transaction log in a DBMS?

a)

To keep track of all the transactions that update the database

b)

To store the database schema

c)

To ensure data consistency

d)

To prevent deadlock

6.

Which property of transactions ensures that all operations of a transaction are completed?

a)

Atomicity

b)

Consistency

c)

Isolation

d)

Durability

7.

What does the consistency property of transactions ensure?

a)

Only valid data following all rules and constraints will be written in the database

b)

Data used during the execution of a transaction cannot be used by another transaction

c)

Once transaction changes are done and committed, they cannot be undone or lost

d)

All operations of a transaction should be completed

8.

What does the isolation property of transactions ensure?

a)

All operations of a transaction should be completed

b)

Only valid data following all rules and constraints will be written in the database

c)

Data used during the execution of a transaction cannot be used by another transaction

d)

Once transaction changes are done and committed, they cannot be undone or lost

9.

What does the durability property of transactions ensure?

a)

All operations of a transaction should be completed

b)

Only valid data following all rules and constraints will be written in the database

c)

Data used during the execution of a transaction cannot be used by another transaction

d)

Once transaction changes are done and committed, they cannot be undone or lost

10.

What is a dirty read in transaction isolation levels?

a)

When a transaction reads data that is not committed yet

b)

When a transaction reads inconsistent data

c)

When a transaction reads data that has been modified by another transaction

d)

When a transaction reads additional rows that satisfy a query

11.

What is a non-repeatable read in transaction isolation levels?

a)

When a transaction reads data that is not committed yet

b)

When a transaction reads inconsistent data

c)

When a transaction reads data that has been modified by another transaction

d)

When a transaction reads additional rows that satisfy a query

12.

What is a phantom read in transaction isolation levels?

a)

When a transaction reads data that is not committed yet

b)

When a transaction reads inconsistent data

c)

When a transaction reads data that has been modified by another transaction

d)

When a transaction reads additional rows that satisfy a query

13.

Which isolation level allows dirty reads?

a)

READ UNCOMMITTED

b)

READ COMMITTED

c)

REPEATABLE READ

d)

SERIALIZABLE

14.

Which isolation level prevents dirty reads and non-repeatable reads?

a)

READ UNCOMMITTED

b)

READ COMMITTED

c)

REPEATABLE READ

d)

SERIALIZABLE

15.

Which isolation level prevents dirty reads, non-repeatable reads, and phantom reads?

a)

READ UNCOMMITTED

b)

READ COMMITTED

c)

REPEATABLE READ

d)

SERIALIZABLE

16.

A (a)   is a collection of operations that form a single logical unit of work.

17.

In a database, a transaction may consist of several operations, such as writing a new customer's invoice, reducing the quantity of on-hand products in inventory, and updating the sales. If one operation is not successful, all other operations will be (a)   .

18.

A database request is equivalent to a single (a)   statement in an application program or transaction.

19.

The database consistent state satisfies the constraints specified in the (a)   .

20.

A transaction log is used by a DBMS to keep track of all the transactions that update the (a)   .

21.

(a)   requires that all operations of a transaction should be Completed.

22.

(a)   ensures that only valid data following all rules and constraints will be written in the Database.

23.

(a)   ensures that data used during the execution of a current transaction cannot be used by another transaction until the first one is completed.

24.

(a)   ensures that once transaction changes are done and committed, they cannot be undone or lost.

25.

Concurrency control is used to manage interactions among (a)   transactions executing simultaneously.

26.

____ ______ occurs when two concurrent transactions are updating the same data element, and one of the updates is lost.

(a)  

27.

Uncommitted data occurs when two transactions are executed concurrently, and the first transaction is rolled back after the second transaction has already accessed the (a)   data.

28.

(a)   retrievals occur when a transaction accesses data before and after one or more other transactions finish working with the same data.

29.

The number of BEGIN TRANSACTION statements that have occurred on the current connection can be retrieved using (a)   .

30.

signals that the transaction has ended unsuccessfully, and any changes or effects must be undone.

(a)  

31.

A (a)   is less restrictive than a table-level lock and allows concurrent transactions to access different rows of the same table.

32.

(a)   involves aborting a transaction requesting a new lock when there is a possibility that a deadlock can occur.

33.

(a)   marks the beginning of transaction execution.

34.

(a)   signals a successful end of the transaction, and any changes executed by the transaction can be safely committed to the database.

35.

  1. _allows a transaction to read data that is not committed yet.



(a)  

36.

(a)   ensures that no other transactions can modify or delete data that has been read by the current transaction until the current transaction commits.

37.

(a)   isolation ensures that data read by a transaction is prevented from being updated or deleted by any other transaction.

38.

(a)   is a point in a transaction when you can roll the transaction back to a certain point without rolling back the entire transaction.

39.

In transaction isolation level (a)   , transactions can read dirty data.

40.

(a)   allows a transaction to read data that is not committed yet.

41.

What is the primary purpose of a data warehouse?

a)

Storing real-time transaction data

b)

Managing day-to-day operations

c)

Enabling business intelligence activities and analytics

d)

Handling data retrieval for transaction processing

42.

What is the "subject-oriented" characteristic of a data warehouse?

a)

It focuses on database design

b)

It emphasizes data integration

c)

It analyzes data about a particular subject or functional area

d)

It stores data from multiple sources in one place

43.

Which characteristic of data warehouses represents the ability to organize data based on time, such as weekly or monthly data updates?

a)

Non-volatile

b)

Integrated

c)

Subject-Oriented

d)

Time-variant

44.

What is the role of Extraction, Transformation, and Loading (ETL) tools in data warehousing?

a)

Managing data access tools

b)

Designing data models

c)

Performing data conversions and transformations

d)

Generating business reports

45.

What is the purpose of metadata in a data warehouse?

a)

It stores data values

b)

It describes the data warehouse and its usage

c)

It contains primary data for analysis

d)

It provides user access to the data

46.

Which tool is used by corporate users to produce corporate reports for analysis and decision-making?

a)

Data mining tools

b)

Application development tools

c)

Query and reporting tools

d)

OLAP tools

47.

What is a data mart in the context of data warehousing?

a)

A small, single-subject data warehouse subset for specific user groups

b)

The primary data warehouse used by all departments

c)

A tool for data integration

d)

A database for real-time transaction data

48.

Which benefit of a data warehouse allows users to analyze different time periods and trends for making future predictions?

a)

Saving time on data retrieval

b)

Consistent information on cross-functional activities

c)

Integration of data sources

d)

Storing a large amount of historical data

49.

What is a star schema in data warehousing?

a)

A data modeling technique used in OLAP

b)

A data-mining tool

c)

A data warehouse access tool

d)

A data integration technique

50.

Which type of OLAP (Online Analytical Processing) works directly with relational databases and stores facts and dimension tables as relations?

a)

Relational OLAP (ROLAP)

b)

Multi-dimensional OLAP (MOLAP)

c)

Business OLAP (BOLAP)

d)

Technical OLAP (TOLAP)

51.

What is the primary purpose of data mining?

a)

Storing massive amounts of data

b)

Managing day-to-day operations

c)

Uncovering hidden trends, patterns, and relationships in data

d)

Creating metadata for data warehouses

52.

In the data mining implementation process, which step involves selecting the appropriate data, cleaning, and integrating data from multiple sources?

a)

Business Understanding

b)

Data Preparation

c)

Data Understanding

d)

Modeling

53.

Which data mining technique is used to identify data that are like each other and understand the differences and similarities between the data?

a)

Classification

b)

Clustering

c)

Regression

d)

Association Rules

54.

What is the "sequential patterns" data mining technique used for?

a)

Identifying data outliers

b)

Discovering hidden correlations

c)

Analyzing historical data for trends

d)

Creating business reports

55.

What is the main characteristic of OLAP tools that differentiates them from OLTP (Online Transaction Processing) systems?

a)

Multi-dimensional data analysis

b)

Data storage

c)

Transaction management

d)

Database administration