Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is

Answer Posted / suputhru

I agree with Rama Krishna ans: 10

05 X PIC 99 VALUE 10.
ADD 40 X TO X. ----------- x=x+40 x=10+40 x=50
COMPUTE X = 3 * X - 40.------x=(3*50)-40 x=150-40 x=110 since x pic 99--


finally x=10

antheeeeeeeee.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the rrds file formats from cobol programs

805


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1964


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

748


Which division and paragraphs are mandatory for a COBOL program?

715


) how do u code after getting data?

1584






What is the utilization of copybook in cobol? Could we utilize a similar copybook?

725


What are the various section in data division and briefly explain them.

708


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10672


What is rmode(any) ?

690


What are the pertinent COBOL

2054


what is the use of outrecord?

1777


How do define dynamic array in cobol.

679


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

2014


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

689


How to know whether the module is dynamical or statistical?

666