ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Testing >> Manual Testing
 
 


 

 
 Automation Testing interview questions  Automation Testing Interview Questions (5189)
 Manual Testing interview questions  Manual Testing Interview Questions (6464)
 QA Concepts interview questions  QA Concepts Interview Questions (654)
 Mobile Testing interview questions  Mobile Testing Interview Questions (109)
 Test Cases interview questions  Test Cases Interview Questions (469)
 Test Documents Reporting interview questions  Test Documents Reporting Interview Questions (58)
 Testing AllOther interview questions  Testing AllOther Interview Questions (608)
Question
Swap 2 variables without using a temp variable
 Question Submitted By :: Manual-Testing
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
a,b
a=a+b
b=a-b
a=a-b
 
Is This Answer Correct ?    20 Yes 0 No
Guest
 
Answer
# 2
int x,y;
x=x+y;
y=x-y;
x=x-y;
 
Is This Answer Correct ?    12 Yes 1 No
Mfsi_satyakamm
 
 
 
Answer
# 3
if a=5 and b=3 are two variables, then add them i e
a=a+b; a=8
b=a-b; b=5
a=a-b; a=3
 
Is This Answer Correct ?    11 Yes 0 No
Sheetal
 
Answer
# 4
try this one line swaping of two variables


a=((a+b)-(b=a));
 
Is This Answer Correct ?    3 Yes 5 No
S N
 

 
 
 
Other Manual Testing Interview Questions
 
  Question Asked @ Answers
 
If tester found some bugs in the application then which format they will send it to development team. CTS 4
Who will Prepare the Tracebility Matrix? Cap-Gemini 4
Why should we hire you ? Please explain. Thanks   5
Hello Friends someone can help in giving best institute with address to do testing course please. I heard Mr. Nageswara Rao is best. Can some one give his complete contact details please.   6
What is the testing that a tester performs at the end of unit testing? Mind-Tree 4
what is debugging and whitebox testing and what is the diff? Siemens 9
If you clink ok in the log in page, how will you get to know what is happening in the application? If any of you know the answer for this please post. Thanks   3
how to determine if a test environment is approritate?   1
What is the role of documentation in QA? IBM 1
what is the difference between test senario and test case? ITC-Infotech 3
should we include risk in Test Plan iSoft 5
What do u mean by Top down approach and Bottom up approach? How will u implement these in u r project ?   7
 
For more Manual Testing Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com