Cambridge International Examinations
Cambridge International Advanced Subsidiary and Advanced Level
COMPUTER SCIENCE 9608/02
Paper 2 Fundamental Problem-solving and Programming Skills For Examination from 2015
SPECIMEN PAPER
2 hours
Candidates answer on the Question Paper.
No Additional Materials are required.
READ THESE INSTRUCTIONS FIRST
Write your Centre number, candidate number and name in the spaces at the top of this page.
Write in dark blue or black pen.
You may use an HB pencil for any diagrams, graphs or rough working.
Do not use staples, paper clips, glue or correction fluid.
Answer all questions.
No marks will be awarded for using brand names for software packages or hardware.
No calculators allowed.
At the end of the examination, fasten all your work securely together.
The number of marks is given in brackets [ ] at the end of each question or part question.
This document consists of 16 printed pages.
© UCLES 2012 [Turn over
, 2
Throughout the paper you will be asked to write either pseudocode or program code.
Complete the statement to say which high-level programming language you will use.
Programming language used: ............................................
1 A program is to be written to enter and display the result of a cricket match. The winning team is
the one scoring the most runs.
The structured English description of the problem is shown here. It assumes the scores are not
equal.
INPUT HomeTeamName
INPUT HomeRuns
INPUT AwayTeamName
INPUT AwayRuns
SUBTRACT AwaysRuns FROM HomeRuns STORE AS RunDifference
CALCULATE the winning team STORE AS WinningTeamName
OUTPUT WinningTeamName and RunDifference
Typical output is shown.
© UCLES 2012 9608/02/SP/15
, 3
Write program code from this structured English.
[9]
© UCLES 2012 9608/02/SP/15 [Turn over
Cambridge International Advanced Subsidiary and Advanced Level
COMPUTER SCIENCE 9608/02
Paper 2 Fundamental Problem-solving and Programming Skills For Examination from 2015
SPECIMEN PAPER
2 hours
Candidates answer on the Question Paper.
No Additional Materials are required.
READ THESE INSTRUCTIONS FIRST
Write your Centre number, candidate number and name in the spaces at the top of this page.
Write in dark blue or black pen.
You may use an HB pencil for any diagrams, graphs or rough working.
Do not use staples, paper clips, glue or correction fluid.
Answer all questions.
No marks will be awarded for using brand names for software packages or hardware.
No calculators allowed.
At the end of the examination, fasten all your work securely together.
The number of marks is given in brackets [ ] at the end of each question or part question.
This document consists of 16 printed pages.
© UCLES 2012 [Turn over
, 2
Throughout the paper you will be asked to write either pseudocode or program code.
Complete the statement to say which high-level programming language you will use.
Programming language used: ............................................
1 A program is to be written to enter and display the result of a cricket match. The winning team is
the one scoring the most runs.
The structured English description of the problem is shown here. It assumes the scores are not
equal.
INPUT HomeTeamName
INPUT HomeRuns
INPUT AwayTeamName
INPUT AwayRuns
SUBTRACT AwaysRuns FROM HomeRuns STORE AS RunDifference
CALCULATE the winning team STORE AS WinningTeamName
OUTPUT WinningTeamName and RunDifference
Typical output is shown.
© UCLES 2012 9608/02/SP/15
, 3
Write program code from this structured English.
[9]
© UCLES 2012 9608/02/SP/15 [Turn over