Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

I have the experience of about 1yrs and 6 months in software testing. Now i must have to shift from this due to unavailablity of projects. But for now I am not able to find any opening in testing with 1+ yrs experience. Plz anybody mail me if anybody finds any openings. Thank you

2 Answers  


What is a GAP analysis?

1 Answers  


What is interface analysis?

0 Answers  


what is the difference between 8.2 and 9.2 versions of qtp tool

0 Answers   AppLabs, TCS,


What is the difference between top-down and bottom-up testing?

0 Answers  


hi am fresher learning software testing so how will b interviw environment for fresher testers.On which topic i have to concentrate more(MANUAL r AUTOMATED)

1 Answers  


What is test item?

0 Answers  


What is v&v?

0 Answers  


Please understand me.....will there be any age criteria in software - testing? now i am 37.i have completed Msc (elec).i got experience in marketing,one year in call center.can i try for s/w testing? please suggest.i am very mech interested in testing and i have good knowledge in testing also.....please suggest

1 Answers  


What is Test Script Planner

0 Answers  


How does a test coverage tool work?

0 Answers  


Ref.doc.name | Section | module | Testcase ID|Testcase description|Test Input | Expected Result | Actual Result | Status for the above format give one example

1 Answers  


Categories