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

If tester report a bug & developer open it & bug is not occur there. What sud tester do in this situation??

4 Answers  


Explain how to test the online trading software? How can we get the Feed values? Where they will store? How we test the Personal Trading account because it is time constraint.

0 Answers  


what is the difference between bug and defect? what is the definition of bug? what is the definition of defect?

3 Answers   Core Solutions,


in your organization in what way(phases) s/w is developed and in what way testing will be conducted?

4 Answers  


what is the difference between reference key and foreign key

2 Answers   AZTEC,






can u tell me the recently u raised the critical defect? tell me u r own plzzzzzzz yar?

2 Answers  


What types of documentation are used in qa?

0 Answers  


those who want to gain real time experience feel free to contact me

1 Answers  


what r the fields present in requirement tracability metrice (RTM)?please explain each and every field as i m not aware.

3 Answers  


How will you give estimation when preparing Test Plan

1 Answers   Virtusa,


What will be your approach if a particular script in Load Test fails?

0 Answers  


how will you estimate of your website?

0 Answers  


Categories