0

mainframe Online Quiz - 85

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

What all sections are mandatory for an easytrieve program with SORT activity?

  1. Library, Activity

  2. Environment, Activity

  3. Activity

  4. Environmet, Library


Correct Option: A

A field in the file defenition of an easytrieve program can be of the following format

  1. A, N, P, B, U

  2. A, N, H, B, U

  3. A, N, D, H, B

  4. C, N, P, B, U


Correct Option: A

Which of the file defenition is correct here? A)NAME * 10 A B)NAME +10 10 A C)NAME 10 10 A D)NAME IN-FILE +10 10 A

  1. A,B,C

  2. B,C

  3. B,C,D

  4. A,B,C,D


Correct Option: D

"Using a SORT activty, an easytrieve program can sort any file that can not be processed sequentially". is the statement true?

  1. True

  2. False


Correct Option: B

"Even for a single fetch from DB2 table, cursor is required in an easytrieve program.". Is the statement true?

  1. True

  2. False


Correct Option: A

AAA is a volatile record

  1. True

  2. False


Correct Option: B

Control Program in ECB is

  1. CTRLPGM

  2. SYSOP

  3. OPZERO

  4. SYSPGM


Correct Option: C

How many data blocks are present in tpf

  1. 8

  2. 16

  3. 12

  4. 24


Correct Option: B

Which Register will point to ECB when the program is under execution

  1. R8

  2. R12

  3. R9

  4. R10


Correct Option: C

Which Macro describes the layout of the ECB

  1. WA0AA

  2. EB0EB

  3. MI0MI

  4. CA0CAL


Correct Option: B

AI Explanation

To answer this question, you need to understand the coding scheme used for the layout of the European Central Bank (ECB).

The coding scheme for the layout of the ECB is based on a three-letter code. Each letter represents a specific location or function within the ECB.

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

Option A) WA0AA - This option does not match the coding scheme used for the layout of the ECB. The letters used do not represent any specific location or function within the ECB.

Option B) EB0EB - This option matches the coding scheme used for the layout of the ECB. The letters "EB" represent the European Central Bank, and the number "0" represents the main office or headquarters.

Option C) MI0MI - This option does not match the coding scheme used for the layout of the ECB. The letters used do not represent any specific location or function within the ECB.

Option D) CA0CAL - This option does not match the coding scheme used for the layout of the ECB. The letters used do not represent any specific location or function within the ECB.

The correct answer is B) EB0EB. This option is correct because it matches the coding scheme used for the layout of the ECB, with "EB" representing the European Central Bank and "0" representing the main office or headquarters.

Choose the applicable Block size used in TPF

  1. 128 byte

  2. 256 byte

  3. 1055 byte

  4. 512 byte

  5. 381 byte

  6. 4k byte


Correct Option: A,C,E,F

Common Block usage for application will impact the system

  1. True

  2. False


Correct Option: B

What is the indicator for no block attached type.

  1. 0

  2. 1

  3. 21

  4. 31


Correct Option: B

Process can't be preempted in TPF

  1. True

  2. False


Correct Option: B

AAA expansion

  1. Actual Assembly Area

  2. Agent Arrival Area

  3. Agent Assembly Area

  4. Actual Assembly Agent


Correct Option: C

What is the maximum length of a field you can define using COMP-3?

  1. 10 Bytes

  2. 12 Bytes

  3. 14 Bytes

  4. 16 Bytes


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of COMP-3, which is a binary-coded decimal (BCD) representation used in mainframe computers.

In COMP-3, each decimal digit is represented by a nibble (4 bits), and the sign is stored in the last nibble. The maximum length of a field defined using COMP-3 is determined by the number of bytes required to store the digits and the sign.

To calculate the maximum length, you need to consider the following:

  • Each byte can store two decimal digits.
  • The sign is stored in the last nibble, which requires an additional half byte.

Now, let's go through each option to determine the correct answer:

Option A) 10 Bytes - This option is correct. With 10 bytes, you can store 20 decimal digits and the sign (1/2 byte). This is the maximum length for a field defined using COMP-3.

Option B) 12 Bytes - This option is incorrect. With 12 bytes, you can store 24 decimal digits and the sign (1/2 byte), which exceeds the maximum length for a COMP-3 field.

Option C) 14 Bytes - This option is incorrect. With 14 bytes, you can store 28 decimal digits and the sign (1/2 byte), which exceeds the maximum length for a COMP-3 field.

Option D) 16 Bytes - This option is incorrect. With 16 bytes, you can store 32 decimal digits and the sign (1/2 byte), which exceeds the maximum length for a COMP-3 field.

