given the following:
77 A PIC 9V9 VALUE 9.5
77 B PIC 9 VALUE 9.
77 C PIC V9 VALUE 0.8
77 D PIC 9
77 E PIC 9
77 F PIC 9V999
what are the contenta of D E nad F after the following
statements are
executed:
COMPUTE F ROUNDED=A+C/B
MULTIPLY A BY C GIVING E
ADD B C A GIVING D ROUNDED
a.F=9.589 E=8 D=1
b.F=9.589 E=8 D=9
c.F=9.589 E=7 D=9
d.F=9.589 E=7 D=1

Answer Posted / amaranatha reddy

this is AMAR(amaran.akg@gmail.com)9043264468

the correct ans: " C "
we 've 4 options, in that no need to check "f" value

next,about "E"

E pic 9(1)
A*C=E
9.5*0.8=7.6[9(1)=7]
hence E=7

now we go C&D for our solution

about "D":
---------

D=B+C+A=9+0.8+9.5=19.3

according to question

"D" i rounded
as per our answer data trunk-ed occur

for numeric literals data assigning is from right to left
-------------
(for integer positions)&left to right(for decimal positions)
------------------------------------------------------------

so Value of "D"=9

--------
hence solution is\ ""C"" \
----------

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1549


How do u write test cases?

1638


Write a program to explain size error.

677


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


how can i see junk values in dclgen or in hostvariable of comp ?

2545






Difference between array and sub-script ?

1169


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5379


How to print 10 to 1 if the input have only 10 digit number?

811


Why would you use find and get rather than to obtain?

690


What is Pic 9v99 Indicates in COBOL?

729


how do you reference the variable unblock file formats from cobol programs

748


How do you define a variable of comp-1 and comp-2?

705


What are the different open modes available in cobol?

722


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701