Computer Knowledge
Database Management Systems
5,344 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
Data-flow design
-
Structural decomposition
-
Detailed design description
-
None of these
C
Correct answer
Explanation
This type of design model in Function-oriented design describes the entities in the design that may be recorded in a data dictionary.
-
SQL Work Area
-
Session Memory
-
Private SQL Area
-
None of these
B
Correct answer
Explanation
Session Memory consists of memory area that holds session's variables and session-related information.
-
jamming
-
password
-
documentation
-
record lock
D
Correct answer
Explanation
When multiple users try to update the same record simultaneously, record locking prevents conflicts by ensuring only one transaction can modify the record at a time. This concurrency control mechanism prevents the lost update problem where two updates overwrite each other. Locking maintains data integrity and consistency in multi-user database environments.
-
deadlock
-
lost update
-
uncommitted dependency
-
inconsistent data
B
Correct answer
Explanation
Locking prevents the lost update problem, which occurs when two transactions read the same data and then overwrite each other's updates. By locking data before updating, one transaction waits for the other to complete, ensuring updates are applied sequentially. Deadlock (A) is a potential problem with locking, not a solution. Uncommitted dependency (C) and inconsistent data (D) are other concurrency issues that locking addresses.
-
Authentication through database links
-
Distributed database security
-
Auditing database links
-
Administration tools
-
Site autonomy
D
Correct answer
Explanation
These tools are used to manage an Oracle distributed database system.
'Site autonomy' means each server participating in a distributed database is administered independently from all other databases.
-
A transaction writes a data item after it is read by an uncommitted transaction.
-
A transaction reads a data item after it is read by an uncommitted transaction.
-
A transaction reads a data item after it is written by a committed transaction.
-
A transaction reads a data item after it is written by an uncommitted transaction.
D
Correct answer
Explanation
This may leave the transactions vulnerable to dirty reads, phantom reads, etc. in the database system.
-
Atomicity
-
Isolation
-
Durability
-
Exchanging
D
Correct answer
Explanation
Exchanging is not a property of a transaction. The ACID properties of a transaction are:
- Atomicity
- Isolation
- Durability
- Consistency
-
After the successful execution of the transaction
-
After the discovery that normal execution can no longer proceed
-
When it is in its initial state
-
After the final statement has been executed
-
After the transaction has been rolled back
A
Correct answer
Explanation
This option is correct as a transaction is committed only after its successful completion.
-
Rollback
-
Commit
-
Remote procedure calls
-
System change number
-
Savepoint
C
Correct answer
Explanation
These are the calls made in Oracle to perform work at some remote database.
-
checkpoint
-
backup mechanism
-
shadow paging
-
cascading rollback
-
recovery
A
Correct answer
Explanation
This option is correct as checkpoints are the points scheduled at regular intervals, and involves operations like writing all the records from the main memory to secondary storage. Hence, it synchronizes database and t ransaction log files.
-
Active
-
Failed
-
Partially committed
-
Aborted
-
Committed
B
Correct answer
Explanation
This option is correct as the transaction is said to be in this state, when the normal execution can no longer proceed.
-
Aborted
-
Active
-
Partially committed
-
Failed
-
Committed
A
Correct answer
Explanation
This option is correct as when the execution of the transaction is stopped or aborted, it is rolled back to a state prior to its start.
-
Remote transaction
-
Distributed transaction
-
Two-phase commit mechanism
-
Global database name
-
None of these
C
Correct answer
Explanation
This transaction in distributed databases guarantees that all statements in a transaction either commit or rollback as a unit.
-
Tables
-
Treelike structures
-
Complex logical relationship
-
Records
A
Correct answer
Explanation
The relational database model is fundamentally based on tables (relations) that store data in rows and columns. Data is organized into tables with defined relationships between them through keys. While relational databases do store records, the defining characteristic is the tabular structure. Treelike structures describe hierarchical databases, and complex logical relationships exist in network databases, not relational ones.
B
Correct answer
Explanation
SQL is commonly categorized into 4 main types: DDL (Data Definition Language) for schema operations, DML (Data Manipulation Language) for data operations, DCL (Data Control Language) for permissions, and TCL (Transaction Control Language) for transaction management. Some classifications may include DQL separately, but 4 is the standard answer.