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
What can you tell about the project if during testing you found 80 bugs in it
what is functional testing terminologies
!what are the entry criteria for antomation testing ?
Do we have any certifications for ETL Testing ?
During alpha testing why customer people are invited?
what is the relation between all tabs in quality center & explain the testing process in quality center with tabs?
What is test out put?
how to test the case with 5 combination and inputs
Explain thread testing.
What will be the QA roles and responsibilities in Health care stream like BCBS,can someone please explain me any example project regarding health care services in web-based application?
I have cleared written test and one Technical round in one company? now i have to face an Client Round through telephony? Any body have faced client round, how will it be , wil they ask technical or is it only formality round? im nervous, plz let me know wat all they may ask? i have this round on monday?
What are the factors affecting a manual testing project and what are the ways to overcome it?
how to verify a button size (e.g Login Button) on a web page have same dimension prescribed by Client in UI Testing..??
What exactly is quality control? Is it similar to quality assurance?
What does entry and exit criteria mean in a project?