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 ssas basics
  1. Dimension

  2. Cube

  3. Fact

  4. None

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

In SQL Server Analysis Services (SSAS), the Cube is the fundamental unit of storage and analysis. It contains measures and dimensions that allow for multi-dimensional data exploration. Dimensions and Facts are components within a cube, but the cube itself is the primary container for the processed data.

Multiple choice ssas basics
  1. Perspective

  2. Attribute

  3. Dimension

  4. All

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

A Perspective in SSAS creates a simplified view of a cube by exposing only selected dimensions and measures while hiding others, making it easier for different user groups to work with relevant cube elements. Attributes are properties of dimensions, Dimensions are structural elements, and neither serves to reduce complexity.

Multiple choice asp.net
  1. InProc

  2. in State Server

  3. in SQL Server

  4. None of the above

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

To answer this question, the user needs to know what session refers to in web development and the different ways in which session data can be stored.

In web development, session refers to a way of storing and maintaining user-specific data across multiple requests. This allows for a more personalized and customized user experience. Session data can be stored in different ways, including:

A. InProc: This option stores session data in memory on the web server. This is the default option in ASP.NET and is suitable for small-scale applications with a limited number of users. However, if the application is scaled up, this option may not be the best as it may lead to memory issues.

B. In State Server: This option stores session data in a separate process outside of the web server. This helps to reduce memory usage on the web server and allows for better scalability. However, it requires additional configuration and may impact performance.

C. In SQL Server: This option stores session data in a SQL Server database. This is a good option for large-scale applications with high traffic as it allows for better scalability and fault tolerance. However, it requires additional configuration and may impact performance.

D. None of the above: This option is incorrect as session data must be stored somewhere. If not in one of the above options, then it must be in a custom storage solution.

Therefore, the correct answer is:

The Answer is: A. InProc

Multiple choice rdbms
  1. Eliminate redundancy.

  2. Improve security.

  3. Improve efficiency.

  4. Minimize Errors.

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

Normalization of a database is used to eliminate redundancy and improve efficiency.

A. Eliminate redundancy: This option is correct. One of the main goals of database normalization is to eliminate or reduce redundancy in order to improve data consistency and reduce storage requirements. Redundancy can lead to data inconsistencies and inefficiencies in data management.

B. Improve security: This option is not directly related to normalization. While normalization can indirectly improve security by ensuring data integrity and reducing the risk of data inconsistencies, it is not its primary purpose.

C. Improve efficiency: This option is correct. Normalization helps improve the efficiency of data storage, retrieval, and manipulation operations by organizing data into properly structured tables and reducing data redundancy. This can lead to faster and more efficient query execution.

D. Minimize errors: This option is partially correct. Normalization can help minimize errors by reducing redundancy and ensuring data consistency. However, it is not its sole purpose, as efficiency and elimination of redundancy are also important goals.

Therefore, the correct answer is:

A. Eliminate redundancy.

Multiple choice rdbms
  1. Key dependencies.

  2. Relation dependencies.

  3. Database dependencies.

  4. All of these.

  5. None of these.

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

Functional dependencies generalize the concept of key dependencies in database normalization theory. A key dependency is a special case where the determinant is a candidate key. Option B (Relation dependencies) and C (Database dependencies) are not standard theoretical concepts in this context. Option D cannot be correct because A is specifically right, and E is unnecessary since A is valid.

Multiple choice rdbms
  1. Conceptual level data hiding.

  2. Physical level data hiding.

  3. External level data hiding.

  4. All of these.

  5. None of these.

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

Manager's salary hidden from employees exemplifies external level data hiding in the three-level database architecture. The external level (view level) provides different users with customized views of the same data - employees see their own data but not managerial salaries. Conceptual level describes the entire database structure, while physical level deals with storage details. The restriction is enforced at the external/view layer.

Multiple choice rdbms
  1. Data elements.

  2. Records & files.

  3. Record relationships.

  4. All of these.

  5. None of these.

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

