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

Multiple choice technology mainframe
  1. Copy Rows between tables

  2. Object List Processing

  3. SQL Command Manager

  4. Display, Grant or Revoke DB2 Privileges

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Option 3.3 from the File-Aid DB2 Main Menu is the 'Copy' function, which allows copying rows between tables. Option 3.4 is for Object List Processing, 3.2 for SQL Command Manager, and 3.6 for privilege management.

Multiple choice technology programming languages
  1. Persistent

  2. Dynamic

  3. Static

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Lookup transformations support three cache types: Static (default, loads entire cache), Dynamic (updates cache during session), and Persistent (cache saved to disk for reuse). These optimize lookup performance for different use cases.

Multiple choice technology web technology
  1. Every table must have a separate mapping file

  2. Only parent table needs separate mapping fie

  3. Only child table need separate mapping file

  4. One mapping file can have mappings for one or more table.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Hibernate mapping files can define mappings for multiple classes/tables in a single .hbm.xml file. The root element can contain multiple elements, each mapping a different database table. This provides flexibility in organizing mappings - you can have one file per table or group related tables.

Multiple choice technology web technology
  1. One to one

  2. One to many

  3. Many to one

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The element in Hibernate mapping is used for collections requiring key-value pair semantics, typically for one-to-many or many-to-many associations where the collection needs to be indexed. While , , and can also map one-to-many relationships, is specifically designed when you need to maintain index-based access to the collection elements.

Multiple choice technology web technology
  1. connection.driver_class property should be changed

  2. connection.url property should be changed

  3. dialect property should be changed

  4. All the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To switch the underlying database system, you must update the JDBC driver class, the connection URL, and the Hibernate SQL dialect to match the target database system. Therefore, all of these properties must be changed.

Multiple choice technology web technology
  1. Using several dialect

  2. Using several <session-factory>

  3. Using several connection properties

  4. Not possible to map more than one database

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To map and connect to multiple databases in a single Hibernate application, you must configure and instantiate a separate `` for each database, as a single session factory is tied to one database configuration.

Multiple choice technology web technology
  1. session..commit()

  2. session.getCommitTransaction()

  3. session.getTransaction().commit()

  4. session.getTransaction().save()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To commit a transaction in Hibernate, you must first retrieve the active transaction from the session and then call its commit method using session.getTransaction().commit(). The other options are syntactically incorrect or do not exist.

Multiple choice technology web technology
  1. Hibernate does not support lazy initialization for detached objects.

  2. Access to a lazy association outside of the context of an open Hibernate session will result in an exception.

  3. Lazy fetching is way to avoid unnecessary column reads.

  4. All the above.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All statements are true: Hibernate cannot lazily initialize associations for detached objects, accessing a lazy association outside an active session throws a LazyInitializationException, and lazy fetching avoids loading unnecessary columns or associations.

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The DUMP function in Oracle returns a VARCHAR2 value containing the datatype code, length in bytes, and internal representation of an expression - it's for debugging, not backup. Oracle backup is done using Data Pump (EXPDP/IMPDP) or older export/import utilities.

Multiple choice technology web technology
  1. File used for database connectivity

  2. File used to define data format

  3. File used to hold lookup data

  4. File used to store Data Byte size

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A DB config file in Ab Initio stores connection parameters (like DSN, username, password, connection details) required to connect to databases for reading or writing data.