there is a function called changevalues(x,y)inside this
function
x=x+y/2
y=y+x+5
end
so
i am calling function in one program as changevalues(y,x)
what is the output if x=2 and y=10(ignore exact programatic
statements)

please can any one provide me answer for this immediately

Answer Posted / suman.p

Hey guys

x=10+2/2 is supposed to be 11, not 1. Forgot operator precedence?

so, x=11 and y=17.

That's it!

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain acceptance testing?

751


Explain inspection?

702


Explain failure?

746


What is data flow analysis?

850


Hi All My name is Kiran Krishna, Can I know what are the basic testing scenarios that we need to include in the application that is hosted on the Clustered environment of weblogic 9.2 version. Oracle version is 9 OS : Window 2000 Basically I needs some General testing steps to test the hosted application . Please help me out and send me the suggestion at Kiran.Krishna@arisglobal.co.in or Kirank_k@yahoo.com

1909






What is utilization?

855


Explain in a testing project what testing activities would you automate?

948


Explain fault?

762


Explain unit testing?

792


What are the advantages of designing tests early in the life cycle?

979


Is it true that we can do system testing at any stage?

730


What is software requirements specification?

736


How can I get free .NET add-in for QTP9.2. What is the process to install any add-in?

2124


What is dependency testing?

810


What is difference between Agile and V model? Explain

2016