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

  2. Users tablespace

  3. Default tablespace for the user

  4. Oracle will give an error

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

When a TABLESPACE clause is omitted, Oracle stores the segment in the user's default tablespace. Each database user has a default tablespace assigned (often USERS or a custom tablespace). The SYSTEM tablespace is reserved for data dictionary objects. Oracle will not give an error - it uses the default tablespace as a fallback.

Multiple choice technology databases
  1. All statements are removed and have to be resubmitted

  2. The Oracle server rolls back the statement that detected the deadlock

  3. The administrator has to kill the session

  4. Deadlocks can not be resolved

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

Oracle automatically detects deadlocks and resolves them by rolling back the specific statement that caused the deadlock, allowing other transactions to proceed. Manual intervention or killing the entire session is usually not required for basic resolution.

Multiple choice technology databases
  1. The user disconnects from Oracle

  2. A COMMIT or a ROLLBACK statement is used in conjunction with a SAVEPOINT clause

  3. A user process is terminated abnormally

  4. A DDL statement such as DROP, GRANT, RENAME

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

In Oracle, a transaction ends with a COMMIT, ROLLBACK, DDL statement, or disconnection. Using a SAVEPOINT with ROLLBACK only reverts to a specific point within the transaction; it does not terminate the transaction itself.

Multiple choice technology databases
  1. USER_TABLESPACES

  2. V$TABLESPACE
  3. DBA_TABLESPACE_GROUPS

  4. DBA_TABLESPACES

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

DBA_TABLESPACES is the correct data dictionary view that contains descriptions of all tablespaces in the database. USER_TABLESPACES only shows tablespaces accessible to the current user, while V$TABLESPACE and DBA_TABLESPACE_GROUPS are not valid views for tablespace descriptions.

Multiple choice technology databases
  1. Statement failure

  2. User process failure

  3. Network failure

  4. Instance failure

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

A user process failure occurs when a single database session encounters an error and terminates. Statement failure refers to individual SQL statement errors, network failure involves connectivity issues, and instance failure is when the entire database instance crashes.

Multiple choice technology databases
  1. System tablespace

  2. Users tablespace

  3. Default tablespace for the user

  4. Oracle will give an error

  5. Undefined

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

In Oracle, if a user creates a segment (like a table) without specifying a tablespace, the database automatically assigns it to the default tablespace defined in that specific user's profile configuration.

Multiple choice technology databases
  1. the process of arranging information stored in a database in a way, which removes redundancy and ambiguity.

  2. a special way of selecting data

  3. the process of adding primary key to a table

  4. All the above

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

Database normalization is the systematic process of organizing data to reduce redundancy and minimize ambiguity or data anomalies. Selecting data, adding primary keys, and other operations are separate database design tasks.

Multiple choice technology databases
  1. System tablespace

  2. Users tablespace

  3. Default tablespace for the user

  4. Oracle will give an error

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

When no TABLESPACE clause is specified, Oracle automatically stores the segment in the user's default tablespace. This is the tablespace assigned to the user when their account was created or last modified with an ALTER USER statement. The system tablespace is reserved for data dictionary objects, not user data.

Multiple choice technology databases
  1. True

  2. False

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

Tables store data, views are virtual tables derived from queries, and indexes improve query performance - all are fundamental database objects in Oracle. The question contains a typo ('incexes' instead of 'indexes') but the meaning is clear and the statement is correct.

Multiple choice technology databases
  1. Programming technique

  2. Automatically used in all prpgramme

  3. PL/SQL compiler directive

  4. All of the above

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

AUTONOMOUS_TRANSACTION is a pragma (compiler directive) in PL/SQL that marks a routine as an autonomous transaction. This allows the routine to execute independently of the main transaction - it can commit or rollback without affecting the parent transaction's state. It's a PRAGMA directive, not a programming technique or automatic feature.

Multiple choice technology databases
  1. Roles

  2. Sequences

  3. Synonyms

  4. Index

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

An index is a database object specifically designed to improve query performance by creating a data structure that allows faster data retrieval without scanning the entire table. Roles manage security permissions, sequences generate unique numeric values, and synonyms provide alternate names for objects.

Multiple choice technology databases
  1. Hierarchical

  2. Relational

  3. Object Relational

  4. Network

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

Object-Relational database systems extend the relational model by allowing PL/SQL programs (methods) to be stored as part of object type definitions. Hierarchical and Network are older database models, while pure Relational databases don't support embedding executable code in objects.

Multiple choice technology databases
  1. binary data up to 4 gigabytes

  2. character data up to 4 gigabytes

  3. a hexadecimal string representing the unique address of a row in its table

  4. raw binary data of variable length up to 2 gigabytes

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

The ROWID is a pseudo-column that represents the unique physical address of a row within an Oracle database. It is typically displayed as a base-64 or hexadecimal string and provides the fastest way to access a specific row.