0

mainframe Online Quiz - 139

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

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

TYPE=SCAN What does it do?

  1. Scans JCL for errors.

  2. Invalid Syntax

  3. Scans for previous executing jobs

  4. Does nothing!


Correct Option: A

When I try to browse my Colleague's latest GDG tape version, What will I get?

  1. What's the problem is browsing it? Only editing is not possible.

  2. Security Violation / Access Denied.

  3. Cant browse a latest GDG tape version.

  4. Cant browse a latest GDG tape version, but can browse own datasets.


Correct Option: C

REPLACING option of a COPY statement will

  1. Replace the copybook with another.

  2. The option is invalid with copy statement.

  3. It allows for the same copy to be used more than once in the same code by changing the replace value.

  4. Has no impact.


Correct Option: C

How can I delete a record from an ESDS file?

  1. Just go with normal delete process it will go fine.

  2. Can delete only if the record is obtained by a random read.

  3. Are you nuts? How can you delete a record from a ESDS file?

  4. Using SORT utility


Correct Option: C

OCCURS clause cannot be used in 01 Level

  1. Occurs clause in 01 cant be done because 01 is the top most level.

  2. Who said so, you can use it, I bet!

  3. Occurs clause is there to repeat fields with same format, not the records.

  4. Stack will over flow.


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of the OCCURS clause in COBOL.

The OCCURS clause is used to define a table or array in COBOL. It specifies the number of occurrences of a field or group of fields within the table or array. The OCCURS clause can only be used with elementary data items (such as numeric or alphanumeric fields) and cannot be used with group items or record descriptions.

Option A) Occurs clause in 01 can't be done because 01 is the topmost level - This option is incorrect because the OCCURS clause can be used with elementary data items at the 01 level or any other level within the record description.

Option B) Who said so, you can use it, I bet! - This option is incorrect because it does not provide any explanation or reasoning.

Option C) Occurs clause is there to repeat fields with the same format, not the records - This option is correct. The OCCURS clause is used to repeat fields with the same format within a table or array. It does not repeat entire records.

Option D) Stack will overflow - This option is incorrect because it does not relate to the use of the OCCURS clause in COBOL.

The correct answer is C) Occurs clause is there to repeat fields with the same format, not the records. This option is correct because it accurately explains the purpose and usage of the OCCURS clause in COBOL.

EXIT - What does it do?

  1. Does Nothing!

  2. Terminates the program.

  3. Terminates the paragraph.

  4. Terminates the loop.


Correct Option: A

Maximum number of steps a job can have is

  1. Unlimited

  2. 255

  3. 125

  4. Limited to business requirement


Correct Option: B

What if you code GO BACK instead of STOP RUN in a independent COBOL program

  1. What's the problem in it? Will go fine!

  2. Program goes in infinite loop.

  3. Program will not execute.

  4. Compiler throws error.


Correct Option: B

How do you define COMP-1 / COMP-2?

  1. DEFINE WS-VAR PIC(9) COMP-1

  2. 01 WS-VAR PIC(9) COMP-1

  3. 01 WS-VAR USAGE COMP-1

  4. Author should learn COBOL


Correct Option: C

JUSTIFIED can be used only with the following data types :

  1. ALPHABETIC, ALPHANUMERIC

  2. ALPHABETIC, ALPHANUMERIC, NUMERIC

  3. ALPHABETIC, NUMERIC

  4. ALPHANUMERIC, NUMERIC


Correct Option: A

REDEFINE X(250) by X(245) - Is it possible

  1. Yes

  2. No

  3. X(245) can be refined to X(250)

  4. Author should learn COBOL


Correct Option: A

Modes to OPEN a file for writing :

  1. INPUT

  2. I-O, OUTPUT

  3. I-O, OUTPUT, EXTEND

  4. OUTPUT, EXTEND


Correct Option: D

Maximum number of in-stream procedures in a JCL can be

  1. As usual, Unlimited.

  2. 1

  3. 15

  4. 255


Correct Option: C

Maximum size of 01 level item?

  1. Unlimited

  2. 16777215

  3. Limited to DASD

  4. Author should learn COBOL


Correct Option: B

Where will be the sign stored in COMP field?

  1. How can u store a sign in COMP?huh!

  2. You can store sign only in COMP-3

  3. Most significant bit

  4. Most significant byte


Correct Option: C

Space allocated by OS when PS or PDS is created?

  1. User Defined KB.

  2. Unlimited KB.

  3. Limited to DASD

  4. 56 KB


Correct Option: D

Formula for calculating bytes required for COMP-3 variable

  1. N/2 + 1

  2. N^2 + 1

  3. N+1/2

  4. (N/2)^2


Correct Option: A

When you pass a table via LINKAGE, which of the following makes you a good programmer?

  1. Subscript

  2. Index

  3. Either

  4. Author should learn COBOL


Correct Option: D

A job can run continuously in mainframe for

  1. 1440 Minutes

  2. 248 Days

  3. Forever

  4. Till Mainframe server is down


Correct Option: B
- Hide questions