write the test cases on prime number with result?

Answer Posted / surya gandepalli

for input = 1 , Ouput: should be "Not a Prime Number"

Prime Number(Definition): A number Greater Than 1 is called
a prime number, if it has exactly two factors, namely 1 and
the number itself.

so check with the boundary values.
({INPUT},OUTPUT ) = ({0,1,4}, {NOT PRIME})
({INPUT},OUTPUT ) = ({2,3,5}, {is PRIME})
{Destructive INPUT}=(Type Special Characters),(Copy Past
Special Characters from a Note Pad document Using Mouse ))

0 (Zero is the only Whole Number which is not a natural number)
1

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write 2 scenarios for Integration testing? Please let me know its urgent.

1554


qtp9.2 and qtp10.0 difference

3015


PLEASE CAN ANYONE SEND ME THE TEST SCENARIO BASED QUESTIONS FOR 3+ EXPERIENCE IN MANUAL TESTING

3855


what are the Cs in testing

1613


What exactly you do as a Configuration controller?

1532






What is Web testing & which action we take at the time of Web Testing?

1460


Explain crud testing.

633


test cases for compose functionality of gmail

1468


What is an end-to-end testing?

608


Can you explain the pdca cycle and where testing fits in?

763


Can you explain the workbench concept?

689


What is application programming interface (api)?

634


anybody there with 3+ exp in software testing looking for change and like to work in bangalore fwd your resume to vinodhanandhan@gmail.com

1730


What are the main key components in web applications and client and server applications? And explain the differences between them?

664


What is the quality process is following in your organization.

1754