Consider the following section of simple
programming code:
Start of code
10 Print Hello
20 If Condition C1 is true, then GOTO 30; Else GOTO 40
30 Accept Input; then GOTO 50
40 If Condition C2 is true, then GOTO 50; Else GOTO 60
50 While Condition C3 is true, GOTO 10; Else GOTO 70
60 Accept Input; then GOTO 70
70 Print End of program
End of code
(a) Draw a labelled flow graph for the above source code. [2]
(b) Based on the Basis Path Testing technique, calculate the value
of Cyclomatic
Complexity using all three methods of calculation. Ensure that all
working is
clearly shown for the three methods (e.g. predicate nodes and regions
clearly
highlighted). [3]
(c) Based on the value of cyclomatic complexity calculated, derive
the set of basis
test paths. [3]
(d) The Formal Technical Review (FTR) is a mid-development meeting
conducted
primarily to determine the existence of functional or implementation
errors in
some aspect of software. At the end of the review, all attendees of
the FTR
typically must decide between one of three outcomes. State these outcomes,
clearly also describing the conditions necessary for each outcome.
[3]
(e) There are also several other guidelines involved in the actual
conduct of such an FTR. Write some notes on these guidelines, presenting
in some detail at least
four distinct guidelines. [4]
|