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

7 questions · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
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]

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

3
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]

Advertisement
4
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]

5
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]

6
9608/21/M/J/17 · Question 4May/June 2017Paper 216 marks
Loading question…
Question text

4
(a) A structure chart is a tool used in modular program design.
State three pieces of information that a structure chart can convey about a program design.
1 …
…
2 …
…
3 …
…
[3]
(b) The following diagram shows part of a structure chart.
Checkout
A
B
C
Card
Account
payment
payment
Examples of the data items that correspond to the arrows are given in this table:
Arrow
Data item
A
234.56
B
"Mr Robert Zimmerman"
C
True
Use pseudocode to write the function header for the Card payment module.
…
… [3]

7
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