0

mainframe Online Quiz - 38

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

What is SMS

  1. Space management system

  2. Storage Management system

  3. System Management subsystem

  4. None of the above


Correct Option: B
  1. CATLG - Dataset will be cataloged

  2. DELETE - Dataset should be deleted

  3. PASS - Dataset might be passed subsequent job step in the same job

  4. KEEP - Dataset will be retained


Correct Option: B
  1. deleted at the end of the job

  2. deleted at the end of the step

  3. deleted when end of file is reached

  4. either 2 or 3


Correct Option: A

If * used with SYSOUT (SYSOUT=*) parameter, then where thw displays, JCL statements and messages will be printed.

  1. Spool

  2. The class assigned to MSGCLASS parameter will be used to SYSOUT.

  3. The class assigned to CLASS parameter will be used to SYSOUT.

  4. None of the above


Correct Option: B

If JCLLIB is not mentioned in the JCL, then in which library it will do a search?

  1. SYS.PROCLIB

  2. SYS1.PROCLIB1

  3. SYS.PROCLIB1

  4. SYS1.PROCLIB


Correct Option: D

which of the following statements cannot be coded within the procedure

  1. DD DATA

  2. JOB

  3. EXEC

  4. DD *


Correct Option: A,B,D

The following portion of procedure division MOVE 0 TO A, I. PARA-1. ADD 3 TO A. ADD 2 TO I. IF I < a=" ‘,">B MOVE A TO C ELSE MOVE B TO C. ADD C TO D. Indicate which one of the following does not support the above statements

  1. The value of A will be added to D only if A is greater than B.

  2. The value of B will be added to D only if B is greater than A.

  3. The larger of the values, A and B will be added to D.

  4. NONE


Correct Option: C

IF NOT AGE LESS THAN 30 AND 40 GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.

  1. if AGE is greater than or equal to 40.

  2. If AGE is greater than or equal to 30.

  3. If AGE is greater than or equal to 30 but less than 40.

  4. If AGE is less than or equal to 30.


Correct Option: C

Indicate which of the following is true about the 88 level entry.

  1. it is used for individual data item in working-storage section.

  2. It is used for items with rename clause.

  3. It is used for a data item which redefines another data item.

  4. It is used for a condition name which can have either a true or false.


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) It is used for individual data item in working-storage section. This option is incorrect because the 88 level entry is not used for individual data items in the working-storage section. The 88 level entry is used for condition names, not data items.

Option B) It is used for items with the rename clause. This option is incorrect because the 88 level entry is not used specifically for items with the rename clause. The 88 level entry is used for condition names.

Option C) It is used for a data item which redefines another data item. This option is incorrect because the 88 level entry is not used for data items that redefine another data item. The 88 level entry is used for condition names.

Option D) It is used for a condition name which can have either a true or false. This option is correct. The 88 level entry is used for condition names in COBOL. A condition name is a user-defined identifier that represents a condition that can have either a true or false value. The 88 level entry assigns a condition name to a specific value or values, allowing it to be used in conditionals to test for the true or false state.

The correct answer is Option D. This option is correct because the 88 level entry is used for a condition name that can have either a true or false value.

IF A = 1 OR 2 OR 3 NEXT SENTENCE ELSE MOVE A TO B. Which of the following describes the above sentence correctly

  1. IF A NOT = 1 OR 2 OR 3 MOVE A TO B.

  2. IF NOT A = 1 AND 2 AND 3 MOVE A TO B.

  3. IF A NOT = 1 AND 2 AND 3 MOVE A TO B.

  4. IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B.


Correct Option: C

AI Explanation

To answer this question, we need to understand the logic of the given sentence.

The given sentence states: IF A = 1 OR 2 OR 3, then perform the next sentence. Otherwise, move A to B.

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

Option A) IF A NOT = 1 OR 2 OR 3 MOVE A TO B. This option is incorrect because it uses the logical operator "OR" instead of "AND" between 2 and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

Option B) IF NOT A = 1 AND 2 AND 3 MOVE A TO B. This option is incorrect because it uses the logical operator "AND" instead of "OR" between 1, 2, and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

Option C) IF A NOT = 1 AND 2 AND 3 MOVE A TO B. This option is correct because it correctly uses the logical operator "AND" between 1, 2, and 3. The use of "NOT" is also correct as it negates the condition, indicating that if A is not equal to 1, 2, and 3, then A should be moved to B.

Option D) IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B. This option is incorrect because it uses the logical operator "OR" instead of "AND" between 1, 2, and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

The correct answer is C. This option is correct because it correctly negates the condition by using "NOT" and uses the logical operator "AND" between 1, 2, and 3.

