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

Testing activity which is performed to expose defects in the interfaces and in the interaction between integrated components is?

0 Answers  


I want write ISTQB exam . Please inform me where is the centre in this exam in Kerala? Is there any exam centre in Trivandrum.(Fees, Date,Time,Centre)

1 Answers  


What is the minimum criteria for white box?

1 Answers   TCS,


Class diagram equals to which of the following diagram?

1 Answers   CTS, Wipro,


What is the formal technical review?

2 Answers   TCS,


To test a function, what has to write a programmer, which calls the function to be tested and pass test data.

0 Answers  


What is CCB and MTBF, why should we use this.

0 Answers  


We r developing one Web Site for construction company. In that Web site we have different option like About Us,Contact Us,Home,Sites,Site Map,Search Etc........ and front page of that web application contains 6 different pictures means single page contain 6 pics etc... write Test plan ,Test Scenarios,Test Case ....

0 Answers  


Following questions were asked in amazon interview during written test for the post of Quality assurance engineer. Note. u can use any scripting language for 2nd 3 rd questions. Logic is important. 1.Write test cases for file transfer using bluetooth and IR in mobile… 2. Input = 193 the output should be displayed as 100+90+3. Write code without using inbuilt functions and procedures 3. string = performance and delimiter = r Write a code to display the output as Pe r For Man Ce Without using split function and inbuilt functions 4. please give correct test data for the remainder in the below program and also for the time TIME: DD MM YYYY HH MM SS Reminder: [ ] minutes

1 Answers   Amazon,


What is cause-and-effect (fishbone) diagram?

0 Answers  


Explain metric?

0 Answers  


Explain branch testing?

0 Answers  


Categories