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

Why isn't sizeof for a struct equal to the sum of sizeof of each member?

752


Which programming language's unsatisfactory performance led to the discovery of c++?

1060


List the types of polymorphism in c++?

842


What is problem with overriding functions?

783


Which one is a preferred language C or C++? Why?

834


Is recursion allowed in inline functions?

803


What is c++ & why it is used?

814


Which bit wise operator is suitable for turning off a particular bit in a number?

860


Explain how overloading takes place in c++?

772


What are the 2 main types of data structures?

814


What are the two types of comments, and how do they differ?

786


Explain static and dynamic memory allocation with an example each.

849


What is istream and ostream in c++?

805


What are the manipulators in c++?

779


What is the purpose of extern storage specifier?

837