IF A <> D GO TO P1 ELSE IF NOT (A > B OR B < a="6," b="7," c="5" d="8">

  1. P1

  2. P2

  3. P3

  4. NONE OF THE ABOVE.


Correct Option: B

Determine the total number of bytes in the following. 01 REC-1. 02 FIRST-GROUP. 03 A1 PIC X(4). 03 A2 PIC 99. 02 REDEFINES FIRST-GROUP. 03 A3 PIC 999. 03 A4 PIC 999. 02 THIRD-GROUP. 03 A5 OCCURS 5 TIMES PIC 99.

  1. 22

  2. 16

  3. 12

  4. 14


Correct Option: B

AI Explanation

To determine the total number of bytes in the given structure, we need to consider the size of each field and group.

Let's go through each line to calculate the total number of bytes:

01 REC-1 - This is a level 01 group and does not contribute to the byte count.

02 FIRST-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A1 PIC X(4) - This field has a length of 4 bytes.

03 A2 PIC 99 - This field has a length of 2 bytes.

02 REDEFINES FIRST-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A3 PIC 999 - This field has a length of 3 bytes.

03 A4 PIC 999 - This field has a length of 3 bytes.

02 THIRD-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A5 OCCURS 5 TIMES PIC 99 - This field occurs 5 times and each occurrence has a length of 2 bytes. So, the total length for this field is 5 * 2 = 10 bytes.

Adding up the byte counts for each field, we have:

4 + 2 + 3 + 3 + 10 = 22 bytes.

Therefore, the correct answer is A) 22.

Which of the following statements are incorrect.

  1. Subscripting enables us to write a more compact code in the procedure division.

  2. Subscripting enables us to refer to any element of a table by the same data name with the facility of identifying the particular element through the values of subscript

  3. Subscripting reduces the number of entries to be included in the data division.

  4. Subscripting enables us to use loops in the procedure division.


Correct Option: D

Which of the following are directly controlled by JCL statements:

  1. The passing of job control information to the Job Entry Subsystem

  2. The addressing of input resources

  3. The performance of calculations

  4. The sending of an email to the person who submitted the job


Correct Option: A,B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) The passing of job control information to the Job Entry Subsystem - This option is correct because JCL (Job Control Language) statements are used to provide instructions to the Job Entry Subsystem (JES) about how to execute a job. JCL statements specify job control information such as the program to be executed, input and output files, and other parameters.

Option B) The addressing of input resources - This option is correct because JCL statements specify the input resources, such as files or datasets, that are required for the job. JCL defines the names and locations of the input resources, allowing the Job Entry Subsystem to access them during job execution.

Option C) The performance of calculations - This option is incorrect. JCL statements are primarily used for job control purposes and do not directly control the performance of calculations. The calculations themselves are typically performed by the programs or utilities specified in the JCL.

Option D) The sending of an email to the person who submitted the job - This option is incorrect. JCL statements do not directly control the sending of emails. However, some Job Entry Subsystems may have features or capabilities to send notifications or emails based on job completion or other events, but this is not a direct function of JCL.

Therefore, the correct answers are A) The passing of job control information to the Job Entry Subsystem and B) The addressing of input resources. These are the functions directly controlled by JCL statements.

Which statements concerning the JCLLIB statement are true?

  1. There is either a JCLLIB statement for the entire JOB, or a separate one for each EXEC

  2. A JCLLIB statement can not have a statement name.

  3. There can only be one JCLLIB statement per JOB.

  4. A JCLLIB statement must be coded before the first EXEC statement.


Correct Option: C,D
  1. Under no circumstances must a DD statement precede an EXEC statement.

  2. The OPERATION JOB can be coded in position 4.

  3. An OPERATION can be coded beyond position 72, as long as it starts before position 72.

  4. A JCL OPERATION must be followed and preceded by at least one blank.


Correct Option: D
  1. When TIME is added to a JOB statement, the entire job run time is limited to that amount

  2. When REGION=0 is coded, the job will not execute due to the fact that no working storage

  3. The COND parameter on JOB level will place the same condition on every EXEC statement,

  4. TYPRUN=SCAN means that the entire JCL script will be checked for syntax and value


Correct Option: A,C

Complete correctly: When I want a jobstep to be executed only if the previous jobstep has a return code of strictly less than 8, I should add...

  1. COND=(8,LE)

  2. COND=(8,GE)

  3. COND=(8,LT)

  4. COND=(8,GT)


Correct Option: A

Consider the following: //TU00001T JOB ATUT000,TU00001,CLASS=7,MSGCLASS=X,TIME=(,10) //STEP1 EXEC PGM=PROGRAM1,TIME=(,6) //STEP2 EXEC PGM=PROGRAM2 //STEP3 EXEC PGM=PROGRAM3,TIME=(,15) Which of the following statements are true:

  1. Step 1 can use 6 seconds of CPU time.

  2. Step 2 has no time limitations.

  3. Step 3 can use 15 seconds of CPU time.

  4. Each step is limited to its specifically mentioned time, but the entire job can only use 10


Correct Option: A,D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Step 1 can use 6 seconds of CPU time - This option is correct. In the JCL (Job Control Language) provided, STEP1 is specified to have a time limit of (,6), which means it can use up to 6 seconds of CPU time.

Option B) Step 2 has no time limitations - This option is incorrect. In the JCL provided, there is no specific time limit mentioned for STEP2. However, this does not mean that STEP2 has no time limitations. By default, if no time limit is specified, the STEP will have the same time limit as the overall job.

Option C) Step 3 can use 15 seconds of CPU time - This option is incorrect. In the JCL provided, STEP3 is specified to have a time limit of (,15), which means it can use up to 15 seconds of CPU time.

Option D) Each step is limited to its specifically mentioned time, but the entire job can only use 10 - This option is correct. In the JCL provided, the overall job (JOB statement) is specified to have a time limit of (,10), which means the entire job can only use 10 seconds of CPU time. Each individual step can have its own specific time limit, but the total time used by all the steps combined cannot exceed the time limit specified in the JOB statement.

Therefore, the correct answer is A, D.

- Hide questions