One purpose of testing is to ensure that software is fit for purpose. Which of these terms is the correct explanation of the term ‘fit for purpose’?
Software matches the specifications agreed with the client
Source code is easy to update in future
The process of establishing the client’s needs which contributes to the generation of test data
Which testing technique is carried out by the programmer manually and does not involve the use of software to test the value of variables?
Trace
Breakpoint
Dry run
What is comprehensive testing?
Testing a range of data identified by the client
Testing data in a logic order, module by module, subsystem by subsystem
Testing data regarded as normal, exceptional and extreme
Identify the error on line four?
Line 1 SET total TO 0
Line 2 SET all_heights TO [1.87, 1.48, 1.57, 1.91, 2.01]
Line 3 FOR EACH height FROM all_heights DO
Line 4 IF height ˂=1.57 AND height ˂= 1.91 THEN
Line 5 SET total TO + 1
Line 6 END IF
Line 7 END FOR EACH
Syntax error
Logic error
Execution error
If a trace table were created, what would the values of the variables maximum and height be after the third iteration of the loop?
Line 1 SET all_heights TO [1.87, 1.48, 1.57, 1.91, 2.01]
Line 2 SET maximm to all_heights (0)
Line 4 IF height ˃ maximum THEN
Line 5 SET maximum TO height
Maximum = 1.87, height = 1.57
Maximum = 2.01, height = 2.01
Maximum = 1.57, height = 1.87
What should happen if exceptional data is entered by a user when asked for an integer value?
The program should automatically stop at a breakpoint to let the programmer see the value of a particular variable
The program should have included error trapping features that inform the user of the fact that the data is not valid
The program will crash as the source code contains a grammatical error
What is extreme data?
Data which should be accepted as valid data but is on the limits of a valid range
Data which should be rejected by the program as it is just out with the valid range
Data which should be rejected by the program as it is of the wrong data type
A test plan can be informed by the outcome of discussion between the client and developers at which stage of the development process?
Implementation
Documentation
Analysis
Identify a suitable set of normal test data for the value of a test percentage score.
82, 14 per cent, 91, 25
87, 54, 98, 11
36 per cent, 77 per cent, 91 per cent, 23 per cent
This stage of the development process would result in source code being edited or created afresh. This would result in more testing. What is this stage of the process called?
Evaluation
Maintenance