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
Is it possible to provide special behavior for one instance of a template but not for other instances?
What is buffering in c++?
Is c# written in c++?
Write bites in Turbo c++ Header ("Include") Files.
Write a C++ Program to check whether a number is prime number or not?
Is c++ harder than java?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is the difference between a type-specific template friend class and a general template friend class?
What do you mean by ‘void’ return type?
Is oops and c++ same?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
How do I start a c++ project?
Why do we use string in c++?
What does new return if there is insufficient memory to make your new object?
Which bit wise operator is suitable for putting on a particular bit in a number?