Computer Knowledge
Database Management Systems
5,543 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
-
Join stage
-
Merge stage
-
Look up stage
-
None of the above
C
Correct answer
Explanation
The Lookup stage can combine data from heterogeneous sources including databases like DB2 or Oracle with sequential files. It performs reference lookups by matching key fields between the main input stream and reference data sources. Join stages require homogeneous inputs, and Merge stages only combine sorted datasets.
-
Read Uncommitted
-
Read Committed
-
Repeatable Read
-
Snapshot
-
Serializable
A
Correct answer
Explanation
The Read Uncommitted isolation level does not issue shared locks and does not honor exclusive locks, allowing transactions to read data that has been modified by other transactions but not yet committed (dirty reads).
B
Correct answer
Explanation
DBCC CHECKDB is a comprehensive command that performs database validation including checks done by DBCC CHECKALLOC (allocation structure validation), CHECKTABLE, and CHECKCATALOG. Running CHECKDB already includes allocation checks, so running CHECKALLOC separately is redundant. CHECKDB is the all-in-one integrity check command for production databases.
A
Correct answer
Explanation
Relational databases require transaction logging to ensure ACID properties, particularly durability and recovery. Thus, there must be at least one transaction log file (or log group) associated with each database.
C
Correct answer
Explanation
The XML data type in SQL Server 2005 can store up to 2 GB per instance, matching the maximum size for LOB types (varchar(max), nvarchar(max), varbinary(max)). This 2 GB limit applies to the XML document stored in the column. XML data is stored in an internal binary representation that preserves Unicode fidelity.
-
@@MAX_CONNECTIONS
-
@@TRANCOUNT
-
@@CONNECTIONS
-
None of the above
-
sp_who
-
sys.dm_tran_locks
-
@@lock_timeout
-
sp_lock
-
None of the above
D
Correct answer
Explanation
sp_lock is a legacy system stored procedure that returns information about locks. However, it has been deprecated since SQL Server 2005, and the recommended approach is to use the sys.dm_tran_locks DMV, which provides more detailed and current lock information.
-
Complex Java coding
-
Avoid SQL query
-
Both of the above
-
None of the above
C
Correct answer
Explanation
Hibernate eliminates the need for complex JDBC code and direct SQL queries by providing object-oriented querying mechanisms like HQL and Criteria API. This simplifies data access and reduces boilerplate code while maintaining database independence.
-
Dynamic update
-
Optimistic locking
-
Automatic dirty checking
-
traversing associations
-
All the above
-
None of the above
E
Correct answer
Explanation
Hibernate provides dynamic update (only updates modified columns), optimistic locking (version-based concurrency control), automatic dirty checking (detects and saves only changed fields), and automatic association traversal through lazy/eager loading. These features collectively improve performance and simplify application code.
-
Horrible database design(i.e composite keys)
-
application is mass operation
-
Both of the above
-
None of the above
C
Correct answer
Explanation
Hibernate may be unsuitable for applications with poorly designed databases using complex composite keys, which are difficult to map. It's also inefficient for bulk/mass operations where direct SQL or batch processing performs significantly better than ORM-based row-by-row operations.
-
Minimize LOC
-
Structural mapping more robust
-
Powerful queries
-
Code can be run and/or tested inside the "Container"?
-
All the above
-
Only option 1, 2 and 3 is correct
F
Correct answer
Explanation
Hibernate reduces lines of code through ORM automation, provides robust structural mapping between objects and tables, supports powerful HQL and Criteria queries, and enables testing within containers. However, container-agnostic testing is not exclusive to Hibernate. The answer correctly identifies options 1, 2, and 3 as Hibernate-specific benefits.
-
Identification
-
Procedure
-
Data
-
Environment
C
Correct answer
Explanation
The Linkage Section is part of the Data Division in COBOL and is used to define data items that are passed between programs or as parameters to a program. It's not part of Identification, Procedure, or Environment divisions.
B
Correct answer
Explanation
JDBC stands for Java Database Connectivity, not Java Database Connection. The 'Connectivity' vs 'Connection' distinction makes the statement false. JDBC is a Java API that defines how a client may access a database, specifically relational databases.
-
A. Create Customer Relationships
-
B. Create Account Relationship
-
C. Merge Customers
-
D. None of the above
C
Correct answer
Explanation
Merging customers is the standard process in Oracle Receivables to consolidate duplicate customer records, clean up data, and merge accounts or sites. Creating relationships merely links different customer accounts without resolving duplication issues.
-
Standard Job
-
Non-standard Jobs
-
Service Jobs
-
Both Option 1 and 2
D
Correct answer
Explanation
Oracle Work in Process supports two primary types of discrete jobs: Standard discrete jobs (used for regular production) and Non-standard discrete jobs (used for repairs, prototypes, or experimental work).