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
Explain the difference between severity and priority.
Write a Test scenario for Outlook Search functionality.
Name three reasons why the tester may choose to record in Context Sensitive mode.
How do you test a web application for dump and deaf??
What are the benefits of creating multiple actions within any virtual user script?
what is independent question and what is retriewing and what is problem of severity.
Can you explain the pdca cycle and where testing fits in?
HI, This question is Investment Banking domain related Question. I was asked in an Interview to tell the 5 test cases for Equity,Bond,Futures and options. Please help.. Pragya
What are the different strategies for rollout to end users?
can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that
What is difference between cmmi and cmm levels?
i have 2.5 years of experience in manual testing and qtp. can anyone say me what kind of questions do they ask on manual testing and qtp.
Explain severity with example and expalin each example?
What are testing techniques? What is difference between general and specific?
hi this is chik here iam showing my current project ERP and am prepair in hr model please tell me details about it and what all function test in hr model and give me some test caserelated to this module.Please tell me am faceing lots of problem in interview am not able to explain in interview please help me out my id is chiku_69@yahoo.in