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

What is outputs?

0 Answers  


what is the role of external testing companies?

0 Answers  


hi,what are the weaknesses of jasper report . While testing jasper report what is most important thing to test , where there are maximum chances of getting defects .

1 Answers  


Mention what bottom-up testing is?

0 Answers  


What do you call a collection of descriptions of the data items for the benefit of programmers and others who might need to refer to them? 1. A data dictionary 2. A data model 3. A repository 4. A specification 5. A data map

1 Answers  






Identification, control, auditing, and status accounting are functions of which one of the following? 1. Configuration management 2. Quality assurance 3. Verification and validation 4. Testing 5. Inspection

1 Answers  


Tell me about the risk-based testing.

0 Answers  


In an Testing interview the following question asked. who will write usecases?

5 Answers   MBT,


What is your daily routine in your office?

0 Answers   ABC,


while testing a bug has been found and reported but it was not fixed and delivered to the client what will be the effect on it?

1 Answers   Core Solutions,


what is the actual time to stop testing a product.

2 Answers  


What parameters to consider for Performance Testing?

6 Answers   Virtusa,


Categories