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

What is do..while loops structure?

0 Answers  


Is ca high or low level language?

0 Answers  


Types of storage and scope of each type

2 Answers   CA,


Explain the advantages of using friend classes.

0 Answers  


Is c++ used anymore?

0 Answers  






What is the use of 'using' declaration in c++?

0 Answers  


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

0 Answers  


Is c++ platform dependent?

0 Answers  


What is a class template?

0 Answers  


Can we define function inside main in c++?

0 Answers  


When to use Multiple Inheritance?

6 Answers  


Categories