December
1999 QUESTION 5 Total Marks: 15 Marks |
Click here to access
other questions
SUGGESTED SOLUTIONS |
(a) |
Consider the following section of simple pseudo-code: 10 PRINT "Hello" (i)Translate this section of pseudo-code into a .ow graph.[2 marks ] (ii)Based on this .ow-graph,derive the value of V (G ).Show all three methods of calculation,with full working.[3 marks ] (iii)Based on this value of V (G ),derive the basis set of test paths.[2 marks ] Ensure that you show all steps of working used to derive your answer. Solution:
2 marks for a correct graph,1 for a graph that is correct but has a simple mistake in the labelling or linking
value of cyclomatic complexity:3 Basis
set of test paths:
|
[7] |
(b) |
Consider a data variable STATUS that is used to indicate a student ’s status in an examination.There are three possible values for STATUS :
Based on the equivalence partitioning technique,do each of the following for the STATUS data variable: (i)Identify clearly the invalid class,and valid class of inputs.[2 marks ] (ii)Present two test cases,one falling
into the invalid class,and one falling into the valid class.[2 marks
]
|
[4] |
(c) |
Verification is sometimes thought of
as answering the following question:Are we building the product right?Validation
activities,on the other hand,are thought of as answering the question:Are
we building the right product? (i)Describe in your own words the difference
between these two types of activities. Ensure that the difference
is clearly presented in your answer.[2 marks ] (ii)In your own opinion,explain why it
is that end-users (or customers)of the software being developed would
be more concerned with the validation activity rather than the verification
activity.[2 marks ] For part (ii)end-users are typically more concerned that the software can meet their objectives,since the purpose of this software is that it is functional to their requirements.They would be less concerned with how the software works,or how the process of development was carried out to achieve their needs. As answers for both parts can be quite wide,the following mark allocation should be used in each case: •0marks if the candidate demonstrates no understanding,or simply copies the statement from the question •1 mark if the candidate succeeds superficially in differentiating between the activities,with some explanation •2 marks if the candidate demonstrates good understanding. |
[4] |