Tag: mainframe

Questions Related to mainframe

"QSTACK" "NEWSTACK" "NEWSTACK" "QSTACK" What will the last "QSTACK" will return.

  1. Returns 0

  2. Returns 1

  3. Returns 2

  4. Returns 3


Correct Option: D
  1. Will contain zeroes if numeric and spaces if alphabetic or alphanumeric

  2. Will contain spaces for all variables

  3. Will contain an undefined value

  4. None of the above


Correct Option: C
  1. Elementary level item

  2. Condition names

  3. Initialize

  4. Renames


Correct Option: D

What is a 77 level in COBOL used for?

  1. Elementary level item

  2. For condition names

  3. Initialize

  4. Renames


Correct Option: A
  1. The file will be created and will be opened for reading and writing

  2. The open fails and error occurs

  3. File will be created and opened for writing only

  4. The file will be created and opened for reading only


Correct Option: B
  1. Elementary level

  2. For condition names

  3. Initialize

  4. Renames


Correct Option: B

What happens when the access mode of an indexed file is DYNAMIC?

  1. The records will be accessed one after the other in order of primary key

  2. The file will be accessed one record at a time and for each access an exact value for the primary key will be specified

  3. Both 1 and 2

  4. None of the above


Correct Option: C