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

What are the challenges you faced in your project (Testing) and in your company?

3065


What kind of testing to be done in client server application and web application? Explain

1248


Can i get answers for telecom testing for eg telecom billing rating can be tested

4000


What is common interface?

2028


any one giv test cases for wordpad using equivalence class partioning

3189


What are the advantages of black box testing?

1139


What are microsoft 6 rules?

1279


Do you know anything about Set Top Boxes?

9796


What is six sigma?

1398


How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.

3135


What is a failure?

1312


For any web application, what are the possible login features that should be tested?

1409


how will the test plan is pepared in ur organisation>?

2107


plz send the test scenarios and test cases for "user name should contain 4 to 8 chars and they should have only vowels"

2245


List the type of testing perform to test microsoft excel 2003 give atleast 1 example of each type

1996