wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Information Management Prefinal Exam

Total questions: 40

Worksheet time: 30mins

Name
Class
Date
1.

What is a transaction in a DBMS?

a)

A set of SQL commands

b)

A logical group of database operations

c)

A database schema

d)

A file stored in the database

2.

Which ACID property ensures that a transaction's changes are permanent?

a)

Atomicity

b)

Consistency

c)

Isolation

d)

Durability

3.

What does the 'A' in ACID stand for?

a)

Access

b)

Atomicity

c)

Association

d)

Action

4.

When does a transaction enter the committed state?

a)

After a system failure

b)

After changes are permanently saved to the database

c)

During a read operation

d)

When the system is idle

5.

Which recovery technique uses a log to restore a database after a system failure?

a)

Buffering and Caching

b)

Shadow Paging

c)

Log-based recovery

d)

Concurrency Control

6.

In a system using immediate update, what happens if a rollback is initiated during a transaction?

a)

The database remains unchanged

b)

The log is destroyed and changes are discarded

c)

The old state of data is restored from the log

d)

The system terminates all active transactions

7.

What does the isolation property of ACID ensure in a multi-transaction environment?

a)

Data integrity is maintained by reverting incomplete transactions

b)

No changes are visible until a transaction is committed

c)

Transactions can access and modify the same data simultaneously

d)

Transactions must be executed in the order they are submitted

8.

Which of the following best describes a partially committed transaction?

a)

A transaction that has completed execution but not yet committed

b)

A transaction that failed during execution

c)

A transaction that is active and reading or writing data

d)

A transaction that has been aborted

9.

How does concurrency control prevent conflicts in a database?

a)

By logging changes made during a transaction

b)

By using locking mechanisms to restrict access to data

c)

By buffering transactions for future execution

d)

By applying checkpoints at regular intervals

10.

In a DBMS, what is the main function of the buffer manager?

a)

To manage concurrent access to the database

b)

To log all database transactions

c)

To store and transfer data between memory and disk

d)

To schedule and prioritize transactions

11.

Which ACID property ensures that a transaction transforms the database from one consistent state to another?

a)

Isolation

b)

Atomicity

c)

Consistency

d)

Durability

12.

What would happen if the recovery mechanism in a DBMS failed to maintain atomicity during a system crash?

a)

The database would become permanently inaccessible

b)

Partially updated data would be visible, leading to inconsistencies

c)

All transaction logs would be erased

d)

Data recovery would require manual intervention

13.

How does log-based recovery use checkpoints to ensure efficient recovery in case of a system failure?

a)

By skipping uncommitted transactions and re-executing successful ones

b)

By restoring the entire database from scratch using shadow paging

c)

By restoring data starting from the last checkpoint to minimize recovery time

d)

By removing failed transactions and archiving the logs

14.

If a transaction fails during the committed state, which mechanism ensures the durability of the transaction?

a)

Shadow paging

b)

Immediate rollback

c)

Transaction logging and recovery

d)

Buffering and caching

15.

In a timestamp-based concurrency control protocol, what happens when two conflicting transactions have the same timestamp?

a)

Both transactions are aborted

b)

The system assigns a new timestamp to both transactions

c)

The transaction with the older timestamp is given priority

d)

Both transactions are serialized and executed simultaneously

16.

What is a distributed database?

a)

A single database file located in one site

b)

A database spread across multiple physical locations

c)

A database stored only in cloud environments

d)

A database accessible from a single computer

17.

Which of the following is true about a centralized database?

a)

Data is distributed across multiple locations

b)

It involves multiple databases connected via a network

c)

It is a single database file located at one site

d)

It synchronizes data across all nodes

18.

What does the two-phase commit (2PC) operation ensure in a distributed transaction?

a)

It splits data into partitions for better access

b)

All operations are completed successfully, or none are

c)

Data is copied and stored across multiple nodes

d)

The database is horizontally scalable

19.

What feature of distributed storage allows data to be copied and stored across multiple nodes?

a)

Partitioning

b)

Replication

c)

Query processing

d)

Elastic scalability

20.

What is one advantage of using a distributed storage system over a centralized one?

a)

Lower redundancy

b)

Improved scalability and cost efficiency

c)

Higher latency in accessing data

d)

Single-point failure prevention

21.

Which type of distributed storage system wraps data into unique objects for storage and retrieval?

a)

