How can you find dead code!!

Answers were Sorted based on User's Feedback



How can you find dead code!!..

Answer / satish nath siddha

Dead code is something, which is not executed. Generally,
static testing techniques are used to find out dead code.
There are lots of Commercial Off the Shelf (COTS) tools
like Static Analyzer, to perform this static testing. This
is more of a white-box testing, done by developers in most
cases.

Is This Answer Correct ?    6 Yes 1 No

How can you find dead code!!..

Answer / bhargavi

If the program is small, dead code can be detected by
manual code review.for each file,class,module and
interface,list where it is being used.For which no use
location is available is the candidate for removel.
If program is very large it is hard to detect the
unreachable code,in such cases make use available tools.

Is This Answer Correct ?    0 Yes 0 No

How can you find dead code!!..

Answer / 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

More Manual Testing Interview Questions

In V model what are the documents the Testing got from developement team to create test case in Acceptane TC, Integrationm Tc, System Tc?

1 Answers  


What is the Desktop Testing?

1 Answers  


what are things to be tested in job portal websites?

4 Answers   SoftLogic,


what is test log..? what it consists?

7 Answers   MBT,


Analytical Questions like A big square was drawn, then it was split into 4 equal rows and 4 equal columns and asked me to find how many squares.?

12 Answers   RBS, TAG Info Solutions,






What is the role of QA in a company that produces software? How do you scope, organize, and execute a test project?

1 Answers   TCS,


how many buils u r getting in u'r project?

5 Answers   Professional Access,


Difference between QA and Testing?

13 Answers   Deepak Enterprises, IBM, Mechanical, Trigent,


Encapsulation of attributes and operations inside objects makes it easy to obtain object state information during testing. is it true.explain

0 Answers  


Can you explain tpa analysis?

0 Answers  


Pls u can u r mail id to my personal mail id also if they dont want to give u r mail id n comman place

0 Answers  


what is traceability matrix?is it mapping b/w the user requirements and prepared test cases?but i want a detailed explanation?

1 Answers  


Categories