COBOL and REXX Programming

Quiz covering COBOL and REXX programming concepts for mainframe systems including data types, file handling, tables, and language-specific features

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which variable will have the value returned by a subroutine once it completes?

  1. RC
  2. RETVAL
  3. RESULT
  4. RV
Question 2 Multiple Choice (Multiple Answers)

Which of the following can be used to read and write from a file? Choose all that apply

  1. DATA STACK
  2. QUEUE
  3. COMPOUND VARIABLE
  4. SYMBOLIC VARIABLE
Question 3 Multiple Choice (Single Answer)

Which instruction is used to control the environment to which commands are passed?

  1. LIBDEF
  2. ALLOC
  3. EXECIO
  4. ADDRESS
Question 4 Multiple Choice (Single Answer)

What is the use of PROCEDURE instruction?

  1. Subroutine should start with this instruction
  2. To convert all the local variables in the subroutine as global variables
  3. To convert all the variables used in subroutine as local variables
  4. Function should start with this instrucion
Question 5 Multiple Choice (Single Answer)

" What will be value in W1 and W2 after the execution of command PARSE VALUE ‘To be, or Not to be’ WITH w1 ',' w2 "

  1. W1 = To be W2 = or Not to be
  2. W1 = W2 = be, or Not to be
  3. W1 = W2
  4. W1 NOT= W2
Question 6 Multiple Choice (Multiple Answers)

Which program support to run REXX in batch environment?

  1. IRXJCL
  2. IKJEFT01
  3. IKJEFT1B
  4. IREXJCL
Question 7 True/False

IF "HI" = "hi" THEN SAY "YES" ELSE SAY "NO" Result : YES

  1. True
  2. False
Question 8 Multiple Choice (Multiple Answers)

Commands you can enter after interrupting the execution of your exec?

  1. HI
  2. TS
  3. HT
  4. RT
  5. TE
Question 9 Multiple Choice (Multiple Answers)

Select the Valid label name for SIGNAL ON instruction?

  1. SYNTAX
  2. ERROR
  3. NOVALUE
  4. READY
Question 10 Multiple Choice (Single Answer)

What does Rexx stand for?

  1. Reactive Enforcement Execution Exchange language
  2. Reactived Extendable Exchange language
  3. Restructured Extended Executor language
  4. None of the above
Question 11 Multiple Choice (Single Answer)

What is COMP-2?

  1. COMP-2 - Single precision floating point. Uses 4 bytes.
  2. COMP-2 - Double precision floating point. Uses 8 bytes.
  3. COMP-2 - Single precision floating point. Uses 8 bytes.
  4. COMP-2 - Double precision floating point. Uses 4 bytes.
Question 12 Multiple Choice (Single Answer)

How many sections are there in Data Division?

  1. Six
  2. Seven
  3. Four
  4. Three
Question 13 Multiple Choice (Single Answer)

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND

  1. INDEXED
  2. RELATIVE
  3. SEQUENTIAL
  4. All of the above
Question 14 Multiple Choice (Single Answer)

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 7
  2. 6
  3. 5
  4. 4
Question 15 True/False

X(100) field can be redefined with a field of X(200)?(True/False)

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

How is sign stored in Packed Decimal fields?

  1. Sign is stored as a hex value in the last nibble of the storage.
  2. Sign is over punched with the numeric value stored in the last nibble.
  3. Sign is stored in the most significant bit.
  4. None of the above
Question 17 Multiple Choice (Single Answer)

How many bytes does a S9(7) COMP-3 field occupy ?

  1. 7 bytes
  2. 6 bytes
  3. 5 bytes
  4. 4 bytes
Question 18 Multiple Choice (Single Answer)

Which of the following is False?

  1. Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.
  2. An index can only be modified using PERFORM, SEARCH & SET.
  3. Need to have index for a table in order to use SEARCH, SEARCH ALL.
  4. None of the above
Question 19 Multiple Choice (Single Answer)
  1. In COBOL , the File format : ORGANISATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0 . Is used to reference which file ?
  1. Fixed Block file
  2. Fixed Unblock file
  3. Variable Block file
  4. Variable Unblock file
Question 20 Multiple Choice (Single Answer)

Level 66 used for?

  1. For Renames Clause
  2. For Condition Names
  3. Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.
  4. All of the above