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


Consider the following code:

77 A PIC 99V99 VALUE 55.35
77 B PIC 99V999 VALUE 32.754

ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!"

What will be the result ?
(a) A=88.10, B=32.754
(b) A=87.00 B=32.754
(c) A=87.10 B=32.754
(d) ERROR!!! will be DISPLAYed on the screen.

Answers were Sorted based on User's Feedback



Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ..

Answer / milind

The previous answer is wrong.

The correct answer is (a) 88.10.

Is This Answer Correct ?    18 Yes 4 No

Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ..

Answer / g venkatesh

Answer is D.
as data name length is 9(2).9(2) after the operation
the value will get over flow.
it will routed to on size error display

Is This Answer Correct ?    4 Yes 1 No

Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ..

Answer / vel

D

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More COBOL Interview Questions

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?

1 Answers   CTS,


01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


How to retain the Duplicates in the one records?

3 Answers   CS,


What is the point of the REPLACING option of a copy statement?

3 Answers  


) What is the use of IGNORE?

1 Answers   IBM,


What is the difference between PIC 9.99 and 9v99?

7 Answers  


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


Categories