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
  1. Customer on a sales order

  2. Person responsible for a cost center

  3. Date

  4. Value of a Purchase Order

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

A slowly changing dimension (SCD) is a dimension whose attributes change gradually over time. The 'person responsible for a cost center' can change when responsibilities are reassigned, making it a classic SCD example. Dates don't change, and customer/order relationships or purchase order values aren't dimensions.

Multiple choice technology databases
  1. Atomicity,Consistency,Isolation and Durability

  2. Atomicity,Concurrently,Isolation,Durability

  3. Atomicity,Consistency,Incremental,Durability

  4. Atomicity,Concurrently,Incremental,Durability

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

ACID is an acronym for the four essential properties of database transactions: Atomicity (all or nothing), Consistency (valid state transition), Isolation (concurrent transactions don't interfere), and Durability (committed changes persist). Options B and D use Concurrently instead of Consistency, while C uses Incremental instead of Isolation.

Multiple choice technology web technology
  1. Caching objects

  2. Pure relational

  3. Outer join fetching

  4. Lazy collection initialization

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

'Pure relational' is the odd one out because it refers to a pure database approach without ORM, while the other options (caching, outer join fetching, lazy collection initialization) are all Hibernate ORM performance optimization techniques. Hibernate is specifically about bridging the gap between objects and relational databases, not staying purely relational.

Multiple choice technology databases
  1. Must begin with either a number or a letter

  2. Must be 1-30 characters long

  3. Should not be an Oracle Server reserved word

  4. Must contain only A-Z, a-z, 0-+, _, *, and #.

  5. Must contain only A-Z, a-z, 0-9, _, $, and #.
  6. Must begin with a letter

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

Oracle table names must be 1-30 characters long, must begin with a letter, should not be reserved words, and can only contain alphanumeric characters and the special characters _, $, and #.

Multiple choice technology databases
  1. Once created, a sequence belongs to a specific schema

  2. Once created, a sequence is linked to a specific table

  3. Once created, a sequence is automatically available to all users

  4. Only the DBA can control which squence is used by certain a table

  5. Once created, a sequence is automatically in all INSERT and UPDATE statements

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

Once created, a sequence is an independent database object that generates unique numeric values. It's not tied to any specific table or schema - it's a schema object but available to all users with privileges. Sequences must be explicitly referenced in statements - they're not automatically used.

Multiple choice technology databases
  1. The shared pool CANNOT be dynamically resized.

  2. The shared pool contains only fixed structures

  3. The shared pool consists of the library cache and buffer cache.

  4. The shared pool stores the most recently executed SQL statements and the most recently

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

The shared pool is a key component of the Oracle System Global Area (SGA) that caches SQL execution plans, PL/SQL code, and system parameters. It stores the most recently executed SQL statements and dictionary data. It does not contain the buffer cache, and it can be dynamically resized.

Multiple choice technology databases
  1. A transaction completes.

  2. The instance is started.

  3. The instance is shut down

  4. The current online redo log group is filled

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

In Oracle databases, a log switch occurs when the current online redo log group becomes full and LGWR needs to continue writing. Oracle then switches to the next available redo log group. This is a normal, automatic operation that happens continuously during database operation. Transaction completion, instance startup, or shutdown do not directly cause log switches.

Multiple choice technology databases
  1. Control file

  2. User trace files

  3. Background trace files

  4. Initialization parameter files

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

To answer this question, the user needs to have knowledge about the Oracle database architecture and various files associated with it.

The alert log file is a chronological log of messages and errors from an Oracle Database instance. It contains information about database startup and shutdown, log switches, and various error messages.

When errors are being generated from a SQL*Plus session, user trace files and background trace files are the best files to provide more information about the nature of the problem.

User trace files are generated when a user session encounters an error or when a user explicitly requests tracing. These files contain detailed information about the SQL statements executed, as well as any associated errors or warnings.

Background trace files are generated by Oracle background processes, such as the database writer, log writer, and checkpoint processes. These files contain detailed information about the internal workings of the Oracle Database instance, including errors or warnings encountered by the background processes.

Control file and initialization parameter files are essential files for the proper functioning of the Oracle database but are not useful in providing more information about the nature of errors generated from a SQL*Plus session.

Therefore, the correct answer is:

The Answer is: B. User trace files and C. Background trace files

Multiple choice technology programming languages
  1. Reuse your Schema in other Schemas

  2. Create your own data types derived from the standard types

  3. Reference multiple schemas in the same document

  4. All the above

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

XML Schema is explicitly designed to be extensible. All three capabilities listed are core features: schemas can be reused via import/include, custom data types can be derived from standard types via extension/restriction, and multiple schemas can be referenced in a single document. The question asks what you CANNOT do - none of these are limitations.

Multiple choice technology programming languages
  1. data types

  2. images

  3. graphics

  4. functions

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

One of the greatest strengths of XML Schemas is their support for data types. Unlike DTDs, XML Schema provides a rich set of built-in data types (string, integer, date, boolean, etc.) and allows custom data type definitions, enabling strong typing and validation of XML content.

Multiple choice technology platforms and products
  1. Character

  2. Number

  3. Date

  4. Binary

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

Among the non-key record field types listed, Date is the only one that commonly accepts null values in database systems. Character and Number fields typically require values, while Binary fields store actual data content. Date fields can be nullable to represent unknown or optional dates.

Multiple choice technology programming languages
  1. describes

  2. develops

  3. designs

  4. inform

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

With XML Schemas, the sender can describe the data in a way that the receiver will understand. The schema provides a common vocabulary and structure definition, ensuring both parties interpret the XML document consistently. This enables data interoperability between different systems.

Multiple choice technology platforms and products
  1. website.appconfig.dna

  2. db_env.dna

  3. webconnect.appconfig.dna

  4. env.dna

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

This question is highly context-specific to a particular proprietary framework or application where db_env.dna is used for database configuration. Since it is not a standard industry concept, it is considered a niche system-specific question.