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

Usually how many members work in a project & how members are now working in a project. If there r difference between the above two questions why it is so?

0 Answers  


why we perform stress-testing,resolution-testing and cross- browser testing?

1 Answers  


Explain virtual memory?

0 Answers  


what is conventional Testing? and what is unconventional testing?

8 Answers   IntraLogic,


What is variable trace?

0 Answers  






Hi i am urgently in need of the ISTQB sample exam questions by John A Estrella and Maria C Estrella as i am going to take the exam at the end of this month. Please send the ecopy of this book to tselvi83@yahoo.co.in

0 Answers  


Testing an SAP B1 -Add -on ? How?Different types of testing done, functional areas to be tested, any check list for testing SAP B1 as SAP takes care of Date fields, validation of text fields, telephone fields etc.... ?What to be tested and how?

0 Answers  


What makes an inspection different from other review types?

0 Answers  


What is a user manual?

0 Answers  


What is failure?

0 Answers  


What is zoning?

1 Answers  


Explain how you would allocate a task to team members?

0 Answers  


Categories