0

mainframe Online Quiz - 7

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

If you don’t code a MSGLEVEL on the JOB Statement, by default it assumes

  1. MSGLEVEL=(1,1)

  2. MSGLEVEL=(1,0)

  3. MSGLEVEL=(0,1)

  4. MSGLEVEL will not be used


Correct Option: A

If you don’t code a MSGLEVEL on the JOB Statement, by default it assumes

  1. MSGLEVEL=(1,1)

  2. MSGLEVEL=(1,0)

  3. MSGLEVEL=(0,1)

  4. MSGLEVEL will not be used


Correct Option: A

In a Job, one EXEC Statement is a must for each step

  1. True

  2. False


Correct Option: A

If both a PGM= or a PROC= is not used in a step of a Job then by default it assumes that you are trying to run a

  1. Instream Procedure

  2. System Procedure

  3. Catalogued Procedures

  4. dummy job


Correct Option: C

The default Load Library on Mainframes is

  1. SYS2.LINKLIB

  2. SYS1.LINKLIB

  3. SYS7.LINKLIB

  4. SYS4.LINKLIB


Correct Option: B

At a time, upto ____ jobs can read from the dataset if DISP=SHR is used

  1. 121

  2. 127

  3. 255

  4. 516


Correct Option: B

find the Maximum space allocated from the below statement: SPACE=(TRKS,(10,2))

  1. 42 Cylinders

  2. 42 Tracks

  3. 40 Cylinders

  4. 40 Tracks


Correct Option: D

//MYPROC PROC //STEP01 EXEC PGM=IEFBR14,TIME=10 //INFILE DD DSN=XXXXXX.XXXX.XX,DISP=SHR //OUTFILE DD DSN=XXXXXX.XXXX.XX,DISP=SHR How to nullify the TIME from the above proc in a Job?

  1. //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=0

  2. //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=NULL

  3. //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=

  4. None of the above


Correct Option: C

Default value for TIME parameter

  1. 256MB

  2. 32MB

  3. 30MB

  4. set by installation


Correct Option: D

TIME=MAXIMUM allowa job to run the maximum time which is

  1. 357912mins

  2. 357812mins

  3. 357712mins

  4. 357612mins


Correct Option: A
  1. Which clause can be used instead of checking for FILE STATUS = 10?
  1. RECORD NOT FOUND

  2. AT END

  3. DUPLICATE RECORD

  4. END OF FILE


Correct Option: B
  1. SEQUENTIAL

  2. DYNAMIC

  3. INDEX

  4. ALL OF THE ABOVE


Correct Option: D
  1. Which level is used for condition clause?
  1. 77

  2. 1

  3. 5

  4. 88


Correct Option: D
  1. What level is used for RENAMES clause?
  1. 66

  2. 77

  3. 88

  4. 90


Correct Option: A
  1. WORKING-STORAGE

  2. FILE SECTION

  3. CONTROL SECTION

  4. LINKAGE SECTION


Correct Option: B
  1. Name the divisions which is not in COBOL program.
  1. IDENTIFICATION

  2. ENVIRONMENT

  3. DATA

  4. WORKING


Correct Option: D

3.How do you define a table/array in COBOL using INDEX?

  1. 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

  2. 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

  3. 01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES

  4. 01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX


Correct Option: A

AI Explanation

To define a table/array in COBOL using an index, you can use the OCCURS clause along with an INDEXED BY phrase.

Option A) 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX - This option is correct. It defines a table/array named ARRAY2 with a length of 6 characters, occurring 20 times. It also includes the INDEXED BY phrase, which associates an index (WS-INDEX) with the array.

Option B) 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX - This option is incorrect. It defines a single occurrence of ARRAY2 without the necessary parent group (ARRAYS) and does not include an INDEXED BY phrase.

Option C) 01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES - This option is incorrect. It defines a table/array named ARRAY1 with a length of 9 characters, but it does not include the OCCURS clause or the INDEXED BY phrase.

Option D) 01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX - This option is incorrect. It uses the 88 level, which is typically used for condition names, rather than the OCCURS clause for defining a table/array.

The correct answer is A) 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX. This option correctly defines a table/array with the OCCURS clause and includes the INDEXED BY phrase to associate an index with the array.

4.Which mode of opening is required when REWRITE is used?

  1. UPDATE

  2. OPEN

  3. I-O

  4. INPUT


Correct Option: C

7.What is comp-3 usage ?

  1. packed decimal

  2. binary usage

  3. Hex

  4. Single precision floating point


Correct Option: D
- Hide questions