Tag: databases

Questions Related to databases

Which of the following describes the objects of a DB2 database and their relationships?

  1. Instance

  2. Table space

  3. System catalog

  4. Schema repository


Correct Option: C
Explanation:

To solve this question, the user needs to know about the components of a DB2 database and their functions.

A. Instance: This refers to the environment in which DB2 runs. An instance includes system memory, a set of processes, and a set of configuration files. It is responsible for managing the overall operation of the database.

B. Table space: This is where the actual data is stored in a DB2 database. A table space consists of one or more containers that hold the actual data. Each container can be a file or a set of files.

C. System catalog: This is a set of tables that hold metadata about the database objects, such as tables, indexes, views, etc. It is used by DB2 to manage the database and its objects.

D. Schema repository: This is a collection of schemas, which are logical containers for database objects such as tables, views, indexes, etc.

Among the given options, C is the correct answer as the system catalog is responsible for storing metadata about the database objects and their relationships. It provides information about tables, indexes, views, permissions, etc. and is used by the DB2 system to manage the database and its objects. Therefore, the correct answer is:

The Answer is: C

  1. An application running on a remote client needs to be able to convert degrees Celsius to degrees Fahrenheit and vice versa

  2. An application running on a remote client needs to collect three input values, perform a calculation using the values provided, and store the input data, along with the results of the calculation in two different base tables

  3. An application running on a remote client needs to track every modification made to a table that contains sensitive data

  4. An application running on a remote client needs to ensure that every new employee that joins the company is assigned a unique, sequential employee number


Correct Option: B
  1. DELETE * FROM TABLE T03

  2. DELETE ALL FROM T03

  3. DELETE * FROM T03

  4. DELETE FROM T03


Correct Option: D
  1. Add a new column

  2. Drop a check constraint

  3. Change a column's name

  4. Change the length of a VARCHAR column


Correct Option: C