Tag: mainframe

Questions Related to mainframe

  1. AND OR NOT

  2. NOT AND OR

  3. OR AND NOT

  4. OR NOT AND


Correct Option: B

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

  1. Run time error

  2. Compilation error

  3. 10

  4. -10


Correct Option: C

File status when attempted to write to a file that has been opened for input.

  1. 42

  2. 16

  3. 6

  4. 32


Correct Option: C

Which of the following is NOT a valid symbol to use in an IF condition

  1. =

  2. =

  3. >

  4. = >


Correct Option: D
  1. Pic Y(4)M(2)D(2)

  2. Pic date(yyyymmdd)

  3. Pic date(8)

  4. Pic X(8)


Correct Option: D
  1. Time out abend

  2. Dataset out of space

  3. Caused by invalid data in a numeric field

  4. Storage Violation error


Correct Option: A