Hi,

I am planning to write ISTQB certification by next month. I am little bit confused in Statemnet and Decision coverage topics. Can anyone explain me regarding that?

Below I have given you some question which are related to Statement and Decision coverage. Can u please explain the answers clearly for those examples, so that i can easily understand it

1). Given the following fragment of code, how many tests are required for 100%
decision coverage?
if width > length then
biggest_dimension = width
if height > width then
biggest_dimension = height end_if
else
biggest_dimension = length if height > length
then
biggest_dimension = height end_if
end_if

2). IF X <>= Z
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is :

3). How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other:if (Condition 1) then statement 1 else statement 2 fi
if (Condition 2)
then statement 3 fi

4). Given the following:Switch PC on
Start "outlook"
IF outlook appears THEN Send an email
Close outlook
A. 1 test for statement coverage, 1 for branch coverage B. 1 test for statement coverage, 2 for branch coverage C. 1 test for statement coverage. 3 for branch coverage D. 2 tests for statement coverage, 2 for branch coverage E. 2 tests for statement coverage, 3 for branch coverage

5). IF A > B THEN C = A – B
ELSE
C = A + B ENDIF Read D
IF C = D Then Print "Error" ENDIF
A. 1 test for statement coverage, 3 for branch coverage B. 2 tests for statement coverage, 2 for branch coverage C. 2 tests for statement coverage. 3 for branch coverage D. 3 tests for statement coverage, 3 for branch coverage E. 3 tests for statement coverage, 2 for branch coverage

6). Minimum Test Required for Statement Coverage:
Disc = 0


Order-qty = 0
Read Order-qty
If Order-qty >=20 then
Disc = 0.05
If Order-qty >=100 then
Disc =0.1
End if
End if
A. Statement coverage is 4
B. Statement coverage is 1
C. Statement coverage is 3
D. Statement Coverage is 2

Also give me some tips to clear ISTQB

Thanks in advance
Dinesh