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

Multiple choice technology
  1. Join stage

  2. Merge stage

  3. Look up stage

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. Read Uncommitted

  2. Read Committed

  3. Repeatable Read

  4. Snapshot

  5. Serializable

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. 1 GB

  2. 1024 KB

  3. 2 GB

  4. 500 MB

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. sp_who

  2. sys.dm_tran_locks

  3. @@lock_timeout

  4. sp_lock

  5. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Complex Java coding

  2. Avoid SQL query

  3. Both of the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Dynamic update

  2. Optimistic locking

  3. Automatic dirty checking

  4. traversing associations

  5. All the above

  6. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Horrible database design(i.e composite keys)

  2. application is mass operation

  3. Both of the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Minimize LOC

  2. Structural mapping more robust

  3. Powerful queries

  4. Code can be run and/or tested inside the "Container"?

  5. All the above

  6. Only option 1, 2 and 3 is correct

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. Identification

  2. Procedure

  3. Data

  4. Environment

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. A. Create Customer Relationships

  2. B. Create Account Relationship

  3. C. Merge Customers

  4. D. None of the above

Reveal answer Fill a bubble to check yourself
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.