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

Answers were Sorted based on User's Feedback



there is a function called changevalues(x,y)inside this function x=x+y/2 y=y+x+5 end so i am ..

Answer / 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

there is a function called changevalues(x,y)inside this function x=x+y/2 y=y+x+5 end so i am ..

Answer / saravana

x=11
y=18
after execution of first statement x value changes to 11 so in second statement y=2+11+5
so y=18

Is This Answer Correct ?    1 Yes 0 No

there is a function called changevalues(x,y)inside this function x=x+y/2 y=y+x+5 end so i am ..

Answer / suneetha

Ans:

X=6
Y=17

Solution:

changevalues(10,2)

x=10+2/2=6
y=2+10+5=17

Is This Answer Correct ?    4 Yes 7 No

there is a function called changevalues(x,y)inside this function x=x+y/2 y=y+x+5 end so i am ..

Answer / swamy

X=6
Y=17

Solution:

changevalues(10,2)

x=10+2/2=1
y=2+10+5=17

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More Testing AllOther Interview Questions

Testplan & Tesdata a.)Testers workbench b.)Testing Strategy c.)Testing Policy d.)Testing Measurements

1 Answers   Amdocs,


Share 2 high complexity and 2 low complexity test cases for a coke vending (ATM) machine.

0 Answers   HPCL, Hughes Systique Corporation,


What is the difference between uat (user acceptance testing) and system testing?

0 Answers  


Explain what test plan is?

0 Answers  


The purpose of the requirement phase is

0 Answers  






have u write any sanity testcases?

0 Answers   MBT,


What is a system administrator?

0 Answers  


Explain sanity testing?

0 Answers  


Explain exhaustive testing?

0 Answers  


what is the role of external testing companies?

0 Answers  


Hi, Can nybody tel me the how much a Manual tester should know about Database and its connections with the web application?

3 Answers  


What is pdr - peer design review?

0 Answers  


Categories