Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage:
Read P
Read Q
IF P+Q > 100 THEN
Print "Large"
ENDIF
If P > 50 THEN
Print "P Large"
ENDIF
A. 1 test for statement coverage, 3 for branch coverage
B. 1 test for statement coverage, 2 for branch coverage
C. 1 test for statement coverage, 1 for branch coverage
D. 2 tests for statement coverage, 3 for branch coverage
E. 2 tests for statement coverage, 2 for branch coverage
Post New Answer View All Answers
This was asked to me recently in Microsoft interview How would you do DOS copy command testing
How to write test case for this scenario. The Contact Information screen shall be displayed to the user during Case Update
write the test cases for facility module
Suppose a job should be executed for every two hours? Write test case for this?
What is the domain testing?
"search"test cases on Linkedin website and how will you write test cases on it?
Explain the soak testing?
can one defect be mapped to more than one test script in manual testing
Explain the scalability testing?
Test a file replication service that copies files from one net location to another
how to test stand alone programs?
Explain the format of a requirement traceability matrix. And how to include this rtm in the requirement document?
what is the technology used in financial applications?
Describe to me what you see as a process. Not a particular process, just the basics of having a process.
explain end to end scenario's for online Money transfer in Banking Domain?