Filters
Year Range
20212025
2021
2022
2024
2025
Difficulty
Session
Variant
Sub-topic
76 questions
Computer Science/Paper 2/Software Development
CAIEAS Level9618-as · Paper 2

Software Development

76 questions· page 1 of 8

Q72025 Oct/Nov·P212 partsMedium
(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 stateInputOutputNext state
S1A2X2S3
S1A1X1S2
S2A4X4S5
S3A1S3
S3A3X3S2
S3A2X4S4
S4A1X1S4
S4A3S2
S4A4X4S5

Complete the state-transition diagram to represent the information given in the table.

(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.

Similar questions
Q52025 Oct/Nov·P222 partsMedium-Easy
(a)

The table lists some of the development activities.

Complete the table by writing the name of the life cycle stage for each activity:

ActivityName 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’
(b)

Alpha and beta testing has been completed. The final testing stage is carried out by the customer.

Identify this final testing stage.

.............................................................................................................................................

Similar questions
Q72025 Oct/Nov·P222 partsMedium-Easy
(a)

Explain the meaning of the curved arrow symbol in this structure chart.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

(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:

...................................................................................................................................................

...................................................................................................................................................

Similar questions
Q72025 Oct/Nov·P232 partsMedium
(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 stateInputOutputNext state
S1A1S2
S2A2X4S3
S3A1X1S3
S3A2X1S3
S3A3X3S4
S3A4S2
S4A3X4S5
S4A4X4S5
S4A1S2

Complete the state-transition diagram to represent the information given in the table:

(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.

Similar questions
Q52024 Oct/Nov·P213 partsMedium-Easy
(a)

The following table lists some development activities.

Complete the table by writing the name of the life cycle stage for each activity.

ActivityName 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.
(b)(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 dataTest data valueExpected result
Normal30TRUE
(b)(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.

Similar questions
Q72024 Oct/Nov·P212 partsMedium
(a)

Complete the structure chart for these modules.

(b)

Explain the meaning of the curved arrow symbol used in the diagram in part (a).

Similar questions
Q52024 Oct/Nov·P232 partsMedium-Easy
(a)

The following table lists some development activities.

Complete the table by writing the name of the life cycle stage for each activity.

ActivityName 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.
(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 ................................................................................................................................

...................................................................................................................................................

Similar questions
Q52023 May/Jun·P213 partsMedium-Easy
(a)(i)

Give two reasons why this may not be the most appropriate model to use in this case.

Reason 1 ...........................................................................................................................

Reason 2 ...........................................................................................................................

(a)(ii)

Identify a more appropriate program development life cycle model for this scenario.

(b)

The website has been running in test mode for several weeks.

Identify and describe a final stage of testing that should take place before the website is made available to all customers.

Stage ........................................................................................................................................

Description ................................................................................................................................

Similar questions
Q52023 May/Jun·P224 partsMedium
(a)

Explain why the program gives unexpected results.

(b)

Explain why the compiler does not identify this error.

(c)

Describe how a typical Integrated Development Environment (IDE) could be used to identify this error.

(d)

The pseudocode is converted into program code as part of a larger program.

During compilation, a complex statement generates an error.

The programmer does not want to delete the complex statement but wants to change the statement so that it is ignored by the compiler.

State how this may be achieved.

Similar questions
Q52023 May/Jun·P232 partsMedium-Easy
(a)

The program will be tested using the walkthrough method.

Additional information will be needed before this method can be used.

Identify this additional information and explain why it is needed.

Additional information ...............................................................................................................

...................................................................................................................................................

Explanation ...............................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

(b)

Testing is completed and the program is made available to users.

Some time later, changes are made to the program to improve the speed of response.

State the type of maintenance that has been applied to the program.

.............................................................................................................................................

Similar questions