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 |
Principles of testing?
Which things do you examine in requrement while writing testcases.
list of methods that is used to document the requirements of a software.
why do u go for whitebox testing,when black box testing is available?
Tell me about Agile scrum and what is your role in Scrum ?
What are the different Testing methodologies?
Hi! I got an interview call for the post of Trainee QA engg .The interview is on Monday(27/08/07).There is going to be a technical written test followed by an interview on Monday.Can anyone plz tell me what exactly is the technical written test for QA like,is it objective or theoretical based. PLZZZZZ reply as early as possible ---- Its URGENT. -- SK
i have a little confusion about asp.net and vb.net is that the web applications called asp.net and windows application called as vb.net please guide if there is a difference between vb.net and windows application or what????I am just a beginner ..pls guide..
How do you estimate staff requirements?
what is the difference between waterfall model & v-model?
Use-cases can provide useful input into the design of black-box and state-based tests of OO software.is it true
What is Regression Testing ? Why do Regression Testing ? Why all the testcase execuation in each time of Regression testing ?