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 |
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is polymorphism in c++? Explain with an example?
Where must the declaration of a friend function appear?
If dog is a friend of boy, is boy a friend of dog?
Why do we learn c++?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
Is c++ fully object oriented?
What are the advantages of using const reference arguments in a function?
How we can differentiate between a pre and post increment operators during overloading?
Can you sort a set c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is meant by iomanip in c++?