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 mainframe
  1. Domain Integrity

  2. Entity Integrity

  3. Technology Integrity

  4. Referential Integrity

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

In relational database theory, the three types of integrity are Domain Integrity (valid values for a column), Entity Integrity (uniqueness of rows/primary keys), and Referential Integrity (foreign key relationships). 'Technology Integrity' is not a recognized concept in database theory.

Multiple choice technology programming languages
  1. SQL Server Management Studio

  2. CLR User Defined Type

  3. CLR Stored Procedure

  4. T-SQL View

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

CLR Stored Procedures enable developers to write database logic using .NET languages, which is ideal for complex mathematical computations and accessing external system resources.

Multiple choice technology programming languages
  1. SQLServer.NET data provider is faster than any other provider.

  2. OLE-DB.NET is universal for accessing various data sources other than SQL Server also, but it’s a .NET layer on top of OLE layer, so is comparatively slow.

  3. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines.

  4. None of the above

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

All three statements are accurate. SQL Server.NET is optimized and fastest for SQL Server. OLE-DB.NET adds a layer making it slower but universal. ODBC.NET is indeed deprecated for legacy compatibility. Therefore none are false.

Multiple choice technology programming languages
  1. xp command shell can be enabled by sysadmin by executing following: EXEC sp_configure 'xp_cmdshell', 0;

  2. xp command shell is enabled by default;

  3. xp command shell can be used to run bcp utility

  4. None of above

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

xp_cmdshell is an extended stored procedure that executes operating system commands from SQL Server, so it can invoke any command-line utility including bcp (Bulk Copy Program). For security, xp_cmdshell is disabled by default and must be explicitly enabled with sp_configure, setting the value to 1 (not 0, which disables it).

Multiple choice technology programming languages
  1. SQL Server Management Studio

  2. CLR User Defined Type

  3. CLR Stored Procedure

  4. T-SQL View

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

CLR Stored Procedures allow developers to write database logic using .NET languages, making them ideal for complex calculations, string manipulation, and accessing external system resources that are difficult in T-SQL.

Multiple choice technology web technology
  1. a. Using weblogic.Admin utility with parameter GC=True

  2. b. Examining Domain Log

  3. c. Starting JVM using –verbose:gcswitch

  4. d. None of the above

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

The -verbose:gc JVM flag causes the Java Virtual Machine to output detailed information about each garbage collection event, including timing statistics and memory reclaimed. This is a standard JVM feature independent of any WebLogic-specific tools or utilities - the GC information appears in the JVM's stdout/stderr, not WebLogic logs.

Multiple choice technology web technology
  1. a. 15

  2. b. 25

  3. c. 10

  4. d. -1

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

Production mode uses conservative default settings to protect database and system resources. A default connection pool size of 25 provides reasonable throughput for production workloads while preventing resource exhaustion - much lower than development defaults, which typically allow more aggressive pooling for testing convenience.

Multiple choice technology databases
  1. Compiled form of application plan

  2. Compiled form of Database Requests

  3. Collection of Sql statements

  4. Collection of Application plansCollection of Application plans

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

In DB2, a package is a database object containing control structures compiled from Database Request Modules (DBRMs), which are generated during the precompilation of application programs containing embedded SQL.

Multiple choice technology databases
  1. Compiles the SQL statements

  2. Complies the list of packages into application plan

  3. Stored the application plan and packages into Directory

  4. Chooses the best access path from catalog tables

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

To answer this question, the user needs to know about the role of an optimizer in database management systems.

The optimizer is a component of a database management system (DBMS) that is responsible for generating the most efficient execution plan for a given SQL query.

Now let's go through each option and explain why it is right or wrong:

A. Compiles the SQL statements: This option is partially correct. The optimizer does not compile SQL statements, but it does analyze the query and generates an execution plan to execute the SQL statement.

B. Complies the list of packages into application plan: This option is incorrect. The job of the precompiler is to compile the list of packages into an application plan, not the optimizer.

C. Stored the application plan and packages into Directory: This option is incorrect. The job of the precompiler is to store the application plan and packages into a directory, not the optimizer.

D. Chooses the best access path from catalog tables: This option is correct. The optimizer analyzes the query and chooses the best access path from a set of possible access paths based on the metadata stored in the catalog tables.

Therefore, the correct answer is:

The Answer is: D

Multiple choice technology databases
  1. Loaded table or partition

  2. Discard file of rejected records

  3. Summary report of errors encountered

  4. Updated system catalog table stats

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

To answer this question, the user needs to be familiar with the LOAD utility in database systems.

The LOAD utility is used to load data from external files into database tables. It is commonly used for bulk inserts of large amounts of data.

Now, let's go through each option to determine which one is not an output of the LOAD utility:

A. Loaded table or partition: This is a valid output of the LOAD utility. When the LOAD utility is successful, it loads data from external files into database tables or partitions.

B. Discard file of rejected records: This is a valid output of the LOAD utility. When the LOAD utility encounters records that cannot be loaded into the target table or partition, it writes those records to a discard file.

C. Summary report of errors encountered: This is a valid output of the LOAD utility. When the LOAD utility encounters errors while loading data, it generates a summary report of those errors.

D. Updated system catalog table stats: This is not an output of the LOAD utility. The LOAD utility is used for inserting data into tables, not updating system catalog table stats. The job of updating system catalog statistics falls under the responsibility of the database management system.

Therefore, the answer is:

The Answer is: D

Multiple choice technology databases
  1. LOAD

  2. UNLOAD

  3. REORG

  4. RUNSTATS

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

RUNSTATS is the DB2 utility that updates statistical information about tablespaces and indexes in the system catalog tables. This information is crucial for the query optimizer to generate efficient execution plans. LOAD, UNLOAD, and REORG serve different purposes.