Software development and testing – A Level Computer Science (9618)
31 questions · page 1 of 3
Question text
3
A business operates five call centres. The software currently in use in each call centre is to be
replaced; a new system will be developed by a software company.
(a) The analysis stage included a feasibility study.
State three other activities carried out during the analysis stage.
1 …
…
2 …
…
3 …
…
[3]
(b) The analysis stage has ended.
Complete the statements about the development of the new system.
Before any programming is started, the … stage for the
proposed new system must be completed.
For this large project, the tasks will be broken down into several
… ; each will be coded by a different programming team.
Once each team has completed its work, … testing must be
carried out.
Before the new system is delivered to the business, … testing
will be carried out in-house.
It is decided to install the software initially in only one of the call centres where
… testing will be carried out.
The new software is finally rolled out to all five call centres. In the first week of its use, staff
report that the software still requires extra features which were not originally agreed. The
software is withdrawn until … maintenance is completed.
[6]
© Cambridge University Press & Assessment 2026
Question text
3
A company wishes to replace the point-of-sale software that each shop uses at its checkout. A
software company is developing a new system.
(a) Complete the summary about the development of the new system.
The initial … stage is carried out by studying in
detail the current system.
A design for the proposed new system is produced.
Following the design and coding stages, it is decided to install the completed new software
initially in only two of the shops. … testing is
carried out.
The final stage of the project uses … testing to test
all programs on the company’s hardware. After successful testing, the company approves
the new system.
The company then installs the new software in all shops. In the first week of its use,
unexpected bugs are reported. … maintenance
has to be carried out.
[4]
(b) For this large project, the task was divided between two programming teams.
Team A were responsible for the screen designs and all outputs; they involved the company
at the earliest possible stage and obtained feedback.
Team B used a more traditional approach to the program development life cycle; the stages
in the development followed an agreed sequence.
Identify the program development life cycle model adopted by each team, and describe one
additional feature of each approach.
team A model …
feature …
…
team B model …
feature …
…
[4]
© Cambridge University Press & Assessment 2026
,
,
(c) State three activities carried out during the design stage of the program development
life cycle.
1 …
…
2 …
…
3 …
…
[3]
© Cambridge University Press & Assessment 2026
,
,
© Cambridge University Press & Assessment 2026
Question text
7
There are several different ways to express an algorithm during the design of a program.
(a) One part of the program contains an algorithm which is represented by a state-transition
diagram.
The table shows the inputs, outputs and states for the algorithm:
Current state
Input
Output
Next state
S1
A2
X2
S3
S1
A1
X1
S2
S2
A4
X4
S5
S3
A1
S3
S3
A3
X3
S2
S3
A2
X4
S4
S4
A1
X1
S4
S4
A3
S2
S4
A4
X4
S5
Complete the state-transition diagram to represent the information given in the table.
A2 | X2
START
S1
[5]
ĬÙĊ®Ġ´íÈõÏĪÅĊÝù·Ā×
,
,
(b) A structure chart is used to document a different part of the program.
This part of the program contains six modules:
Pseudocode module header
PROCEDURE Setup()
PROCEDURE Restart(H1 : STRING, C1 : INTEGER)
FUNCTION Modify(B1 : BOOLEAN) RETURNS INTEGER
PROCEDURE Final(T1 : INTEGER)
PROCEDURE Update(BYREF R2 : STRING)
FUNCTION Confirm() RETURNS BOOLEAN
Module Setup will repeatedly call three of the modules.
Complete the structure chart to document the information given in the table.
Setup
H1
B1
R2
[5]
ĬÛĊ®Ġ´íÈõÏĪÅĊÝû·Ā×
Question text
5
A program is developed to satisfy a specific customer requirement.
The project follows a program development life cycle model. This model divides the development
process into several different stages.
(a) The table lists some of the development activities.
Complete the table by writing the name of the life cycle stage for each activity:
Activity
Name of life cycle stage
a structure chart is produced
a program is modified to allow it to run on new hardware
the programmer identifies the customer’s requirements
an Integrated Development Environment (IDE) provides
context-sensitive help such as ‘auto-complete’
[4]
(b) Alpha and beta testing has been completed. The final testing stage is carried out by the
customer.
Identify this final testing stage.
… [1]
ĬÙĊ®Ġ´íÈõÏĪÅĊßûµĀ×
,
,
ĬÛĊ®Ġ´íÈõÏĪÅĊßùµĀ×
Question text
7
The structure chart shows part of a program design:
Convert
Count
P2
T1
Key
Analyse
Update
Sort
(a) Explain the meaning of the curved arrow symbol in this structure chart.
…
…
…
… [2]
(b) The program designer has noted that:
•
Count is the number of elements in an array
•
T1 is a value representing the number of elements in an array that have been modified
•
Key is of type STRING
Write the pseudocode module headers for analyse, update and sort.
Analyse:
…
…
Update:
…
…
Sort:
…
…
[4]
ĬÙĊ®Ġ´íÈõÏĪÅĊàû·Ā×
Question text
7
There are several different ways to express an algorithm during the design of a program.
(a) One part of the program contains an algorithm which is represented by a state-transition
diagram.
The table shows the inputs, outputs and states for the algorithm:
Current state
Input
Output
Next state
S1
A1
S2
S2
A2
X4
S3
S3
A1
X1
S3
S3
A2
X1
S3
S3
A3
X3
S4
S3
A4
S2
S4
A3
X4
S5
S4
A4
X4
S5
S4
A1
S2
Complete the state-transition diagram to represent the information given in the table:
START
S1
[5]
ĬÍĊ¾Ġ´íÈõÏĪÅĊßüµĄ×
,
,
(b) A structure chart is used to document a different part of the program, made up of five modules.
Program notes:
•
module Setup calls either module Restart, or module Confirm
•
module Confirm takes a string as a parameter and returns an integer
•
module Modify has no parameters and returns a Boolean
•
module Update takes a string as a parameter
•
module Restart repeatedly calls module Update followed by module Modify
•
module Restart takes a string as a parameter that is passed by reference.
Draw a structure chart to represent the relationship between the five modules, including all
parameters and return values.
[4]
ĬÏĊ¾Ġ´íÈõÏĪÅĊßúµĄ×
Question text
2
A program is being developed to calculate the pay of employees working for a company.
A function CalculateBonus() calculates bonus pay based on the value of sales.
Bonus pay is calculated as shown in the table.
Value of sales
Bonus pay
(in dollars)
(in dollars)
below 2000
0
between 2000 and 4000 inclusive
10
above 4000
100
A flowchart for the function CalculateBonus() has been designed.
START
Set BonusPay to 0
INPUT
ValueOfSales
Is
NO
ValueOfSales
> 4000 ?
YES
Is
NO
ValueOfSales
Set BonusPay to 10
> = 2000 ?
YES
Set BonusPay to 100
RETURN BonusPay
END
ĬÕĊ®Ġ´íÈõÏĪÅĊàú¸Ā×
,
,
(a) The flowchart contains logic errors.
One logic error is that BonusPay will not be set to 10 although the ValueOfSales input is
between 2000 and 4000 inclusive.
(i)
Explain why this error occurs.
…
… [1]
(ii)
Explain how this error could be corrected.
…
… [1]
(b) There are different ways to reduce the risk of errors when developing the new program, such
as the use of constants.
(i)
State a value that could be replaced by a constant in the function CalculateBonus()
… [1]
(ii)
Explain how the use of constants helps to reduce the risk of programming errors.
…
…
…
… [2]
(iii)
One other way that can reduce the risk of errors when writing the program is the use of
library routines.
Explain how library routines can reduce the risk of programming errors.
…
… [1]
Ĭ×Ċ®Ġ´íÈõÏĪÅĊàü¸Ā×
,
,
(c) All the logic errors have been corrected, and the program has been coded.
Identify and describe two other types of error that the program could contain.
Type of error …
Description …
…
…
Type of error …
Description …
…
Question text
1
A program is being developed to control the production line in a factory.
(a) A number of different program life cycles are available for the development of a program.
(i)
Explain the need for different program development life cycles.
…
… [1]
(ii)
Coding is a stage in a program development life cycle.
State one consideration that would influence the choice of programming language.
…
… [1]
(b) The program has been in use for a number of months and adaptive maintenance is required.
(i)
Give three reasons why adaptive maintenance may be required.
1 …
2 …
3 …
[3]
(ii)
As well as adaptive maintenance, other types of program maintenance may be needed.
Identify one other type of program maintenance.
… [1]
ĬÕĊ®Ġ´íÈõÏĪÅĊÞù·þ×
,
,
(c) Pseudocode has been used to design modules for the program to control the production line.
The table shows four valid pseudocode expressions.
Complete the table by giving the data type of the evaluated expression.
Expression
Data type
RIGHT(MachineCode, 4)
Speed * 2.5
NOT Status
IS_NUM(Check)
[4]
(d) A global array Product is used as part of the pseudocode design being developed to control
the production line. Product is used to store the number of rejected items each day.
The following pseudocode statement is used to assign a value to an element of the array:
23
Product[x, y]
The lower and upper bound values are shown in the table:
Variable
Lower bound
Upper bound
x
0
99
y
0
9
(i)
State the number of dimensions of Product
… [1]
(ii)
State the total number of elements in array Product
… [1]
(iii)
Give the pseudocode declaration for the array Product
… [2]
Ĭ×Ċ®Ġ´íÈõÏĪÅĊÞû·þ×
Question text
2
A program to calculate the pay of employees working for a company is being designed.
(a) Stepwise refinement has been used in the design of the program.
Describe stepwise refinement.
…
…
…
… [2]
(b) One of the program modules used to calculate employees’ weekly bonus pay has been
completed. The amount of bonus pay they receive is based on the number of hours worked
and the value of sales made as shown in the table.
Bonus pay and value of sales are both in dollars.
Hours worked
Value of sales
Bonus pay
between 1 and 40 inclusive
2000 or less
0
between 1 and 40 inclusive
above 2000
50
above 40
2000 or less
10
above 40
above 2000
100
(i)
The module is tested using white‑box testing.
State two tests, using valid data, that can be used to test different paths through the
program.
Test one:
Hours worked …
Value of sales …
Bonus pay …
Test two:
Hours worked …
Value of sales …
Bonus pay …
[2]
ĬÕĊ®Ġ´íÈõÏĪÅĊàù·Ā×
,
,
(ii)
The program to calculate pay uses a number of modules which are each called from
different places in the program.
The program is to be tested using stub testing before all the program modules have
been completed.
Describe stub testing.
…
…
…
… [2]
(iii)
The program has been completed and compiles successfully.
The program is tested using black‑box testing.
Identify and describe one type of error that black‑box testing could detect.
Type of error …
Description …
…
…
[2]
Ĭ×Ċ®Ġ´íÈõÏĪÅĊàû·Ā×
Question text
4
A programmer is developing a new stock control program for a shop owner to produce sales
reports.
(a) A text file Sales.txt stores strings representing the number of items sold.
The file contains 52 lines, each representing the number of items sold in each week of the
year.
For example:
File line number
File data
1
"350"
2
"502"
3
"434"
49
"492"
50
"872"
51
"772"
52
"201"
The example shows that 502 items were sold in week 2.
The owner requires a module to output all week numbers where the number of items sold is
greater than 500.
Describe an algorithm that produces the required module.
Do not include pseudocode statements in your answer.
…
…
…
…
…
…
…
…
…
…
…
… [5]
ĬÙĊ®Ġ´íÈõÏĪÅĊÝü¶Ā×
,
,
(b) Once the program has been completed, it is tested using the walkthrough method.
Describe the walkthrough method and explain how it can be used to identify errors.
…
…
…
…
…
…
…
… [3]
ĬÛĊ®Ġ´íÈõÏĪÅĊÝú¶Ā×
Question text
5
A software developer follows a program development life cycle. The life cycle divides the
development process into various stages.
(a) The following table lists some development activities.
Complete the table by writing the name of the life cycle stage for each activity.
Activity
Name of life cycle stage
The walkthrough method is used.
An algorithm is implemented in a programming language.
The client is interviewed about problems with the current system.
The program is modified to run on new hardware.
Records and file structures are defined.
[5]
(b) The program contains a validation function.
(i)
The function will:
•
take an integer value as a parameter
•
return TRUE if the value is within the range 24 to 37, inclusive
•
otherwise return FALSE.
Complete the table to define a test plan to thoroughly test the operation of the function.
Type of test data
Test data value
Expected result
Normal
30
TRUE
[4]
(ii)
The function is to be tested on its own. When it is shown to work correctly the function
will be combined with other modules and testing will continue.
Identify the type of testing that this represents.
… [1]
ĬÙĊ®Ġ´íÈõÏĪÅĊÞú¸þ×
Question text
1
A program has been developed and released for general use. After a few months of use an error is
detected where under certain circumstances it outputs an unexpected value.
(a) The error in the program needs to be corrected.
Identify the stage of the program development life cycle that this correction is made in.
… [1]
(b) The program contains a function Lookup(). After investigation, it is found that this is the
function that sometimes returns an incorrect value.
An Integrated Development Environment (IDE) is used to help locate the error.
The IDE features of watch window, single stepping and breakpoint will be used.
Explain these features including the order that they will be used in to locate the error in
Lookup().
…
…
…
…
…
… [3]
(c) To solve the error a programmer decides to create a new module.
The design of the new module has been completed and the module is being coded.
Identify two features of an IDE that will help during the coding of this new module.
1 …
2 …
[2]
(d) The new module referred to in part (c) introduces three new variables.
Complete the following table by giving the appropriate data type for each.
Variable name
Used to store
Data type
Name
A customer name.
Index
An array index.
The result of the division of any two
Result
non-zero numbers.
[3]
ĬÍĊ¾Ġ´íÈõÏĪÅĊÝú¸þ×
Question text
7
A coffee shop runs a computerised loyalty card system.
Customers are issued with a loyalty card with their name together with a unique customer ID.
Loyalty points are added to their card each time they spend money at the shop.
The following information is stored for each customer: ID, name, home address, email address,
mobile phone number, date of birth, number of points, date of last visit and amount of money
spent at last visit.
A new module will generate a personalised email message to each loyalty card customer who has
not visited the coffee shop in the last three months. The message will include a unique voucher
code which can be used to authorise a discount if the customer goes to the shop within the next
two weeks.
(a) Identify three items of customer information that will be used by the new module and justify
your choices.
Item 1 …
Justification …
…
Item 2 …
Justification …
…
Item 3 …
Justification …
…
[3]
(b) Identify the computational thinking skill that you needed to use to answer part (a).
… [1]
(c) It is decided to adopt a formal program development life cycle model for the development of
the new module.
The analysis of the new module is complete and the project moves on to the design stage.
During this stage all the necessary algorithms and module designs will be defined.
State three other items that will be defined for the new module during the design stage.
1 …
2 …
3 …
[3]
ĬÏĊ¾Ġ´íÈõÏĪÅĊàû¶Ă×
,
,
(d) Part of the coffee shop program contains three program modules as follows:
•
Module Init() has no parameters and returns a Boolean.
•
Module Reset() takes a string as a parameter and returns an Integer.
•
Module Check() repeatedly calls Init() followed by Reset().
Draw a structure chart to represent the relationship between the three modules, including all
parameters and return values.
[3]
ĬÍĊ¾Ġ´íÈõÏĪÅĊÞù¶Ą×
Question text
5
A software developer follows a program development life cycle. The life cycle divides the
development process into various stages.
(a) The following table lists some development activities.
Complete the table by writing the name of the life cycle stage for each activity.
Activity
Name of life cycle stage
A compiler is used.
A program that has been released for general use is modified.
The dry run method is used.
The program structure is specified.
[4]
(b) A software developer has written modules Test_A() and Test_B(). These have been
written but contain errors. These modules are called from several places in the main program
and testing of the main program (integration testing) has to stop.
Identify a method that can be used to continue testing the main program before the errors in
these modules have been corrected and describe how this would work.
Method …
Description …
…
…
…
[3]
ĬÙĊ®Ġ´íÈõÏĪÅĊÝû¸þ×
Question text
7
A coffee shop owner wants to introduce a computerised loyalty card system.
A programmer discusses the details of the system with the shop owner.
(a) Identify the stage of the program development life cycle that this discussion is part of and
give a document that will be produced during this stage.
Stage …
Document …
…
[2]
(b) The shop will give each customer a loyalty card that displays a unique customer ID as a
bar code. A customer will be able to present their card each time they make a purchase. The
system will scan the bar code, calculate points, and add them to the customer’s total. When
the customer next makes a purchase and presents their card, they will have the option to
exchange points for a discount.
The designer decides that this activity will be handled by a new module. Decomposition
will be used to break the problem of designing the new module down into sub-problems
(sub-modules).
Identify four sub-modules that could be used in the design of the new module and describe
their use.
Sub-module 1 …
Use …
…
Sub-module 2 …
Use …
…
Sub-module 3 …
Use …
…
Sub-module 4 …
Use …
…
[4]
ĬÙĊ®Ġ´íÈõÏĪÅĊßû¸Ā×