0

mainframe Online Quiz - 90

Description: mainframe Online Quiz - 90
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

Which parameter decides the allocation size for the tablespace

  1. Numpart

  2. SegSize

  3. Both 1 & 2

  4. None of the above


Correct Option: B

________is a collection of direct access volumes all of the same device type.

  1. Storage Group

  2. Database

  3. Synonym

  4. view


Correct Option: A

________means another name for the table, but is private to the user who created it.

  1. Aliases

  2. Synonym

  3. Both 1 & 2

  4. None of the above


Correct Option: B

Opens all tablespaces and acquires all tablespace locks when the plan is allocated

  1. ACQUIRE(USE)

  2. ACQUIRE(ALLOCATE)

  3. RELEASE(COMMIT)

  4. RELEASE(DEALLOCATE)


Correct Option: B

__________utility gathers information about data in tablespaces, indexes and updates DB2 catalog

  1. MERGE

  2. COPY

  3. REORG

  4. RUNSTATS


Correct Option: D

If a transaction successfully updates a record, it is imperative that it has an ________ on it

  1. Exclusive

  2. Shared

  3. Update

  4. None


Correct Option: A

If a table is dropped, the space for that table can be reclaimed with minimum reorg in

  1. Simple Tablespace

  2. Partitioned Tablespace

  3. Complex Tablespace

  4. Segmented Tablespace


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of tablespace in database management systems.

In a database, a tablespace is a logical storage unit that contains tables, indexes, and other database objects. When a table is dropped, the space it occupied in the tablespace becomes available for reuse.

Now, let's go through each option to understand why it is correct or incorrect:

Option A) Simple Tablespace - This option is incorrect. A simple tablespace is a type of tablespace that does not support advanced features like partitioning or segmenting. Therefore, it does not provide efficient space reclamation after a table is dropped.

Option B) Partitioned Tablespace - This option is incorrect. A partitioned tablespace is a type of tablespace that allows tables to be divided into smaller logical units called partitions. While partitioning can improve performance and manageability, it does not necessarily provide efficient space reclamation after a table is dropped.

Option C) Complex Tablespace - This option is incorrect. There is no specific type of tablespace called "complex tablespace." It is not a recognized term in database management systems.

Option D) Segmented Tablespace - This option is correct. A segmented tablespace is a type of tablespace that divides the space into segments, which are logical storage units. When a table is dropped in a segmented tablespace, the space occupied by the table can be easily reclaimed with minimum reorganization or reallocation of space.

Therefore, the correct answer is D) Segmented Tablespace. This option is correct because a segmented tablespace allows for efficient space reclamation after a table is dropped.

In Partitioned Tablespace, individual partitions cannot be independently recovered and reorganized

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of a partitioned tablespace.

A partitioned tablespace is a method used in database management systems to improve the performance and manageability of large tables. It involves dividing a table into smaller, more manageable units called partitions. Each partition is stored in a separate data file within the tablespace.

Now let's evaluate each option:

Option A) True - This option states that individual partitions cannot be independently recovered and reorganized. This is incorrect. In a partitioned tablespace, individual partitions can be independently recovered and reorganized. This is one of the advantages of using partitioning, as it allows for more granular management of data.

Option B) False - This option states that individual partitions can be independently recovered and reorganized. This is the correct answer. In a partitioned tablespace, individual partitions can be independently recovered and reorganized. This allows for more flexibility in managing the data within the table.

The correct answer is B) False. Individual partitions can be independently recovered and reorganized in a partitioned tablespace.

DB2 Security is provided internal to DB2 using the

  1. Data Definition Language

  2. Data Manipulation Language

  3. Data Confusion Language

  4. Data Control Language


Correct Option: D

DEFINE DATA LOCAL 1 #VAR-1 (A25) END-DEFINE MOVE 'THIS IS MY FIRST PROGRAM' TO #VAR-1 WRITE #VAR-1 END The above statements are correct or not.

  1. True

  2. False


Correct Option: A

Command used to catch the syntax errors

  1. TEST

  2. CHECK

  3. JCLCHK

  4. EJCL ALL


Correct Option: B

A list of the last names and salaries of all employees earning at least $40,000 a year. READ EMPLOYEES WITH SALARY STARTING FROM 40000 DISPLAY NAME SALARY END

  1. True

  2. False


Correct Option: A

What the EXAMINE command will do

  1. to scan a field for a specific value and replace it, and/ or to count how often it occurs

  2. the first occurrence or all occurrences of the string may be replaced, deleted or counted

  3. a & b

  4. NONE


Correct Option: C

What is name of the debug tool for natural programs

  1. DEBUG

  2. TEST

  3. CHECK

  4. XPEDITOR


Correct Option: B

Which parameter will be used to stop the execution of a step(which resides in the proc) in JCL.

  1. COND.STEPNAME=(GE,0)

  2. COND.STEPNAME=(0,GE)

  3. COND.STEPNAME=(0,LE)

  4. COND.STEPNAME=(LE,0)


Correct Option: C

Which option will be used for spilitting the file using the records count

  1. OUTFIL FILES

  2. OUTREC FILES

  3. A & B

  4. NONE


Correct Option: A

AI Explanation

To answer this question, we need to understand the concepts of OUTFIL and OUTREC in file processing.

Option A) OUTFIL FILES - This option is correct for splitting a file based on the record count. The OUTFIL statement in file processing is used to define output specifications for a file. The FILES parameter in the OUTFIL statement specifies the number of output files to be created. By setting the FILES parameter to a specific value, you can split the input file into multiple output files based on the record count.

Option B) OUTREC FILES - This option is incorrect. The OUTREC statement in file processing is used for reformatting records within a file, but it does not have a parameter for splitting the file based on the record count.

Option C) A & B - This option is incorrect. While the OUTFIL statement with the FILES parameter (Option A) can be used for splitting the file based on the record count, the OUTREC statement (Option B) does not have this capability.

Option D) NONE - This option is incorrect. The correct option for splitting the file based on the record count is Option A, OUTFIL FILES.

Therefore, the correct answer is Option A) OUTFIL FILES. This option allows you to split the file using the records count.

What does abend code S806 signify

  1. Operation Exception

  2. Load module not found

  3. Index exceeds the size of the table

  4. COBOL sort failed


Correct Option: B

Which parameter is used to call the jcl from another jcl

  1. JCLCAL

  2. INTRDR

  3. JCLCALL

  4. NONE


Correct Option: B

What does AVGREC parameter will do

  1. to specify the size of the file in terms of cylinders or tracks

  2. to specify the size of a new dataset in terms of the number of records

  3. to specify the size of the file in terms of bytes

  4. None


Correct Option: B
- Hide questions