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

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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

  1. =
  2. =<
  3. =>
  4. >
Question 2 True/False

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.

  1. True
  2. False
Question 3 True/False

The clause IF A IS NOT POSITIVE is the same as the clause IF A IS NEGATIVE.

  1. True
  2. False
Question 4 True/False

Condition names are always in Area B

  1. True
  2. False
Question 5 True/False

When a literal is stored in a numeric identifier, it is stored as letters.

  1. True
  2. False
Question 6 True/False

Like all other level numbers, the condition name level number 88 also appears in the working-storage section of the data division.

  1. True
  2. False
Question 7 True/False

An iteration will continue while the condition is false

  1. True
  2. False
Question 8 True/False

Parenthesis don’t change the order in precedence.

  1. True
  2. False
Question 9 True/False

An in-line perform never ends with an end-perform.

  1. True
  2. False
Question 10 True/False

Condition names use level number 88 and appear in the working storage section.

  1. True
  2. False
Question 11 True/False

When using Perform Until it is already known how many times the loop will execute

  1. True
  2. False
Question 12 True/False

Can same Local data area (LDA) be used by many programs ?

  1. True
  2. False
Question 13 True/False

A Subprogram can reference multiple PDAs?

  1. True
  2. False
Question 14 True/False

subprograms and helproutines can have GDA

  1. True
  2. False
Question 15 True/False

When a map is used to define a screen layout, a one line message area is automatically reserved

  1. True
  2. False
Question 16 True/False

Windows allow you to view a logical page. does it mean A window is always present ?

  1. True
  2. False
Question 17 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

  1. True
  2. False
Question 18 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.

  1. True
  2. False
Question 19 True/False

PERFORM can executes external & in-line subroutine both

  1. True
  2. False
Question 20 True/False

FETCH causes the currently active module and all lower level modules to terminate and control to pass to the “fetched” program.

  1. True
  2. False