GeekInterview.com
Series: Subject: Topic:
Question: 224 of 231

study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10

This question is related to TCS Interview
Asked by: Interview Candidate | Asked on: Aug 20th, 2002
Showing Answers 1 - 3 of 3 Answers
jimmy

Answered On : Dec 30th, 2006

i found that, it shows an error. it says:"VALUE disallowed.....size conflicts...."decimal point might have been making problems...

  
Login to rate this answer.
shivanilal

Answered On : Apr 22nd, 2008

View all answers by shivanilal

answer is d
c=10

  
Login to rate this answer.
Ashish

Answered On : Aug 23rd, 2012

Tested the prog actually on Mf

Ans is :
A B C :100 00 100

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.