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 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. 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 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.

Multiple choice technology testing
  1. A. The SQL query

  2. B. The identification number of the database

  3. C. The number of rows returned from the query

  4. D. The connectionstring used to connect to the database

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

The Source property of a database checkpoint contains the SQL query that retrieves data for comparison. This query defines which data to fetch from the database for checkpoint validation. The connection string is in ConnectionString property, and the number of rows or ID are not represented by Source.

Multiple choice technology testing
  1. A. Trigger

  2. B. Recovery Operation

  3. C. Recovery Scenario Name

  4. D. The Function used in the scenario

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

In QTP/UFT Recovery Scenarios, the Trigger must be defined first as it specifies the event that activates the recovery scenario (e.g., a popup window appears or an application crash). Only after defining the trigger can you specify the recovery operations and other settings. The Recovery Scenario Name and Function definitions come after the trigger is established.

Multiple choice technology testing
  1. A. Fields

  2. B. Execute

  3. C. Connection, RecordSet

  4. D. Open, ConnectionString

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

ADO (ActiveX Data Objects) uses Connection objects to establish database connectivity and Recordset objects to manipulate and query the returned data. These two objects form the foundation of ADO database operations - you first connect, then work with recordsets to read or modify data. Fields is a property of Recordset, Execute is a method, and Open/ConnectionString are properties/methods of Connection, not standalone objects.

Multiple choice technology testing
  1. A. Fields

  2. B. Execute

  3. C. Connection, RecordSet

  4. D. Open, ConnectionString

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

ADO (ActiveX Data Objects) uses Connection objects to establish database connectivity and Recordset objects to manipulate and query the returned data. These two objects form the foundation of ADO database operations - you first connect, then work with recordsets to read or modify data. Fields is a property of Recordset, Execute is a method, and Open/ConnectionString are properties/methods of Connection, not standalone objects.