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. 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 call session.getTransaction().commit(). This retrieves the current Transaction object associated with the session and commits it. The other options don't represent valid Hibernate API methods.

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 are flexible - one mapping file can contain mappings for multiple tables. You're not required to have separate files for parent, child, or each table. A single mapping file can define multiple class mappings.

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

Hibernate can map multiple databases by defining multiple elements in the configuration. Each session-factory represents a separate database connection with its own dialect and connection properties. You cannot use multiple dialects for a single session factory.

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 in a Hibernate application, you must update the driver class, the connection URL, and the SQL dialect property to match the target database system. Thus, all of the above properties must be changed.

Multiple choice technology web technology
  1. Native SQL

  2. HSQL

  3. Both

  4. None of the above

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

Hibernate supports multiple query approaches: Native SQL (direct database queries) and HQL (Hibernate Query Language, an object-oriented query language). Both can be used depending on the use case, giving developers flexibility in how they query data.

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

Changing the underlying database system requires updating multiple properties: the driver class (connection.driver_class) to load the correct JDBC driver, the connection URL (connection.url) to point to the new database, and the dialect property to use the appropriate SQL dialect for optimal performance.

Multiple choice technology web technology
  1. Use the output cache.

  2. Use the cache object.

  3. Use the ASP.NET central cache.

  4. Use the client cache

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

For caching historical library information retrieved from a database, using the Cache object provides the best performance. The Cache object allows explicit control over what data is cached, duration, and expiration policies. Output cache is for entire page responses, ASP.NET central cache is not a standard term, and client cache relies on browser caching which is less reliable for server-fetched data.

Multiple choice technology programming languages
  1. SYS1.LINKLIB

  2. SYS1.SOTREPROC

  3. SYS1.CATPROC

  4. SYS1.PROCLIB

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

SYS1.LINKLIB contains the load modules (executable programs) for IBM system utilities and commonly-used programs. Option B appears to be a typo for SYS1.SYSPROC which contains cataloged procedures. SYS1.PROCLIB contains JCL procedure definitions, not load modules.

Multiple choice technology programming languages
  1. ODBC can be directly used with Java because it uses a C interface

  2. ODBC makes uses of pointers which has been totally removed from JAVA

  3. ODBC is from Microsoft while JDBC is from java applications

  4. ODBC requires manual installation of the ODBC driver manager and driver on all client machines. While for JDBC driver are written in Java and JDBC code is automatically installable, secure and portable on all platforms.

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

The question asks which statement does NOT correctly define the JDBC-ODBC difference. Option A claims 'ODBC can be directly used with Java' which is FALSE - ODBC cannot be directly used with Java because it uses a C interface. This makes A the incorrect statement, which is what the question seeks. Options B, C, D correctly describe real differences (pointers removed from Java, vendor origins, manual vs automatic installation).

Multiple choice technology web technology
  1. Database Mirroring

  2. Integration Services

  3. Notification Services

  4. All of the above

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

SQL Server 2005 Notification Services was designed for sending personalized messages to large groups. Database Mirroring is for high availability, and Integration Services is for ETL/data transformation.

Multiple choice technology web technology
  1. SQL Server 2005 Developer Edition

  2. SQL Server 2005 Enterprise Edition

  3. SQL Server 2005 Express Edition

  4. SQL Server 2005 Standard Edition

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

When upgrading from SQL Server 7.0 Standard Edition SP4, you can only upgrade to SQL Server 2005 Standard Edition. You cannot directly upgrade to Developer, Express, or Enterprise editions from a Standard edition base.

Multiple choice technology web technology
  1. DTUTIL

  2. BCP

  3. Object Explorer

  4. None of the above

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

The correct tool for running T-SQL queries from command prompt in SQL Server 2005 is sqlcmd, which is not listed among the options. DTUTIL is used for SSIS package utilities, BCP is for bulk data copy operations, and Object Explorer is a GUI component in SQL Server Management Studio.