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
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Name the divisions, which are available in a cobol program?
Write the code to count the sum of n natural numbers.
Write some characteristics of cobol as means of business language.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
A table has two indexes defined. Which one will be used by the SEARCH?
When is inspect verb is used in cobol?
What is perform what is varying?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
what is search and searchall?what is the diffrence between them?give an best example?
How to know whether the module is dynamical or statistical?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Have you used comp and comp-3 in your project? And how?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps