Hai, Could anybody please let me know, how to calculate the
number of test cases required to test a program. Please
provide me the answer for the following question:

“What type of ticket do you require, single or return?”IF
the customer wants ‘return’Ask: “What rate, Standard or
Cheap-day?”IF the customer replies ‘Cheap-day’Say: “That
will be $11:20”ELSESay: “That will be $19:50”ENDIFELSESay:
“That will be $9:75”ENDIFNow decide the minimum number of
tests that are needed to ensure that allthe questions have
been asked, all combinations have occurred and allreplies given.
a) 3
b) 4
c) 5
d) 6

Answer Posted / kannan r

The answer is 3

need to check like,

If == Return
{
If == Cheap-day
{
That will be &11
}
Else (means Return-Standard)
{
That will be $19
}
End If
Else (means Single)
{
That will be $ 9
}

1.One for Single (Single always come without Chead-day and
Standard)
2.One for Return with Cheap-day
3.One for Return with Standard

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a test procedure & test log for login system

2776


How should I maintain the test cases and Test Log for different versions/builds of the application.

1974


There is French dictionary and if you want to check it in English and there is no documentation available then how you will test it and write a test case and Test scenario on it.

3098


How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

1742


what is the test plan for ms-word

1953






can one defect be mapped to more than one test script in manual testing

2011


Explain the format of a requirement traceability

639


What is test environment? Elaborate with example.

654


How to write test case for android application,alarm clock,LCD display screen. And after seeting alarm mobile get switch off how to write test case..

15670


Some test case for mambo cms (only basically: graphic, function...) Thanks for answer.

1736


Explain the concept of semi-random test cases?

803


What is gray box testing?

725


Hi Team, I have two scenarios ,only one step alone deference betweeen them and preconditions of Test scenarios are defferent . In the above sutuation , are we going divide test cases into two or can we club into them into a single. Regards seshu

1788


Describe to me what you see as a process. Not a particular process, just the basics of having a process.

6060


Write all test cases for Bus Pass Renewal

1102