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

I need your help, actually am facing lots of problem in interview am not able to answer in right way what ever questions asked about project. Could you please answer few questions? You must have seen the project I have mention as current project so please help on this, tell me how to explain project in details am prepare on HR module but don’t know how to explain it properly. If you can send me few documents like SRS, and few test case that will help me to get the clear picture, and want ask u what is tier1, tier2, and tier3 in project.

0 Answers  


what is meant by defect bash?

4 Answers   CSC,


have u involved in reviws ? wt type reviews u done?

3 Answers   Accenture,


What is Cause-Effect Graphing Techniques in testing ?

2 Answers   IBM,


What are the difference between Water fall model and V- Model? Which one is better? Why 80% of Software companies using Water fall model nowadays?

5 Answers   iGate,






What is your approach when requirements change continuously?

0 Answers  


What is meant by Multi Unit Testing?

1 Answers   iGenius,


What is Defect Seeding?

3 Answers  


Waht is the difference between system test case and functionlity test case?.

3 Answers   Kumaran Systems,


wat is meant by frontend and backend testing

2 Answers  


What is difference between Client-Server and Web based architecture.?

2 Answers   Disha Tech, Verisoft,


what did your base to your test cases?

9 Answers  


Categories