How do you test your code?

Answer Posted / lucy

1. Make sure outputs meet spec (by design)
2. Make sure the code can handle all posible inputs
3. Make sure the code has proper error handling
4. Test the time takes to get output (Does it meet
performance requirement)
5. Test how much CPU and memory it use
6. Test other possible factors may affect output(like
network issue, etc)

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one is better- macro or function?

659


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2016


What are c++ tokens?

596


What is a class definition?

618


Show the declaration for a pointer to function returning long and taking an integer parameter.

583






What new()is different from malloc()?

575


Is c better than c++?

623


If a header file is included twice by mistake in the program, will it give any error?

553


Explain the difference between struct and class in terms of access modifier.

699


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1082


When should we use multiple inheritance?

617


What are separators in c++?

627


What is a manipulator in c++?

717


What is different in C++, compare with unix?

611


What is Destructor in C++?

643