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 following code
01 A1
05 B PIC 99
05 C PIC X(4)
01 A2
05 B PIC 99V99
05 C PIC A(4)
pick out the valid statement from the following
a.A1 and A2 can not have sub-ordinates
b.A1 and A2 can have the same sub-ordinates but must have
same PIC clause
c.there is nothing wrong
d.A1 and A2 can have same sub-ordinates provided they are
not at 01 level

Answers were Sorted based on User's Feedback



study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / ram.g

there is nothing wrong....

Is This Answer Correct ?    15 Yes 1 No

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / dimpy19

c.there is nothing wrong
WORKING-STORAGE SECTION.
01 A1.
05 B PIC 99.
05 C PIC X(4).
01 A2.
05 B PIC 99V99.
05 C PIC A(4).
PROCEDURE DIVISION.
DISPLAY 'HELLO'.
STOP RUN.

Is This Answer Correct ?    0 Yes 0 No

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / satya prakash

a. A1 and A2 can not have subordinates because the size of
the group item A1 is differ from A2.

Is This Answer Correct ?    0 Yes 1 No

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / asmara

B is the right answer because if the level and sub-
ordinates must be same as well as the same PIC clause must
be there. where B PIC clause is differ.

If i am wrong let me inform to my mail..

Regards,
Asmara

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More COBOL Interview Questions

Can we use icetool in cobol program?

3 Answers  


What is comp-1 and comp-2?

0 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

0 Answers  


How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

0 Answers  


What is difference between static and dynamic call in cobol?

0 Answers  


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


What is report-item?

1 Answers   IBM,


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


What are literals?

0 Answers  


Categories