write the test cases on prime number with result?

Answer Posted / babitha

Precondition:let the prime no be n
case1: expected o/p (prime no)result
divide the no n by 1 remainder=0 pass
divide the no n by n remainder=0 pass

divide the no n by 2 remainder!=0 pass
.
.
divide the no n by upto n-1 and if remanider not equal zero
then it is a prime no.

Is This Answer Correct ?    43 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you do (with the project tasks) when the schedule fails?

2548


What is Difference between Test Strategy and Test Methodology?

1707


What is the difference between code walkthrough and code review? What is the difference between walkthrough and inspection?

2477


My name is Akpos from Nigeria. I have finished manual testing course. Please, can someone advise me where to go on from here?

486


Hello testers I am an Bsc Hotel mgmt Degree holders but now am doin my software testin programme, side by MCA Master degree an have 6 months exp i testing in company.. i want to change my CV according IT based. so can anyone help me with sendin any sample CV of urs.. do me this favour it wil be very helpful for me prepare CV for interviews....

1662






what is coupling integration testing

1619


What do you understand by usability testing?

632


What is smoke testing and user interface testing ?

632


Why would we not include these?

666


How to Generate Test Case for Shopping Cart?

2385


What is junit & api?

1658


What is the difference between a bug, a defect and an error?

660


What are the advantages of automation over manual testing?

685


What is your daily process? I have 2+EXP IN MANUAL TESTING.PLEASE SUGGEST ME HOW i ANSWER

1789


Scenario-based testing Option 1 concentrates on actor and software interaction Option 2 misses errors in specifications Option 3 misses errors in subsystem interactions Option 4 Both 1 abd 2

3007