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 is a testing process / lifecycle?

695


Password is having 6 digit alphanumeric then what are the possible input conditions?

702


I am having 2 years of experience in Manual Testing, 2marrow I have an interview with a Company. Which type of questions they will ask me?How should I prepare for interview?Please guide me so that I will clear the interview.

1755


if go through 1 or 2 projects clearly,then i feel comfortable to search the job,please help me

1506


How to do integration testing on duster......

1246






Can anybody give me some tips on how to face telephonic interview and Write some expected telephonic questions as a 2+yr exp. in testing. Try to give Ques. that u already hv faced in telephone. Plz Help me out friends.

1604


When we use integration testing for any new system so why we required system testing.

1551


Do you know anything about Set Top Boxes?

9268


Hi ALl, Can you please list out Q & A for Test Lead,which Interviewer may ask in interview for Test Lead position

1518


What are the main key components in web applications and client and server applications?

717


Genarally what we have to tell. If anybody asks in the interview. what are challenges u faced in the Project and what are the Risks u faced in the Project, Anybody can suggest it ......Thanks in Advance....

1723


how will you test a wine filled bottle along with 100 glasses

1868


What do you mean by Cause Effect Graphing? in which standard its mentioned?

1677


What is Mixed Testing

1630


Hi all, can anyone tell me what is the selection procedure in Birlasoft for Manual Tester?It will be a great help.

1462