How can you find dead code!!
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is Sanity Testing?
What is Management Testing?
.In languages testing, what is the fixed part and changing part?
anybody having idea about mobile testing materials
Is an "A fast database retrieval rate" a testable requirement?
Who should you hire in a testing group and why?
What are the stages in the Test Development Life Cycle?
What if the project isn’t big enough to justify extensive testing?
What kind of interview questions can I expect for an entry level(2 years of exp) software testing position. I am attending for the first interview and bit nervous what to prepare and how to prepare.the company I applied is a product(anti virus software) based company. so what kind of questions can I expect .please help me for preparing .
where do u store Testcases and where do u store versions
ad-hoc testing is not organized, it's not repeatable, it can't be tracked, and when it's complete, there's no proof that it was ever done. is it?
Which appraisal method class is the best?