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...


Determine the total no of bytes in the following.

01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.

Answers were Sorted based on User's Feedback



Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefi..

Answer / jai

01 rec1.
02 a pic x(6) == 6
02 b redefines a. == 6
03 c occus 6 times pic 9. == 6
02 d occurs 6 times.
03 e pic x(5) ==30
03 f pic 999. ==18
------
66

Is This Answer Correct ?    0 Yes 1 No

Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefi..

Answer / jayaprabhu

01 rec1.

02 a pic x(6)-------------------- 6 bytes
02 b redefines a.
03 c occurs 6 times pic 9.------ 6*1(pic 9 ie why we
have mul with 1 )------------------- 6 bytes
02 d occurs 6 times pic 9.------- (6*1) 6 bytes
03 e pic x(05)------------------- 5*6 =30 bytes
03 f pic 999. --------------------- 3*6=18

6
6
6
30
18

66

if you remove e f

18

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?

1 Answers  


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


What is report-item in COBOL?

0 Answers   Arigo Infotech,


How do you define a sort file in JCL that runs the COBOL program?

6 Answers   Syntel,


What COBOL construct is the COBOL II EVALUATE meant to replace?

1 Answers  


how do u link sub pgm to main pgm ?

2 Answers   TCS,


What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


What is CALL statement in COBOL?

4 Answers  


How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree

3 Answers   Merrill Lynch,


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


Categories