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. BATCH DL/I

  2. MPP

  3. BMP

  4. ALL

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

IMS DB supports two primary processing modes: online (MPP - Message Processing Program) and batch (BMP - Batch Message Processing and Batch DL/I). Option D 'ALL' correctly encompasses all available processing modes. The other options list individual modes but don't represent the complete set.

Multiple choice technology databases
  1. PCB

  2. SENSEG

  3. SENFLD

  4. PROCOPT

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

PROCOPT (Processing Options) is the parameter that defines what types of database operations are permitted - such as GET (read), INSERT (create), REPLACE (update), and DELETE. It is specified in the PCB and SENSEG statements to control access rights at the database or segment level. PCB, SENSEG, and SENFLD are structure definitions, not access control specifications.

Multiple choice technology databases
  1. TIMESTAMP

  2. . INTERVAL MONTH TO DAY

  3. INTERVAL DAY TO SECOND

  4. INTERVAL YEAR TO MONTH

  5. TIMESTAMP WITH DATABASE TIMEZONE

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

TIMESTAMP and INTERVAL types (DAY TO SECOND, YEAR TO MONTH) are valid SQL datetime data types for column definitions. INTERVAL MONTH TO DAY is not a valid interval type (should be INTERVAL DAY TO MONTH), and TIMESTAMP WITH DATABASE TIMEZONE is incorrect syntax.

Multiple choice technology mainframe
  1. Storage dataset

  2. Temporary dataset

  3. Both

  4. None of the above

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

Temporary datasets in JCL are created with DSN=&&prefix and are used only for the duration of the job. They are automatically deleted after job completion. Storage datasets are permanent datasets that persist beyond the job, making 'Temporary dataset' the correct answer.

Multiple choice technology web technology
  1. DATACOUNT

  2. DCOUNT

  3. DCOUNTA

  4. None of the Above

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

DCOUNT is a database function that counts cells containing numbers within a specified database range. This differs from DCOUNTA which counts all non-blank cells regardless of content type. DCOUNT specifically targets numeric data only, making it useful for numerical database analysis.

Multiple choice technology web technology
  1. DATACOUNT

  2. DCOUNT

  3. DCOUNTA

  4. None of the Above

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

DCOUNTA counts all non-blank cells in a database, regardless of whether they contain numbers, text, or other data types. This makes it more inclusive than DCOUNT which only counts numeric cells. The 'A' suffix typically indicates 'all' or 'any' content type in database functions.

Multiple choice technology databases
  1. iBATIS is a O/R Mapping tool.

  2. iBATIS is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings.

  3. iBATIS is a java development tool.

  4. iBATIS is a first class persistence framework, and will not support for custom SQL, but will support stored procedures.

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

iBATIS is a persistence framework that maps SQL statements to Java objects, emphasizing full control over custom SQL and stored procedures rather than full object-relational mapping (ORM).

Multiple choice technology databases
  1. SqlSessionFactoryBuilder

  2. SqlBuilder

  3. SqlFactoryBuilder

  4. SqlSessionBuilder

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

SqlSessionFactory is created using SqlSessionFactoryBuilder in iBATIS/MyBatis. This builder pattern reads configuration and builds the factory. Other options like SqlBuilder or SqlSessionBuilder are incorrect or don't exist.

Multiple choice technology databases
  1. True

  2. False

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

The statement claims iBATIS discourages SQL use, but this is false - iBATIS is designed to leverage SQL's power. It allows developers to write raw SQL queries while simplifying database access, preserving all SQL benefits. Therefore the correct answer is False.

Multiple choice technology databases
  1. you will not be able to connect locally ,but you can be able to connect to DB from remote

  2. you cannot be able to connect to DB either from remote or from local

  3. you cane to connect to DB either from remote or from local

  4. you will not be able to connect remotely ,but you can be able to connect to DB locally

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

In Oracle, when the listener is down but the instance is up, local connections using IPC/bequeath protocol still work. Remote connections require the listener to establish the initial connection.

Multiple choice technology databases
  1. IO-PCD

  2. DBD

  3. IO-AREA

  4. SSA

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

The physical nature of an IMS database is defined by the DBD (Database Description). The DBD describes the physical structure of the database including segment layout, field definitions, and indexing information. IO-PCB and IO-AREA are runtime structures used during program execution, while SSA is a navigation parameter.

Multiple choice technology databases
  1. ADDM

  2. AWR

  3. Data dictionary views

  4. Dynamic performance views

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

The Automatic Workload Repository (AWR) is the Oracle component that stores statistics collected by the MMON (Manageability Monitor) process. AWR serves as the foundation for performance diagnostics and contains detailed performance statistics. ADDM uses AWR data for its analysis but is the diagnostic tool itself, not the storage mechanism. Data dictionary views and dynamic performance views are different database structures.

Multiple choice technology databases
  1. SQL Tuning Advisor

  2. SQL Access Advisor

  3. Both A and B

  4. Neither A or B

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

When a SQL statement causes I/O issues, both SQL Tuning Advisor and SQL Access Advisor are relevant. SQL Tuning Advisor optimizes the SQL statement itself (indexes, statistics, SQL structure), while SQL Access Advisor focuses on access paths and materialized views. Using both provides comprehensive troubleshooting for I/O problems caused by SQL statements.