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 databases
  1. html file

  2. iqmsg file

  3. iqplan file

  4. log file

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

When QUERY_PLAN option is enabled, Sybase IQ writes the generated query plan to the iqmsg file, which is the standard message log file. This file contains diagnostic information including query plans for optimization analysis.

Multiple choice technology databases
  1. Longevity

  2. Selectivity

  3. Productivity

  4. Usefulness

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

Selectivity estimates the fraction of rows matching a predicate, crucial for cost-based optimization. Usefulness indicates how effectively a search argument filters the result set. Together they guide the optimizer in choosing efficient access paths.

Multiple choice technology databases
  1. Application

  2. Set of Books

  3. Organization

  4. Set Of Books

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

In Oracle E-Business Suite, a Set of Books is the entity that partitions data into logical units by defining the accounting context including currency, calendar, and chart of accounts. Organizations exist within a Set of Books, and Applications use the Set of Books for data segregation. Option B is correct - Set of Books provides the logical partitioning mechanism. Options A and C are incorrect because they represent different concepts in the hierarchy.

Multiple choice technology databases
  1. Index scan

  2. Table scan

  3. Bookmark lookup

  4. Index seek

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Index Scan (A) reads entire index instead of seeking specific values - indicates missing or non-selective index. Table Scan (B) reads entire table - worst performance indicator. Bookmark Lookup (C) or Key Lookup requires jumping from index to heap - expensive random I/O. Index Seek (D) is the efficient operation - it's NOT a performance problem indicator. These three (A, B, C) appearing in execution plans suggest missing indexes, non-selective predicates, or inappropriate index columns.

Multiple choice technology databases
  1. Dynamic Management Views (DMV)

  2. DBCC commands

  3. Query plans

  4. BCP

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Dynamic Management Views (DMVs) provide runtime statistics about query performance, resource utilization, and indexes. DBCC commands like DBCC SHOW_STATISTICS and DBCC FREEPROCCACHE help diagnose and manage performance. Query Plans reveal actual execution strategies and bottlenecks. BCP (Bulk Copy Program) is a data import/export utility, not a performance diagnostics tool. The first three are essential for identifying slow queries and high CPU usage.

Multiple choice technology programming languages
  1. Common place on build server to store Q++ code versions

  2. Common place in version control system to store Q++ code versions

  3. Common place in Model to store Component versions

  4. Common place in Model to store Component Interfaces

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

In specific model-driven development environments, the Model Shared Pool (MSP) serves as a centralized repository within the model to store and manage different versions of components. This allows developers to share, reuse, and track component versions across the project.

Multiple choice technology databases
  1. True

  2. False

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

Bitmap indexes are highly efficient for columns with low cardinality, where data is repetitive and contains many duplicate values (such as gender or marital status) across large tables. They use bit arrays to perform fast boolean operations, making them ideal for data warehousing environments.

Multiple choice technology databases
  1. Data Dynamic Link

  2. Data Description Language

  3. Data Definition Language

  4. Data Definition Link

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

DDL stands for Data Definition Language, which includes SQL commands that define database structures like CREATE, ALTER, DROP for tables, indexes, views, and schemas. It deals with schema definition rather than data manipulation (DML) or data control (DCL). Option D uses Link incorrectly, and B uses Description instead of Definition.

Multiple choice technology databases
  1. DBCC CHECKIDENT

  2. DBCC CHECKTABLE

  3. DBCC CHECKALLOC

  4. DBCC CHECKINTEG

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

DBCC CHECKTABLE checks the integrity of a table or indexed view, verifying page linking, structural integrity, and performing internal consistency checks. CHECKIDENT checks identity values, CHECKALLOC verifies allocation structures, and CHECKINTEG isn't a valid DBCC command.

Multiple choice technology databases
  1. True

  2. False

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

SQL Server 2005 introduced CLR integration, allowing users to create assemblies using .NET code. This was a major new feature that enabled stored procedures, functions, triggers, and types to be written in C#, VB.NET, or other .NET languages. The CREATE ASSEMBLY statement is used for this purpose.

Multiple choice technology databases
  1. DatabaseName.fun.FunctionName()

  2. DatabaseName.dbo.FunctionName()

  3. Exercise.fun.GetFullName();

  4. Exercise.dbo.GetFullName();

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

SQL Server functions are called using schema qualification: DatabaseName.SchemaOwner.FunctionName(). The default schema owner is dbo, so DatabaseName.dbo.FunctionName() is correct syntax. The schema qualification is required for UDFs (User-Defined Functions) when calling from outside the function's database.

Multiple choice technology databases
  1. datetime

  2. hierarchyid

  3. status

  4. views

  5. value

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Transact-SQL reserves certain keywords that have special meaning in the language. datetime is a data type keyword, hierarchyid is a data type for hierarchical data, and status is a reserved keyword. views and value are NOT reserved keywords in T-SQL. Knowing reserved words is important to avoid naming conflicts.