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 |
What is function prototyping?
Can create new c++ operators?
What are the three forms of cin.get() and what are their differences?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What is searching? Explain linear and binary search.
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What is microsoft c++ redistributable 2013?
Should I learn c or c++ or c#?
State the difference between delete and delete[].
What is the handle class?
What is virtual base class?
What is lvalue?