How do you test your code?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / saranya
by compiling (alt+f9) and
by executing(ctrl+f9)
| Is This Answer Correct ? | 6 Yes | 4 No |
How do you generate a random number in c++?
What will the line of code below print out and why?
Is c++ an integer?
What is difference between class and structure in c++?
Does c++ support multilevel and multiple inheritances?
Generally variables are stored in heap memory. When he variables are created in stack?
Describe the advantage of an external iterator.
What is static class data?
What is vector string in c++?
Write any small program that will compile in "C" but not in "C++"
What is a dangling pointer in c++?
What's the most powerful programming language?