COBOL and REXX Programming
Quiz covering COBOL and REXX programming concepts for mainframe systems including data types, file handling, tables, and language-specific features
Questions
Which variable will have the value returned by a subroutine once it completes?
- RC
- RETVAL
- RESULT
- RV
Which of the following can be used to read and write from a file? Choose all that apply
- DATA STACK
- QUEUE
- COMPOUND VARIABLE
- SYMBOLIC VARIABLE
Which instruction is used to control the environment to which commands are passed?
- LIBDEF
- ALLOC
- EXECIO
- ADDRESS
What is the use of PROCEDURE instruction?
- Subroutine should start with this instruction
- To convert all the local variables in the subroutine as global variables
- To convert all the variables used in subroutine as local variables
- Function should start with this instrucion
" What will be value in W1 and W2 after the execution of command PARSE VALUE ‘To be, or Not to be’ WITH w1 ',' w2 "
- W1 = To be W2 = or Not to be
- W1 = W2 = be, or Not to be
- W1 = W2
- W1 NOT= W2
Which program support to run REXX in batch environment?
- IRXJCL
- IKJEFT01
- IKJEFT1B
- IREXJCL
IF "HI" = "hi" THEN SAY "YES" ELSE SAY "NO" Result : YES
- True
- False
Commands you can enter after interrupting the execution of your exec?
- HI
- TS
- HT
- RT
- TE
Select the Valid label name for SIGNAL ON instruction?
- SYNTAX
- ERROR
- NOVALUE
- READY
What does Rexx stand for?
- Reactive Enforcement Execution Exchange language
- Reactived Extendable Exchange language
- Restructured Extended Executor language
- None of the above
What is COMP-2?
- COMP-2 - Single precision floating point. Uses 4 bytes.
- COMP-2 - Double precision floating point. Uses 8 bytes.
- COMP-2 - Single precision floating point. Uses 8 bytes.
- COMP-2 - Double precision floating point. Uses 4 bytes.
How many sections are there in Data Division?
- Six
- Seven
- Four
- Three
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND
- INDEXED
- RELATIVE
- SEQUENTIAL
- All of the above
How many subscripts or indexes are allowed for an OCCURS clause?
- 7
- 6
- 5
- 4
X(100) field can be redefined with a field of X(200)?(True/False)
- True
- False
How is sign stored in Packed Decimal fields?
- Sign is stored as a hex value in the last nibble of the storage.
- Sign is over punched with the numeric value stored in the last nibble.
- Sign is stored in the most significant bit.
- None of the above
How many bytes does a S9(7) COMP-3 field occupy ?
- 7 bytes
- 6 bytes
- 5 bytes
- 4 bytes
Which of the following is False?
- Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.
- An index can only be modified using PERFORM, SEARCH & SET.
- Need to have index for a table in order to use SEARCH, SEARCH ALL.
- None of the above
- In COBOL , the File format : ORGANISATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0 . Is used to reference which file ?
- Fixed Block file
- Fixed Unblock file
- Variable Block file
- Variable Unblock file
Level 66 used for?
- For Renames Clause
- For Condition Names
- Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.
- All of the above