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

Write a C/C++ program to show the result of a stored procedure "PROC_RESET_MAIL" on database "USER_NOTIFY".

2 Answers   ABC, Accenture, DataLand, HCL, Webyog,


why all c++ program must have default constructor?

6 Answers   IBM,


Is c++ used anymore?

0 Answers  


What is a singleton class c++?

0 Answers  


what kind of projects are suitable for c and c++

0 Answers  






write the programme that convert a interger to biniry number

1 Answers   Amazon,


What is a hashmap c++?

0 Answers  


Is c++ high level programming language?

0 Answers  


What size is allocated to the union variable?

0 Answers  


Can we make copy constructor private in c++?

0 Answers  


What is the most useful programming language?

0 Answers  


How many lines of code you have written for a single program?

4 Answers   BoA,


Categories