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 got an offer from TCS as a software engineer, But it says I will work for TCS BPO, Is there any difference in policies of TCS BPO and TCS-IT Services.How is the Working enviornment and appriasal procedure

0 Answers  


Overall what percentage of positive and negetive testcases would you write?

5 Answers   Accenture,


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

0 Answers   AppLabs, TCS,


what is control sheet?

2 Answers   IBM,


How to test stored procuders???/

1 Answers   TCS,


hi, everyone who answers my que this is prasad i have done b.tech in 2010 and i have done testing course and also written istqb certificate but when i attend any interview they are only looking for exp people so i thought to keep fake of one year and my % in b.tech is also some what less its 58. so, if i keep the fake i don't know the real time experience and what should i mention in my resume if i go for manual testing side and some basic terminology that software companies uses.. plz help me out

1 Answers  


What is the role of quality assurance in a product development lifecycle?

0 Answers  


Difference between the Web based and client server testing. Explain using example..

1 Answers  


Hi I have done M.Tech Biotechnology from Anna University,but i did not get Job in my field.so I tried to learn Software testing . If i do ISQTB certifications , i will get job in MNC or not .Please let me know please mail to skirubanandan@lycos.com

2 Answers  


Do you know what the mean of cmm and tmm?

0 Answers  


What the meaning of code walk through is?

0 Answers  


What is eexception?

0 Answers  


Categories