Software development and testing – A Level Computer Science (old syllabus, to 2021) (9608)

10 questions

0 / 0Answer a question to start your score.
New quizSaved 0

Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.

Advertisement
1
9608/22/M/J/20 · Question 1May/June 2020Paper 2210 marks
Loading question…
Question text

1
(a) Selection and repetition are basic constructs of an algorithm.
Name and describe one other construct.
Name …
Description …
…
…
[3]
(b) Program coding is a transferable skill.
Explain the term transferable skill.
…
…
…
… [2]
(c) Count-controlled and post-condition are two types of loop.
Describe the characteristics of each of these types of loop.
Count-controlled …
…
…
Post-condition …
…
…
[2]
(d) Name three features provided by an Integrated Development Environment (IDE) that assist
in the coding and initial error detection stages of the program development cycle.
1 …
2 …
3 …
[3]

2
9608/23/M/J/20 · Question 1May/June 2020Paper 238 marks
Loading question…
Question text

1
(a) Algorithms are produced during program development.
State when you would produce an algorithm during program development and state its
purpose.
When …
…
Purpose …
…
[2]
(b) Selection is one of the basic constructs used in algorithms.
Explain the term selection.
…
…
…
… [2]
(c) Explain the process of problem decomposition. State one reason it may be used.
Explanation …
…
…
Reason …
…
…
[2]
(d) Name two features provided by a typical Integrated Development Environment (IDE) that
assist in the debugging stage of the program development cycle.
1 …
2 …
[2]

3
9608/23/M/J/16 · Question 4May/June 2016Paper 237 marks
Loading question…
Question text

4
(a) Name two features of your chosen high-level programming language that support the
implementation of a modular design.
1 …
2 …
[2]
(b) (i)
The structure chart shows part of the design of a program for an online shopping system.
The user has already added a number of products to their virtual basket.
Draw on the chart, the symbol to show that the process of modifying the basket contents
may be iterated (repeated).
Modify Basket Contents
D
B
E
A
F
C
Input product
Change product
Remove
data
quantity
product
[1]
(ii)
Each arrow in the structure chart above represents a parameter.
The table below shows the three data items that the six parameters pass between
modules.
Tick (✓) to match each parameter to the correct data item.
Parameter
Data item
A
B
C
D
E
F
Product ID
Quantity
Flag Value – indicating
operation success or fail
[4]

Advertisement
4
9608/21/O/N/19 · Question 2Oct/Nov 2019Paper 2110 marks
Loading question…
Question text

2
(a) A structure chart is often used in modular program design. One feature shown is the sequence
of module execution.
State four other features that may be shown.
Feature 1 …
…
Feature 2 …
…
Feature 3 …
…
Feature 4 …
…
[4]
(b) Identify and describe one feature of an Integrated Development Environment (IDE) that can
help with program presentation.
Feature …
Description …
…
[2]
(c) By value is one method of passing a parameter to a subroutine.
Identify and describe the other method.
Method …
Description …
…
…
[2]
(d) Explain the term adaptive maintenance.
…
…
…
… [2]

5
9608/21/M/J/20 · Question 1May/June 2020Paper 218 marks
Loading question…
Question text

1
(a) Complete this definition of the term algorithm.
An algorithm is a solution to a problem expressed as …
…
… [2]
(b) A program design includes the use of subroutines (functions and procedures).
Give three advantages of using subroutines in a program.
1 …
…
2 …
…
3 …
…
[3]
(c) Draw lines on the following diagram to connect each computing term with the appropriate
description.
Term
Description
Checking that a program
Selection
performs as expected
A method for increasing the
Black-box testing
level of detail of an algorithm
To test a condition to determine
Stepwise refinement
the path of program execution
A method of executing certain
Iteration
lines of code more than once
[3]

6
9608/21/O/N/18 · Question 3Oct/Nov 2018Paper 219 marks
Loading question…
Question text

