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 / dmitry
Correct Answer is "B"
b) 1 test for statement coverage, 2 for branch coverage
1) Statement coverage - 1 test.
P must be > than 50
P+Q must be > than 100
All statements (8 rows) are covered (used).
2) Decision coverage - 2 tests
2.1 P must be > than 50
P+Q must be > than 100
All "TRUE"(YES) decisions (1 and 2) are covered
2.1 P must be < than 50
P+Q must be < than 100
All "FALSE"(NO) decisions (1 and 2) are covered
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
In what situation would you want to parameterize a text verification check?
what are the prerequisite conditins to test clientserver and web applications
what is e-tester?
Hi Friends, Just One Month Back I was Join in Small Company as a Testing Eng.I have Six Month Exp. In this Company all my team memb.r fresher & PM give responsibility on us to prepare all require QC doc. for our new project.So I need ur help in this matter .How Can I start my work and Which Doc.I start to collect & From Where I get Detail Information all abt these thing. Thanks to all friends who give reply to this. Suyog
any one giv test cases for wordpad using equivalence class partioning
Explain some techniques for developing software components with respect to testability.
can u plz give an example for regression testing with example.
how will you test a wine filled bottle along with 100 glasses
List the considerations in developing testing methodology
In our project, we use Withdrawal Indent, we are confused to use heading as "Withdrawal Indent" or "Withdraw Indent". Please suggest me which one to use ASAP, Thanks in advance
What will be your approach if a particular script in Load Test fails?
user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc
According to RBI rule how much money can be transferred through online banking at one time...?
What is the difference between system testing and integration testing?
Please anyone give answers for all below questions and help ? realtimers please and please share your knowledge.lot of questions left unanswered.