Elnur
Elnur
1С System testing»
Learning objectives 12.5.3.1 describe execution errors when a program is started
12.5.3.2 perform testing using normal data
12.5.3.4 perform testing using erroneous data
12.5.3.5 describe a syntax error in a program code
12.5.3.6 describe a logical error in a program code
Assessment criteria A learner
state two causes of runtime errors;
explain what normal data and gives examples;
give an example of erroneous data for different situations;
explain a syntax error in a program code;
explain a logical error in a program code.
Tasks:
1. A company owns 50 cars that are available for hire. The cars are numbered from 1 to
50. The size of a car can be small, medium, or large.
The following pseudocode procedure, SetOut(), takes as input the size of the car the customer
has requested for hire and outputs details of the cars that are available for hire for that size of
car.
Line numbers are given for reference only.
Refer to the Appendix on table 1 for a list of built-in pseudocode functions and operators.
(a) Complete the table by identifying four line numbers that contain errors and give the
correct pseudocode statement.
Line number Correct pseudocode statement
Procedure SetOut() (no parameter needed)
03
04
DECLARE Index: INTEGER
06
FOR Index 1 TO 50
IF Size = CarSize[Index] AND Available[Index] = TRUE (no
07
brackets needed)
[4]
2. The table below contains descriptions of the types of errors that can occur during
programming. Drag and drop the types of errors into the correct positions in the table.
[3]
6. Test Plan
Uses normal/extreme/erroneous data to test solution
Let’s take the registration form in which we have following rules: at least 24 characters,
at least one digit and at least one special character.
Abnormal data set: JZeekenov7 (no special characters), xxx@DastenEwe (no digits)
[3]