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 (5163)
 Manual Testing interview questions  Manual Testing Interview Questions (6452)
 QA Concepts interview questions  QA Concepts Interview Questions (651)
 Mobile Testing interview questions  Mobile Testing Interview Questions (109)
 Test Cases interview questions  Test Cases Interview Questions (466)
 Test Documents Reporting interview questions  Test Documents Reporting Interview Questions (58)
 Testing AllOther interview questions  Testing AllOther Interview Questions (607)
Question
Swap 2 variables without using a temp variable
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Swap 2 variables without using a temp variable
Answer
# 1
a,b
a=a+b
b=a-b
a=a-b
 
Is This Answer Correct ?    20 Yes 0 No
Guest
 
  Re: Swap 2 variables without using a temp variable
Answer
# 2
int x,y;
x=x+y;
y=x-y;
x=x-y;
 
Is This Answer Correct ?    12 Yes 1 No
Mfsi_satyakamm
 
 
 
  Re: Swap 2 variables without using a temp variable
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
 
  Re: Swap 2 variables without using a temp variable
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 U ANY 1 PLEASE EXPLAIN THE BELOW QUESTION AND ANSWER? Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage? Read p Read q IF p+q > 100 THEN Print "Large" ENDIF IF p > 50 THEN Print "p Large" ENDIF a) 1 test for statement coverage, 3 for branch coverage b) 1 test for statement coverage, 2 for branch coverage c) 1 test for statement coverage, 1 for branch coverage d) 2 tests for statement coverage, 2 for branch coverage ISTQB 7
What is network Entry procedure in WIMAX -TEch mahidra question? Tech-Mahindra 3
Importance (Testing)QC and QA activities of a company?   3
i have worked in 11 month duration project. interviewed person asked me for wat purpose you worked in that project and wat you worked. you worked for a long time in one project. its loss for the company you worked. CTS 4
Which are the possible test cases can U write for Combo box validation ?   9
Do I have to write separate test cases for entering special characters, blank space, numbers in First name field ? Or should I create single test case for it? If yes then how?   4
you need to deliver the product on monday, but in friday ur test cases get crashed, what you will do? CTS 3
is retesting and regression same SAP-Labs 4
please tell me the test cases for the following scenario 1. Two windows are there in one window pin code text box and ok button will be there.... we need to enter the pin code no and then click on ok........ basing on this in second window post offices address should come...........what are the imp test cases for that..... IBM 8
What is Alpha testing/ Beta testing?   4
what will u do if ur given 20 days to complete a testing activity but ur manages to complete it in 10 days? how will u spend the next 10 days?   5
could u please suggest good coaching center in hyderabad to learn testing for a fresher   21
 
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