Can u any 1 please explain the below question and answer?
Given the following code, which statement 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, 2 for branch coverage
Answer Posted / vaishali
it wud be 2 testcasese for statement coverage and 2 for
branch coverage
2 for statement coverage bcaz two seperate questions being
asked
p+q>100 and p>50
and its two branches with NO hasnt been covered....
so, answer is 2 testcasese for statement coverage and 2 for
branch coverage
| Is This Answer Correct ? | 3 Yes | 13 No |
Post New Answer View All Answers
iam having 2+yr sof exp in manual testing, at present working in chennai,want to relocte to hyd .if any openings let me know.my id : vaniramymail.com
what is the main field of bugzilla which we fill to report bug to any developers???give some brief description??
Write a set of test cases to test youtube?
Have u ever done testing related to a database,give examples to support u r answer.
On login window for username and password auto populated field means what !
What are testing techniques? What is difference between general and specific?
What is test closure?
hi experts, i was asked to write down the requirement description,test scenario, and test cases for gmail login and send email and then to check the email was sent in the sent mails.the format given to me was like this: Req ID, Req description, Test Scenario, Test cases....Can anybody please help me out with this..
Test cases for Internal IP Messenger
in transfer funds module, how you come to know that amount has been transferred successfully or not....explain in detail
How can I do Server side Interface testing in Web Testing?
which of the following is not a coding defect? Option 1 Test harness defect Option 2 Data flow defect Option 3 Initialisation defect Option 4 Algorithmic defect
WHAT IS PROTOCAL TESTING..EXPLAIN? L2, L3 PROTOCALS TESTING MEANS WHAT?EXPLAIN BRIEFLY
whats the reason to display the password(not in encrypted form) in the script in load runner but not in QTP?
How do your characteristics compare to the profile of the ideal manager that you just described?