write the test cases on prime number with result?

Answer Posted / md.mosaj gohar

- chech if the number is not a decimal no.
- check if the number is not of the from p/q
- check if the number is not a negative no.
- if the number is a natural number a greater than 6 then,
-if it can be converted to the form 6k-1or
6k+1,then it is prime no.else not.
- for natural nos. less than 6: 2,3 7 5 are prime nos. to
be taken as granted.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is user acceptance testing (uat)?

655


wat if fiddler and how it is used in tesing an application. please explain with a real time scenario

1696


Can you explain the various elements of function points ftr, ilf, eif, ei, eo, eq, and gsc?

774


What is Traditional testing & Object Oriented testing?

1966


What exactly is quality control? Is it similar to quality assurance?

623






What’s the difference between a bug and a defect?

673


*) Internal review defect gets detected… 1) During peer review. 2) By the own stuff member onsite/offshore. 3) During Informal review process. 4) None of these 5) All of these

1845


what is mean by Performance Related Testing in data base?

1737


how to test a store procedure?

1584


What is an error?

667


What is a defect age?

644


what is meant by application server and its functions?

6161


You may undergone many projects. Do all the projects match up with customer’s expectations?

708


Explain stub in testing point of view?

708


How does your preferred work style work with the ideal test-manager role that you just described? What is different between the way you work and the role you described?

1709