0% found this document useful (0 votes)
150 views5 pages

Chapter 30 Software Development: Answers To Coursebook Questions and Tasks

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views5 pages

Chapter 30 Software Development: Answers To Coursebook Questions and Tasks

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Chapter 30 Software Development: Answers to

coursebook questions and tasks


Syllabus sections covered: 4.4

Task 30.01
Test data for the number guessing game
Type of test Example test Expected output
data data
valid same as secret congratulation
number
valid any integer consolation message

invalid any non-number program crashes

Test data for the Connect4 game


The only input is column number
Type of Expected output
Example test data
test data
Normal a number between 1 and 7 token should appear in the correct
column
test for a winning line:
four same colour in a column should get the winner message
four same colour in a row
Boundary a column where there are it should fill the top row of that column
already five tokens

a valid column in a grid where the board should now be full, and it
there is only one free space should give a message to that effect
invalid 0 or 8 invalid column number error message

a number between 1 and 7, can’t add a token to a full column, so


but the column is already full should get an error message

Question 30.01
There would be no difference to the critical path, because H still takes less time than
E, F, G and K.

Question 30.02
Activity

Identify requirements

© Cambridge University Press 2016


Produce design

Write program code

Test modules

Integration testing

Install software

Acceptance testing

Write documentation

Write training material

Train users

Go live

Week Number
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9

Figure 30.2

Exam-style Question 1

Test data for the parameter NumberToDraw:

Type of test Example Expected output Justification


data test data
Normal 1 / Check correct number
4 //// of bars output
5 ////\ and fifth bar sloping
6 ////\/ the other way
Boundary 0 0 is smallest possible
value
and no bars should be
output
Extreme e.g. 45 ////\////\////\////\////\////\////\ How is the procedure
////\////\ going to deal with a
large number, more
than number of bars
that fit on a line

© Cambridge University Press 2016


Exam-style questions
2 a i

10
5
M

10 7 2 3 2 4
3 5 G
7 8 11 13 15
D H J N K
5

2
B

1
1 A
2 12 Q 1

3
C
1
1 14
4
4 6 F
9 P
E

16

Figure 30.03

ii Critical path: A, B,D,G,H,J,N,K,Q

© Cambridge University Press 2016


b i

Activity

A
Week
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Figure 30.04

© Cambridge University Press 2016


ii Time required to complete project: 35 w

© Cambridge University Press 2016

You might also like