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...

How can you find dead code!!

Answer Posted / mfsi_chinmayb`

Hi
Dead code (a.k.a Unreachable code),as the name suggests is
the portion of the code which is never executed.
Point out the word NEVER , as the code above that made the
break before that and the execution of that never come.
Ex:
int function(a,b)
{
int z;
return a+b;
z=a*b; //It will never be executed
}

The above is the example for a Statement . There might a big
function which is never executed.In larger programs 5-10% of
dead code can be found.

Note : If a program is smaller in size error code can be
checked manually.But for larger program we have automated
tools like: TrueCoverage etc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to creat 2 test plan in 2 different environment exp:tour and travel

2352


Need to know about Quality Center in brief

1922


what are the possible test cases for online jobs search portal..if its a job seeker module and any 1 if u had worked on this proj pls share the bugs with sev and priority pls frends i need replies for these queries ..thanks in advance

7552


Hello can anybody list out supported and unsupported browsers for Window OS,Android OS,MAC OS Ubuntu

1558


How to validate a Testcase.and is the testing Methodology.

2290


What exactly is quality control?

1101


Explain what is exhaustive testing?

1246


Our software designers use UML for modeling applications. Based on their use cases, we would like to plan a test strategy. Do you agree with this approach or would this mean more effort for the testers.

2102


what is the difference between website and web based application ?

2735


What is verification in software testing?

1119


How do you know the code has met specifications?

1305


How to explain the Insurance project in the interview?

1625


Why do we need different environments and different data? What is the other name for environment? Justify your explanation ? real time experts pls xplain?

2781


What is an exit criteria?

1088


what is prototyping model,RAD model V model, spiral model?????

5544