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 (5206)
 Manual Testing interview questions  Manual Testing Interview Questions (6493)
 QA Concepts interview questions  QA Concepts Interview Questions (656)
 Mobile Testing interview questions  Mobile Testing Interview Questions (115)
 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 (609)
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
 
what is Ping tests? Crea 1
Explain about Defect Leakage? HCL 1
What is the difference between Severity and Priority? IBM 1
In one company i got a question like this..... Find bugs in this sentance? TCS 2
What is open issue?please explain in detail?   6
what are the test cases for one rupee coin box ( telephone Box)   4
explain current project? Verizon 7
What Is iterative testing? Explain with example.pls thanking u in advance   2
what is production defects? TCS 1
What is the client-server, standalone, web-based application. Post the correct answer.   1
If you find a bug and the developer says it is as-designed, what can you do? Wells-Fargo 3
what is STUB & DRIVERS ?   6
 
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