COBOL and Natural Programming Basics
Questions covering COBOL programming constructs (PERFORM, condition names, logic) and Natural/Adabas concepts (maps, data areas, ISN) used in mainframe environments
Questions
Which of the following is NOT a valid symbol to use in an IF condition
- =
- =<
- =>
- >
When there are several AND or OR connectors, the AND conditions are evaluated first, as they appear in the statement, from left to right. Then the OR conditions are evaluated, also from left to right.
- True
- False
The clause IF A IS NOT POSITIVE is the same as the clause IF A IS NEGATIVE.
- True
- False
Condition names are always in Area B
- True
- False
When a literal is stored in a numeric identifier, it is stored as letters.
- True
- False
Like all other level numbers, the condition name level number 88 also appears in the working-storage section of the data division.
- True
- False
An iteration will continue while the condition is false
- True
- False
Parenthesis don’t change the order in precedence.
- True
- False
An in-line perform never ends with an end-perform.
- True
- False
Condition names use level number 88 and appear in the working storage section.
- True
- False
When using Perform Until it is already known how many times the loop will execute
- True
- False
Can same Local data area (LDA) be used by many programs ?
- True
- False
A Subprogram can reference multiple PDAs?
- True
- False
subprograms and helproutines can have GDA
- True
- False
When a map is used to define a screen layout, a one line message area is automatically reserved
- True
- False
Windows allow you to view a logical page. does it mean A window is always present ?
- True
- False
When you access an existing record or add a new one, you can obtain the ISN and use it subsequently to re-access the record
- True
- False
For is used when the number of iterations is not fixed, and termination of the processing loop is dependent on a dynamic condition.
- True
- False
PERFORM can executes external & in-line subroutine both
- True
- False
FETCH causes the currently active module and all lower level modules to terminate and control to pass to the “fetched” program.
- True
- False