study the data discriptions and answer the questions given below
i)01 ORDER RECORD
05 OUT-HEADER PIC X(50)
05 ITEM-COUNT PIC 99
05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
ON ITEM-COUNT
ii)01 NAME-AND-ADDRESS
05 N-AND-A-LINE OCCURES 5
05 LINE-LENGTH PIC P9
05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
LINE-LENGTH
iii)01 SALES-LIST
05 SALESMAN-COUNT PIC 99
05 SALES PIC 9(6) OCCURS 1 TO 100
DEPENDING ON
SALESMAN-COUNT
iv)01 ORDER-RECORD
05 NO-OF-BRANDS PIC 99
05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
NO-OF-BRANDS
which of the following is true?
a.i) and iii) are valid
b.i) and iv) are valid
c.i) and iii) are not valid
d.all are valid
Answer Posted / prasanna
ORDER RECORD is not a valid declaration fo a group item. It
has to be ORDER-RECORD.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How you can characterize tables in cobol?
how do you reference the fixed unblock file formats from cobol programs
What is a report item?
Which is not true about evaluate statement
How do you differentiate between cobol and cobol-ii?
What is redefines clause in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
Differentiate between structured cobol programming and object-oriented cobol programming.
What are 77 levels used for?
Describe the cobol database components?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Have you used comp and comp-3 in your project? And how?
Why would you use find and get rather than to obtain?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How do you define a variable of comp-1 and comp-2?