Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



study the data discriptions and answer the questions given below i)01 ORDER RECORD ..

Answer / craig

Actually, none will compile because they are all missing
periods, and several have typos.

Assuming they all had periods where required, these are the
other errors...

i would not compile because ORDER RECORD needs a '-' ie.
ORDER-RECORD.

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 would not compile because LINE-LENGTH has a picture
clause of P9, which is invalid

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 will compile, but SALESMAN-COUNT cannot have a value
greater that 99

iii)01 SALES-LIST
05 SALESMAN-COUNT PIC 99
05 SALES PIC 9(6) OCCURS 1 TO 100
DEPENDING ON
SALESMAN-COUNT

iv will compile and has no errors other than missing
periods that I see.

iv)01 ORDER-RECORD
05 NO-OF-BRANDS PIC 99
05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
NO-OF-BRANDS

Is This Answer Correct ?    3 Yes 1 No

study the data discriptions and answer the questions given below i)01 ORDER RECORD ..

Answer / suriya prakash

C IS THE ANSWER

Is This Answer Correct ?    0 Yes 0 No

study the data discriptions and answer the questions given below i)01 ORDER RECORD ..

Answer / ram.g

what's the wrong in option (i)? ...

Is This Answer Correct ?    0 Yes 0 No

study the data discriptions and answer the questions given below i)01 ORDER RECORD ..

Answer / 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

More COBOL Interview Questions

How do you come out of an EVALUATE statement?

3 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?

1 Answers   CTS,


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.

5 Answers  


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


Differentiate COBOL and COBOL-II?

0 Answers  


What is the mode in which you will OPEN a file for writing?

4 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


i want to learn mainframes. i completed MCA ,whats the future of mainframes

5 Answers  


What should be the sorting order for SEARCH ALL?

5 Answers  


Categories