3
(a) State why a high-level language program must be translated before it can be run.
…
… [1]
(b) A program runs but does not give the expected output.
Describe two methods you could use to find the error.
Method 1 …
…
…
…
Method 2 …
…
…
…
[4]
(c) Two testing methods are black-box and white-box. A student is choosing test data for both
methods.
Tick one or more boxes in each row to identify the testing method each statement describes.
Statement
White-box
Black-box
The student does not need to know the structure of the
code.
The student chooses data to test every possible path
through the code.
The student chooses normal, boundary and erroneous data.
The student chooses data to test that the program meets the
specification.
[4]
Question 4 begins on the next page.

7
9608/22/O/N/19 · Question 2Oct/Nov 2019Paper 226 marks
Loading question…
Question text

2
(a) Describe the program development cycle with reference to the following:
•
source code
•
object code
•
corrective maintenance.
…
…
…
…
…
…
…
…
… [3]
(b) Give three features of an Integrated Development Environment (IDE) that can help with
initial error detection while writing the program.
1 …
…
2 …
…
3 …
…
[3]

8
9608/21/M/J/20 · Question 4May/June 2020Paper 218 marks
Loading question…
Question text

4
(a) An inexperienced user buys a games program. A program fault occurs while the user is
playing the game.
Explain what is meant by a program fault.
…
…
…
…
…
…
… [2]
(b) Give three ways to minimise the risk of faults when writing programs.
1 …
…
2 …
…
3 …
… [3]
(c) Three types of program error are syntax, logic and run-time.
Define these three types.
Syntax error …
…
…
Logic error …
…
…
Run-time error …
…
…
[3]
Question 5 begins on the next page.

Advertisement
9
9608/21/O/N/20 · Question 1Oct/Nov 2020Paper 2111 marks
Loading question…
Question text

1
(a) Translation is one stage of the program development cycle.
State three other stages.
1 …
2 …
3 …
[3]
(b) Define the following types of maintenance.
Corrective maintenance …
…
…
Adaptive maintenance …
…
…
[2]
(c) Experienced programmers have a transferable skill.
Explain how this skill might be useful for a programmer.
…
…
…
… [2]
(d) Jackie has written a program and has used the identifier names I1, I2, and I3.
Explain why this is not good practice.
…
…
…
… [2]
(e) A pseudocode algorithm assigns values to three variables as follows:
FALSE
GateOpen
Alarm
TRUE
PowerFail
TRUE
Evaluate the expressions given in the following table:
Expression
Evaluates to
Alarm OR NOT PowerFail
NOT (Alarm AND PowerFail)
(GateOpen OR Alarm) AND PowerFail
(GateOpen AND Alarm) OR NOT PowerFail
[2]

10
9608/21/M/J/19 · Question 1May/June 2019Paper 2120 marks
Loading question…
Question text

1
(a) (i)
Algorithms may be expressed using four basic constructs. One construct is sequence.
Complete the following table for two other constructs.
Construct
Pseudocode example
…
…
…
…
…
…
…
…
…
…
[4]
(ii)
Simple algorithms usually consist of input, process and output.
Complete the table by placing ticks (‘3’) in the relevant boxes.
Pseudocode statement
Input
Process
Output
SensorValue * Factor
Temp
WRITEFILE "LogFile.txt", TextLine
WRITEFILE "LogFile.txt", MyName & MyIDNumber
READFILE "AddressBook.txt", NextLine
[4]
(b) Program variables have values as follows:
Variable
Value
Title
"101 tricks with spaghetti"
Version
'C'
Author
"Eric Peapod"
PackSize
4
WeightEach
6.2
Paperback
TRUE
(i)
Evaluate each expression in the following table.
If an expression is invalid, write ERROR.
For the built-in functions list, refer to the Appendix on page 16.
Expression
Evaluates to
MID(Title, 5, 3) & RIGHT(Author, 3)
INT(WeightEach * PackSize)
PackSize >= 4 AND WeightEach < 6.2
LEFT(Author, ASC(Version) - 65)
RIGHT(Title, (LENGTH(Author) – 6))
[5]
(ii)
Programming languages support different data types.
Give an appropriate data type for the following variables from part (b).
Variable
Data type
Title
Version
PackSize
WeightEach
Paperback
[5]
(c) White-box and black-box are two types of testing. In white-box testing, data are chosen to
test every possible path through the program.
Explain how data are chosen in black-box testing.
…
… [2]

Advertisement