How do you test your code?

Answers were Sorted based on User's Feedback



How do you test your code? ..

Answer / 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

How do you test your code? ..

Answer / reejusri

We can test our code by :

1. Dry running
2. Unit testing
3. Ask someone else to input and run your program

Beyond that tester will come into picture.

Is This Answer Correct ?    9 Yes 3 No

How do you test your code? ..

Answer / chithra

using Compiler(Alt +F9)

Is This Answer Correct ?    7 Yes 5 No

How do you test your code? ..

Answer / saranya

by compiling (alt+f9) and
by executing(ctrl+f9)

Is This Answer Correct ?    6 Yes 4 No

Post New Answer

More C++ General Interview Questions

Keyword mean in declaration?

0 Answers  


Can we use pointers in c++?

0 Answers  


When does a name clash occur?

1 Answers  


Describe the advantages of operator overloading?

0 Answers  


Define pointers?

0 Answers  






Why c++ does not have finally?

0 Answers  


What is input operator in c++?

0 Answers  


What is c++ in english?

0 Answers  


Explain class invariant.

0 Answers  


What is the use of vtable?

0 Answers  


Differentiate between late binding and early binding.

0 Answers  


Distinguish between new and malloc and delete and free().

0 Answers  


Categories