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

Multiple choice technology web technology
  1. Simple

  2. Bulk Logged

  3. Full

  4. All of the above

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

SQL Server 2005 supports three recovery models: Simple (minimal logging, auto-log truncation), Full (complete transaction logging, point-in-time recovery), and Bulk Logged (minimal logging for bulk operations). Since all three listed options are valid recovery models, 'All of the above' is correct.

Multiple choice technology web technology
  1. Allows fast and flexible indexing for keyword based query

  2. Provides a message based communication platform

  3. Supports sending Email from the database

  4. None of the above

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

Full Text Search in SQL Server 2005 provides specialized indexing and querying capabilities for text data stored in character columns. It enables fast linguistic searches for words and phrases, supporting features like stemming, thesaurus lookups, and proximity searches. Option B describes Service Broker and option C describes Database Mail, both unrelated features.

Multiple choice technology platforms and products
  1. Common Database (WPRCSDB)

  2. Messaging Engine Database (MEDB)

  3. Service Integration Bus Database (SIDB)

  4. Business Process Choreographer Database (BPEDB)

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

In WebSphere ESB, the message logger primitive stores messages in the Common Database (WPRCSDB). The other databases serve different purposes: MEDB for the messaging engine, SIDB for service integration bus configuration, and BPEDB for business process choreographer data.

Multiple choice technology platforms and products
  1. In the Business Process Choreographer Containers datasource configuration, ensure that the Create Tables option has been selected.

  2. Send the sibDDLGenerator to the database administrator to allow the generation of the createSchema.sql script to create the tables.

  3. When running the bpeconfig.jacl, set the -createDB option to no and following completion, supply the database administrator with the generated createSchema.sql script to create the tables.

  4. When running the bpeconfig.jacl, set the -createDB option to no and following completion, use the sibDDLGenerator to generate the createSchema.sql script to supply to the database administrator.

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

When database administrators restrict table creation permissions, the bpeconfig.jacl script with -createDB option set to 'no' will generate the createSchema.sql script. This script can be given to DBAs to execute tables creation under their authority, maintaining security while ensuring proper schema setup.