Therefore, the correct answer is Option A) 10 Bytes. This option is correct because it represents the maximum length for a field defined using COMP-3, allowing you to store 20 decimal digits and the sign.

What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program i.e. a program which is not calling any other program.

  1. Nothing, the program will behave normally.

  2. The program will go in an infinite loop

  3. The program will not get complied.

  4. Output files wont be generated.


Correct Option: B

AI Explanation

To answer this question, we need to understand the purpose of the STOP RUN statement and the GO BACK statement in COBOL.

The STOP RUN statement is used to terminate the execution of a COBOL program. It stops the program and releases any resources used by the program. This statement is typically placed at the end of the program.

The GO BACK statement is used to transfer control back to the calling program or system. It is typically used in a program that is called by another program or system.

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

Option A) Nothing, the program will behave normally. This option is incorrect because the GO BACK statement is not designed to terminate the program. Instead, it transfers control back to the calling program or system. Without a STOP RUN statement, the program will not terminate properly.

Option B) The program will go in an infinite loop. This option is correct. If you use the GO BACK statement instead of the STOP RUN statement in a standalone COBOL program, the program will not terminate and will enter an infinite loop. This is because the program will keep going back to the calling program or system without a proper termination statement.

Option C) The program will not get compiled. This option is incorrect. The presence of the GO BACK statement instead of the STOP RUN statement does not affect the compilation of the COBOL program. The program will still compile successfully.

Option D) Output files won't be generated. This option is incorrect. The presence of the GO BACK statement instead of the STOP RUN statement does not affect the generation of output files in a COBOL program. The program will still generate output files if the necessary file handling statements are included.

Therefore, the correct answer is B) The program will go in an infinite loop. This option is correct because the GO BACK statement does not terminate the program, leading to an infinite loop.

What is the difference between PIC 9.99 and 9v99?

  1. PIC 9.99 is a THREE-POSITION field where as PIC 9v99 is FOUR-POSITION numeric field.

  2. No difference.

  3. PIC 9.99 is a FOUR-POSITION field where as PIC 9v99 is THREE-POSITION numeric field

  4. PIC 9.99 takes less space then PIC 9V99.


Correct Option: C

AI Explanation

To answer this question, we need to understand the PIC (Picture) clause in COBOL, which is used to define the data type and format of a field.

In COBOL, the PIC 9.99 and 9v99 are different data types with different formats:

PIC 9.99 - This is a FOUR-POSITION field. The "9" represents a numeric digit, and the ".99" represents two decimal places.

9v99 - This is a THREE-POSITION field. The "9" represents a numeric digit, and the "v99" represents two decimal places.

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

Option A) PIC 9.99 is a THREE-POSITION field whereas PIC 9v99 is a FOUR-POSITION numeric field. This option is incorrect because the statement is reversed. PIC 9.99 is a FOUR-POSITION field, not THREE-POSITION.

Option B) No difference. This option is incorrect because there is a difference in the number of positions.

Option C) PIC 9.99 is a FOUR-POSITION field whereas PIC 9v99 is a THREE-POSITION numeric field. This option is correct. As explained above, PIC 9.99 is a FOUR-POSITION field, and PIC 9v99 is a THREE-POSITION field.

Option D) PIC 9.99 takes less space than PIC 9v99. This option is incorrect because both PIC 9.99 and 9v99 have the same number of decimal places and take the same amount of space.

The correct answer is C) PIC 9.99 is a FOUR-POSITION field whereas PIC 9v99 is a THREE-POSITION numeric field.

What is S322 abend ?

  1. Load Module not found

  2. Output files not defined in JCL

  3. DD name is incorrect

  4. Indicates a time out abend


Correct Option: D

How can you trap abends in the JCL?

  1. Use IF ABEND statement in the JCL

  2. Use COND

  3. Both a and b

  4. None


Correct Option: A

AI Explanation

To answer this question, you need to understand how to handle abends (abnormal ends) in JCL (Job Control Language).

Option A) Use IF ABEND statement in the JCL - This option is correct. The IF ABEND statement in JCL allows you to specify a condition to check for specific abend codes and take appropriate actions, such as executing a specific job step or terminating the job. By using the IF ABEND statement, you can trap abends and handle them accordingly.

Option B) Use COND - This option is incorrect. The COND parameter in JCL is used to specify conditions for the execution of a job step based on the completion status of previous steps, not specifically for trapping abends.

Option C) Both a and b - This option is incorrect. Although option A is correct, option B is not an appropriate method for trapping abends.

Option D) None - This option is incorrect. Option A is a valid method for trapping abends in JCL.

The correct answer is A) Use IF ABEND statement in the JCL. This option is correct because it allows you to specify conditions to trap specific abend codes and take appropriate actions.

- Hide questions