Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

write the test cases on prime number with result?

Answers were Sorted based on User's Feedback

write the test cases on prime number with result? ..

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 ? 41 Yes 15 No

write the test cases on prime number with result? ..

Testcase ID test condition Result
1 1 true
2 3 true
3 4 false
4 5 true

 Is This Answer Correct ? 24 Yes 14 No

write the test cases on prime number with result? ..

-field area should take only numeric value
-number should not contain fraction or decimal
-number should not contain any special character
-number should be divisible by 1
-if number is divisible by other than 1 then reminder should
be 1

 Is This Answer Correct ? 5 Yes 3 No

write the test cases on prime number with result? ..

- 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 ? 3 Yes 3 No

write the test cases on prime number with result? ..

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

More Manual Testing Interview Questions

When do you escalate issues to your Manager?

1)what is the basic diff. between unit testing and component testing 2)how do you implement framework in ur project through automation

Q) Create Preffered customer: As a customer when i purchase more than \$5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.

How load testing is different from regression testing?

what is differnce between QC @ QA , test strategy, very urgent pls

When do you stop testing?

What is difference between smoke testing and sanity testing? In simplest manner...

Explain scrum process

In the Testing, How do we find the Duplicate Defects. In the case of testing is going on On-site r off-shore..some times on site and off-shore people may enter defects at the same time..those may include duplicate defects. how we have to find those defects..

What you consider at the time of Module Integration?

Can anyone tell me, What is wound fixing?

What is Buddy testing?

Categories