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 (5188)
 Manual Testing interview questions  Manual Testing Interview Questions (6463)
 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
 
Can you explain inventories?   1
I have planned to take up exam in june. It would be of great help if u can send across some ISTQB material. Kindly mail me at keeran.rr@gmail.com. Thanks in advance.   3
What mean by STLC (S/W testing life cycile)?   10
I hope so many people are using gmail accout. My basic question is the defference between gmail and other mails.   2
What is meant by Risk Analysis? Accenture 5
What is manual testing?Is any different types of testing in this?   8
what is testing process in related to Application testing   2
Any body can explain how do we find Duplicate Defects.   9
There is an help option in one window, which consists of 100 pages. I want to test same word from every page. How can I do this in 5 minutes? DELL 6
what is difference b/t severity and priority Tech-Mahindra 4
1.. what is mean by data base testing and what are the important things you want to check while in database testing ? IBM 1
which document we prepare first whether test plan or test case document   2
 
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