Block storage

b)

Distributed file system

c)

Object storage

d)

Network-attached storage

22.

In a distributed database, how is query processing optimized?

a)

By performing all operations at a single node

b)

By distributing tasks across the nodes for efficient execution

c)

By limiting the number of queries processed at one time

d)

By using only homogeneous DBMS products

23.

What is the main role of a centralized DDBMS?

a)

Ensures data replication across all nodes

b)

Integrates distributed data logically as if stored in one location

c)

Stores data in the cloud for better access

d)

Manages multiple databases connected via a single server

24.

How does fault tolerance benefit a distributed storage system?

a)

It decreases system complexity

b)

It allows data to remain accessible even during node failures

c)

It reduces storage costs by minimizing redundancy

d)

It synchronizes data between servers in real time

25.

In a shared-disk architecture, what does each processor have access to besides the shared disk?

a)

Its own local memory system

b)

Another processor's resources

c)

A backup server

d)

Only shared network storage

26.

What is one key benefit of partitioning in distributed storage systems?

a)

Faster data replication across nodes

b)

Simplified query execution on individual nodes

c)

Fault tolerance through multiple copies of data

d)

Reducing latency by placing data closer to its users

27.

How would you design a homogeneous distributed database for a new organization seeking high scalability and performance?

a)

Use different DBMS products for incremental growth

b)

Implement the same DBMS software across all sites for parallel processing

c)

Deploy multiple cloud systems with various DBMS models

d)

Use heterogeneous DBMS systems for seamless integration

28.

In a heterogeneous distributed system, how do gateways function to improve system efficiency?

a)

By partitioning the data into blocks for faster access

b)

By converting the language and model of different DBMS into a relational system

c)

By allowing homogeneous systems to replicate data seamlessly

d)

By ensuring all queries are processed locally before distributed

29.

How would you resolve the issue of data translation between different DBMS products in a heterogeneous distributed system?

a)

By using a shared-nothing architecture to separate processing tasks

b)

By translating data structures and query languages between systems

c)

By storing all data in one node and replicating it later

d)

By avoiding the use of multiple DBMS products

30.

Which of the following best describes a shared-nothing system architecture in a parallel DBMS?

a)

Processors share memory but not disks

b)

Each processor uses its own disk and memory, communicating over a network

c)

All processors access the same disk through a shared channel

d)

Processors share all resources, including memory and storage

31.

Which of the following best describes atomicity in a transaction?

a)

All parts of a transaction must succeed or none at all

b)

Transactions are executed one at a time

c)

Data remains consistent after a crash

d)

Changes are stored permanently

32.

In a DBMS, what is the role of a transaction log?

a)

To store frequently accessed queries

b)

To maintain a history of all changes for recovery

c)

To manage memory allocation

d)

To improve data replication speed

33.

Which concurrency control method allows multiple transactions but ensures serializability?

a)

Locking protocol

b)

Shadow paging

c)

Buffer management

d)

Query optimization

34.

What is the main purpose of checkpointing in recovery management?

a)

To reduce the size of the transaction log

b)

To guarantee durability of transactions

c)

To mark a safe state for restarting recovery

d)

To terminate unfinished transactions

35.

Which of the following is NOT an advantage of distributed databases?

a)

Improved reliability

b)

Lower communication overhead

c)

Local autonomy

d)

Scalability

36.

What is the difference between replication and partitioning in distributed databases?

a)

Replication splits data across sites, partitioning duplicates data

b)

Replication duplicates data across sites, partitioning divides data into subsets

c)

Replication is used for indexing, partitioning for storage

d)

Both replication and partitioning mean the same thing

37.

Which component of DBMS is responsible for managing concurrency control?

a)

Recovery Manager

b)

Buffer Manager

c)

Transaction Manager

d)

File Manager

38.

What does consistency in ACID ensure?

a)

The database will not allow duplicate data

b)

The database remains valid before and after a transaction

c)

The transaction completes without interruption

d)

The database operations are executed in order

39.

In a distributed database, what is data fragmentation?

a)

Copying data across multiple servers

b)

Breaking a database into smaller logical pieces stored at different sites

c)

Storing redundant data for backup purposes

d)

Compressing large data into smaller blocks

40.

Which recovery technique avoids cascading rollbacks?

a)

Deferred update

b)

Immediate update

c)

Shadow paging

d)

Two-phase commit