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 the scalability testing
Hi, i am non it background, now i am ready to face testing interviews. Please explain how to face interviews. Is there any standard questions for interview point of view.
1...HOW TO RETRIEVE NUMBER FROM ALPHA NUMERIC VALUE? 2.. HOW TO CAPTURE A DYNAMIC VALUE IN WEB APPLICATION? 3.. HOW TO GET THE OUTPUT VALUE FROM ONE TRACTION AND USE THIS OUTPUT VALUE AS INPUT OF ANOTHER TRANSACTIONS? 4... HOW TO COUNT A WEB TABLE ROW? ... WHAT IS QC LIFE CYCLE? 6...WHAT IS IMPACT ANALYSIS? HOW TO DO IMPACT ANALYSIS IN PROJECT?
What is agile testing and why is it important?
What r the things,u prefer and prepare before starting testing?
Name three reasons why the tester may choose to record in Analog mode.
How to do risk management?
What is severity and Priority,gave me a example of High Severity and Low Priority and Vice Versa.
How will you determine if the architecture of any web site is of two tiers, three tiers or multi tier?
Waht is the diffrence between static testing and dynamic testing,what u do instatic testing as a black box test engineer
What is meant by code walkthrough?
Suppose u have a ICICI Home Page & there is a option link "Bill Payments" so once u click this link then new child window will be open where u have a 1. "amount(Text box)" 2.Auto Debit monthly (check box) & 3. "OK" & "Cancel" Button. Please write the test cases for this Integration Test cases also.