Given a simple program designed to take inputs of integers
from 1-1000 and to output the factorial value of that
number, how would you test this program? You do not have
access to the code. Please be as specific as possible.
Answer Posted / tudor
write some programs to take a string input assumed to be
1000! 999! 500! or 1!, test the asspumption. and ouput the
result "OK" or "NOT OK"
Pass the output of program to be tested to your programs
using some scripting
e.g:
echo "testig 1!"
echo `echo "1" > targetprogram | test1fact`
echo "testig 500!"
echo `echo "500" > targetprogram | test500fact`
...
Also should test the output for 1001, 0, xyz, -1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the header file for setw?
What are c++ redistributables?
What is the full form of dos?
What is wrapper class in c++?
What is cin clear () in c++?
Define upcasting.
Are iterators pointers?
What is meant by const_cast?
What is #include c++?
Which c++ compiler is best?
What is constructor c++?
When does a name clash occur in c++?
When does the c++ compiler create temporary variables?
Define a nested class.
Explain the static member function.