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 are the add-in to the mercurytools to test webbased dotnet applications.answer plz
1.what is use of touch commnad and chmod 2.Testing inter view there 45 questions. 5 for apititude 20 unix + networking 5 for testing question 10 c or c ++ or java 5 perl or shell scripting +or database 3.what do you know in unix? 4.what is netmask 5.what is stack 6.explain osi model 7.a=10; ++a=a++ Then what is value of a? 8.What is sdlc 9.what is stlc 10.What is ip address/Different classses of Ip address 11.write down test cases how to check computer is in nework or not? 12.what is difference between window 98 and windows 2000 13.How to find ip addess of your computer 14. when we will do risk analysis in test plan?
Difference between Equalance class partion and boundary value analysis?
11 Answers Ford, Patni, TCS,
hi plz send me top 30 FAQ's & answers on MANUAL TESTING.... regards Sonia
What is CRUD testing
Write a Test scenario for Outlook Search functionality.
Hi i am new to testing.. Can u plz tell wat is mean by manual testing and how it is done?
What is the job of Quality Assurance Engineer? Difference between the Testing & Quality Assurance job.
How do maintain Risk cases,how will u handle the cases while u facing man power risk & the case after development u find ?
what is protocol in software testing? can u give it with a good example?
4.what is deliverables?what are the things is included in the deliverables?
Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan