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. CONNECT

  2. CONTROL

  3. SYSMAINT

  4. EXECUTE

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

SYSMAINT is a database-level authority granted by the DB2 Database Manager configuration file (db2.cfg). It allows maintenance operations without full database administrative rights. CONNECT, CONTROL, and EXECUTE are database-level privileges/authorities, not configuration file authorities.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

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

Repeatable Read locks all rows scanned to build the result set, preventing other transactions from updating or deleting them. Uncommitted Read takes no locks, Cursor Stability locks only the current row, and Read Stability locks only rows that are actually returned (not all scanned rows).

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

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

In Cursor Stability isolation level, locks are released when the cursor moves to another row. This is the defining behavior of CS - it only locks the row currently positioned on. Deleting the row or update attempts do not release the lock until the cursor moves.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

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

Repeatable Read locks all rows scanned during query execution, preventing phantom reads and non-repeatable reads. UR takes no locks, CS locks only current row, and RS locks only qualifying rows. This is the strongest isolation level before Serializable.

Multiple choice technology databases
  1. Backup purposes

  2. Storing intermediate results

  3. Staging area for load operations

  4. Sharing result data sets between applications

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

Declared temporary tables are specifically designed for storing intermediate results during complex query processing. They are session-specific, not for backup (use backup utilities), load staging (use staging tables), or sharing between applications (use regular tables).

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

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

Repeatable Read isolation level locks all rows scanned to build the result set, ensuring the same query can be repeated with identical results. UR doesn't lock, CS locks only the current cursor position, and RS only locks rows that match the query criteria.

Multiple choice technology databases
  1. parameter files

  2. control files

  3. redo logs

  4. data files

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

Oracle control files are critical metadata files that record the physical structure of the database. They store the names and locations of all physical database components including data files, redo log files, and tablespace information. Parameter files contain initialization parameters, redo logs store transaction changes, and data files hold actual table data - only control files track component locations.

Multiple choice technology mainframe
  1. IBM

  2. Compuware

  3. CA

  4. Oracle

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

File-Aid (now owned by Broadcom) is a mainframe data management product originally developed by Compuware. It's not an IBM, CA (Broadcom), or Oracle product. File-Aid has been a standard tool in mainframe environments for decades, specifically for working with DB2 databases and VSAM files.

Multiple choice technology mainframe
  1. Test DB2 Queries

  2. Create, Modify DB2 Objects

  3. Load / Unload data

  4. All of the above

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

File-Aid is a comprehensive mainframe data management tool that supports multiple database operations. It can test DB2 queries through its browse and edit features, create and modify DB2 objects through its DDL generation capabilities, and efficiently load/unload data between datasets and tables. This versatility makes it a complete data management solution.

Multiple choice technology mainframe
  1. Write Cobol programs

  2. Test Cobol programs

  3. Explain Analysis

  4. Run Trace for DB2 programs

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

File-Aid includes explain analysis functionality that helps developers understand DB2 query access paths and performance characteristics. The explain feature shows how DB2 executes SQL statements, revealing table access methods, join strategies, sort usage, and index information. Options A, B, and D describe functions outside File-Aid's core scope - it's not a Cobol development or tracing tool.

Multiple choice technology mainframe
  1. DB2 Sub-Server ID

  2. DB2 Sub-System ID

  3. DB2 Super-System ID

  4. DB2 Super-Server ID

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

The DB2 SSID (Subsystem Identifier) is a 1-4 character identifier that uniquely names a specific DB2 subsystem within a mainframe environment. Multiple DB2 subsystems can run on the same mainframe, and the SSID distinguishes between them for connections, administration, and operational purposes. It's not a server, super-system, or sub-server identifier.

Multiple choice technology mainframe
  1. Location ID/Database

  2. Location ID/Tablespace

  3. Creator/Table Name

  4. Location ID/Table Name

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

To browse table data in File-Aid DB2, the Creator (schema/qualifier) and Table Name are the mandatory parameters. Location ID and Tablespace are not required for basic table browsing. Database alone is insufficient without the table qualifier.