| |
GeekInterview.com > Placement Papers > TCS > COBOL
| Print | |
Question: Consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWANCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWANCES has a value of 250, what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
|
| September 09, 2005 23:58:58 |
#1 |
| Praveen Kumar |
Member Since: September 2005 Total Comments: 6 |
RE: Consider the following piece of code 01 GROSS... |
Ans is b ie.. 01000250. Reason is GROSS-PAY is group variable and will display the contents of both the sub variables defined under it. |
| |
Back To Question | |