A database schema describes the complete structure: data elements (fields/attributes), records and files (tables/entities), and the relationships between records (foreign keys, associations). Option D captures all three aspects comprehensively. Options A, B, and C are each partially correct but incomplete individually. The schema is the blueprint defining all these elements together.

Multiple choice rdbms
  1. Spread sheet program.

  2. Word processor program.

  3. Graphics program.

  4. All of these.

  5. None of these.

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

DBMS can import/export data to various external applications including spreadsheets (Excel), word processors (Word for reports), and graphics programs (for visualization). Option D correctly identifies all these as valid data transfer targets. The DBMS acts as a central data repository that can exchange information with diverse applications in the enterprise ecosystem.

Multiple choice rdbms
  1. Atomicity, Constant, Isolation, Durability.

  2. Atomicity, Consistency, Isolation, Duration.

  3. Atomicity, Consistency, Isolation, Durability.

  4. Atomicity, Consistency, Indexing, Durability.

  5. Atomicity, Constant, Indexing, Durability.

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

ACID properties are fundamental to database transactions. Atomicity ensures all operations in a transaction succeed or fail together. Consistency maintains data validity, Isolation prevents concurrent transaction interference, and Durability guarantees committed data persists even after system failure.

Multiple choice rdbms
  1. Scalable.

  2. Robust.

  3. Platform independent.

  4. Distributed.

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

Platform independence means software can run on multiple operating systems without modification. Scalability refers to handling increased load, robustness means stability under stress, and distributed involves multiple machines. A DBMS running on different operating systems is platform independent.

Multiple choice rdbms
  1. Microsoft SQL Server.

  2. Microsoft Access.

  3. MySQL.

  4. Oracle.

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

MySQL is the most widely used open source DBMS globally. Microsoft SQL Server and Oracle are commercial proprietary databases, while Microsoft Access is a desktop database product. Open source means the source code is freely available for modification and distribution.

Multiple choice sql
  1. Normalization

  2. Data Integrity

  3. Materialized Views

  4. All of the above

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

ON UPDATE CASCADE is a referential integrity constraint that automatically updates child records when the parent key changes. This ensures data remains consistent across related tables. Normalization reduces redundancy, materialized views pre-compute results, and the cascade specifically serves integrity.

Multiple choice sql
  1. Tables contain one or more rows

  2. Rows contain one or more database of information

  3. Databases contain one or more tables

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

Tables contain rows (also called records), and rows contain columns (fields) that hold actual data values. The statement 'Rows contain one or more database of information' is false - rows contain individual data elements (fields/columns), not entire databases. Databases contain tables, tables contain rows.

Multiple choice sql
  1. Tables

  2. Columns

  3. Rows

  4. Databases

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

Columns define the specific data attributes like name, address, or phone number. Tables organize data, rows represent individual records, and databases contain tables. The actual data elements (name, address, phone) are stored in columns.

Multiple choice db2
  1. Sub-second response time

  2. Heterogeneous data sources

  3. Voluminous historical data

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

To answer this question, the user needs to know the characteristics of a data warehouse.

A data warehouse is a large, centralized repository of data that is used for analysis and decision-making. It is designed to support business intelligence (BI) activities, such as reporting, data mining, and online analytical processing (OLAP).

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

A. Sub-second response time: This option is not a characteristic of a data warehouse. In fact, data warehouses are typically optimized for complex queries that involve large volumes of data, which can take some time to execute. They are not designed to provide sub-second response times.

B. Heterogeneous data sources: This is a characteristic of a data warehouse. Data warehouses are designed to integrate data from a wide variety of sources, such as databases, flat files, and external systems. This allows organizations to consolidate their data into a single repository for analysis.

C. Voluminous historical data: This is a characteristic of a data warehouse. Data warehouses are designed to store large volumes of historical data, which can be used for analysis and decision-making. This historical data is typically used to identify trends, patterns, and insights that can inform business strategies.

Therefore, the answer is: A. Sub-second response time.