0

mainframe Online Quiz - 119

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

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND

  1. INDEXED

  2. RELATIVE

  3. SEQUENTIAL

  4. All of the above


Correct Option: D

How is sign stored in Packed Decimal fields?

  1. Sign is stored as a hex value in the last nibble of the storage.

  2. Sign is over punched with the numeric value stored in the last nibble.

  3. Sign is stored in the most significant bit.

  4. None of the above


Correct Option: A

AI Explanation

To answer this question, you need to understand how sign is stored in Packed Decimal fields. Let's go through each option to understand why it is correct or incorrect:

Option A) Sign is stored as a hex value in the last nibble of the storage. - This option is correct. In Packed Decimal fields, the sign is typically stored as a hex value in the last nibble (4 bits) of the storage. The sign is represented by the values 0xF (positive) or 0xC (negative).

Option B) Sign is over punched with the numeric value stored in the last nibble. - This option is incorrect. Overpunching is a technique used in some older systems to represent sign, where the sign is represented by overpunching the last digit with a special character. However, in Packed Decimal fields, the sign is stored as a separate hex value in the last nibble.

Option C) Sign is stored in the most significant bit. - This option is incorrect. While the most significant bit can be used to represent sign in some other data storage formats, it is not used to store sign in Packed Decimal fields.

Option D) None of the above - This option is incorrect. The correct answer is option A, as explained above.

The correct answer is A. This option is correct because sign is indeed stored as a hex value in the last nibble of the storage in Packed Decimal fields.

What does the INITIALIZE verb do?

  1. Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES

  2. Numeric, Numeric edited items set to ZERO.

  3. FILLER , OCCURS DEPENDING ON items left untouched.

  4. All the Above.


Correct Option: D

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 7

  2. 6

  3. 5

  4. 4


Correct Option: A

Which of the following is False?

  1. Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.

  2. An index can only be modified using PERFORM, SEARCH & SET.

  3. Need to have index for a table in order to use SEARCH, SEARCH ALL.

  4. None of the above


Correct Option: D

X(100) field can be redefined with a field of X(200)?(True/False)

  1. True

  2. False


Correct Option: B

How many bytes does a S9(7) COMP-3 field occupy ?

  1. 7 bytes

  2. 6 bytes

  3. 5 bytes

  4. 4 bytes


Correct Option: D
  1. In COBOL , the File format : ORGANISATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0 . Is used to reference which file ?
  1. Fixed Block file

  2. Fixed Unblock file

  3. Variable Block file

  4. Variable Unblock file


Correct Option: A

Level 66 used for?

  1. For Renames Clause

  2. For Condition Names

  3. Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.

  4. All of the above


Correct Option: A

AI Explanation

To answer this question, you need to understand the use of level 66 in programming.

Level 66 is used for the Renames Clause in COBOL programming. The Renames Clause allows you to give an alternative name to a data item. It essentially creates another reference to the same data item, allowing you to access or modify the data using either name.

Option A) For Renames Clause - This option is correct because level 66 is specifically used for the Renames Clause in COBOL programming.

Option B) For Condition Names - This option is incorrect because level 88 is used for defining condition names in COBOL programming, not level 66.

Option C) Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves - This option is incorrect because level 66 is not used for defining elementary level items in COBOL programming.

Option D) All of the above - This option is incorrect because level 66 is not used for defining condition names or elementary level items. Therefore, it is not used for all of the above purposes.

The correct answer is A) For Renames Clause. This option is correct because level 66 is specifically used for the Renames Clause in COBOL programming.

How many sections are there in Data Division?

  1. Six

  2. Seven

  3. Four

  4. Three


Correct Option: A

2.------- Passes control information to the job step via the linkage section in the program?

  1. parm=value

  2. parm=’value’

  3. parm(=value)

  4. parm=(value)


Correct Option: B
  1. --------- Copies a single DD statement or group of DD statements into a job stream?
  1. Copy statement

  2. JCL statement

  3. Include statement

  4. None of the above


Correct Option: C

4.-------- Used for storage, needed only for the duration of the job?

  1. Storage dataset

  2. Temporary dataset

  3. Both

  4. None of the above


Correct Option: B

5.--------- Specifies conditions for executing subsequent job steps. Can be used in the Job statement or the EXEC statement?

  1. JCL checking

  2. Job checking

  3. Conditional checking

  4. EXEC checking


Correct Option: C

6.--------- Field contains only an asterisk?

  1. Operation field

  2. Parameter field

  3. Label field

  4. Comments field


Correct Option: B
  1. Identify the special DD name?
  1. JOBABEND

  2. JCLABEND

  3. SYSABEND

  4. STEPABEND


Correct Option: C

AI Explanation

To answer this question, you need to have knowledge about DD names in JCL (Job Control Language) and their purposes.

In JCL, DD (Data Definition) statements are used to define the input/output data sets and their attributes. These data sets can be files, datasets, or devices.

Among the given options, the special DD name is:

C. SYSABEND

SYSABEND is a special DD name that is used to capture the system abend (abnormal termination) information. When a job or step terminates abnormally, the system writes the abend information to the SYSABEND dataset. This dataset can then be used for further analysis and debugging.

Let's go through each option to understand why it is correct or incorrect:

A. JOBABEND - This option is incorrect because JOBABEND is not a special DD name. It is not used to capture system abend information.

B. JCLABEND - This option is incorrect because JCLABEND is not a special DD name. It is not used to capture system abend information.

C. SYSABEND - This option is correct. SYSABEND is a special DD name used to capture system abend information.

D. STEPABEND - This option is incorrect because STEPABEND is not a special DD name. It is not used to capture system abend information.

Therefore, the correct answer is C. SYSABEND. This option is correct because SYSABEND is the special DD name used to capture system abend information.

9.--------- Statement is used to mark the end of an in-stream procedure?

  1. EXEC statement

  2. CNTL statement

  3. PROC statement

  4. PEND statement


Correct Option: D
  1. A JCL statement consists of one or more ---- bytes of records?
  1. 60

  2. 80

  3. 100

  4. 120


Correct Option: B

-------- will Defines libraries used for an entire job or one job step?

  1. Joblib

  2. Proclib

  3. JCLlib

  4. Steplib


Correct Option: A
- Hide questions