Вы находитесь на странице: 1из 35

CAMBRIDGE INTERNATIONAL EXAMINATIONS

Cambridge Ordinary Level

MARK SCHEME for the May/June 2015 series

2210 COMPUTER SCIENCE


2210/11 Paper 1, maximum raw mark 75

This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of
the examination. It shows the basis on which Examiners were instructed to award marks. It does not
indicate the details of the discussions that took place at an Examiners’ meeting before marking began,
which would have considered the acceptability of alternative answers.

Mark schemes should be read in conjunction with the question paper and the Principal Examiner
Report for Teachers.

Cambridge will not enter into discussions about these mark schemes.

Cambridge is publishing the mark schemes for the May/June 2015 series for most
Cambridge IGCSE®, Cambridge International A and AS Level components and some
Cambridge O Level components.

® IGCSE is the registered trademark of Cambridge International Examinations.


Page 2 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

1 (a) parallel

any one from:

– 8 bits/1 byte/multiple bits sent at a time


– using many/multiple/8 wires/lines (1 mark)

serial

any one from:

– one bit sent at a time


– over a single wire (1 mark) [2]

(b) parallel

– faster rate of data transmission (1 mark)

serial

any one from:

– more accurate/fewer errors over a longer distance


– less expensive wiring
– less chance of data being skewed/out of synchronisation/order (1 mark) [2]

(c) parallel

any one from:

– sending data from a computer to a printer


– internal data transfer (buses) (1 mark)

serial

– connect computer to a modem (1 mark) [2]

© Cambridge International Examinations 2015


Page 3 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

2 (a) – universal serial bus


– description of USB [1]

(b) Any two from:

– devices are automatically detected and configured when initially attached


– impossible to connect device incorrectly/connector only fits one way
– has become the industry standard
– supports multiple data transmission speeds
– lots of support base for USB software developers
– supported by many operating systems
– backward compatible
– faster transmission compared to wireless [2]

3 (a)

Working
A B C X

1
0 0 0
] 1 mark
0
0 0 1

0
0 1 0
] 1 mark
0
0 1 1

0
1 0 0
] 1 mark
1
1 0 1

1
1 1 0
] 1 mark
1
1 1 1

[4]

© Cambridge International Examinations 2015


Page 4 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

(b) 1 mark per dotted section

[3]

(c) X is 1 if:

(A is 1 OR B is 1) (1 mark)

AND (1 mark)

(B is 1 OR C is NOT 1) (1 mark)

accept equivalent ways of writing this:

e.g. (A OR B = 1) AND (B OR NOT C = 1)

e.g. (A OR B) AND (B OR NOT C)

e.g. (A + B) (B + C) [3]

© Cambridge International Examinations 2015


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

4 1 mark per correct word

1 protocol

2 web server name accept these three items in any order

3 file name

HTML tags/text

firewall

proxy server
[6]

5 1 mark per device, 1 mark per category

Description of storage device Name of Category of storage


storage device
Primary Secondary Off-line

optical media which uses one spiral


track; red lasers are used to read and
DVD
write data on the media surface; makes 
use of dual-layering technology to
increase the storage capacity

non-volatile memory chip; contents of


the chip cannot be altered; it is often
ROM 
used to store the start-up routines in a
computer (e.g. the BIOS)

optical media which uses concentric


tracks to store the data; this allows read
DVD-RAM  ()
and write operations to be carried out at
the same time

non-volatile memory device that uses Solid State


NAND flash memories (which consist of Drive/memory 
millions of transistors wired in series on (SSD)
single circuit boards)
(SD/XD card)
(USB storage
()
device)

optical media that uses blue laser


technology to read and write data on Blue-ray

the media surface; it uses a single 1.1
mm polycarbonate disc

[10]

© Cambridge International Examinations 2015


Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

6 (a) virus

any two from:

– program/software that replicates/copies itself


– can delete or alter files/data stored on a computer
– can make the computer “crash”/run slow

pharming

any two from:

– malicious code/software installed on a user’s hard drive/actual web server


– this code redirects user to a fake website (without their knowledge)
– to obtain personal/financial information/data

phishing

any two from:

– legitimate-looking emails sent to a user


– as soon as recipient opens/clicks on link in the email/attachment …
– … the user is directed to a fake website (without their knowledge)
– To obtain personal/financial information/data

[6]

(b) (i) Any two from:

– spyware/key logging software can only pick up key presses

– using mouse/touchscreen means no key presses to log

– the numbers on the key pad are in random/non-standard format,


which makes it more difficult to interpret [2]

© Cambridge International Examinations 2015


Page 7 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

(ii) 1 mark for name and 1 mark for description

any one from:

chip and PIN reader


– only the user and the bank know which codes can be generated

request user name


– additional security together with password/PIN

anti-virus
– removes/warns of a potential virus threat which can’t be passed on to
customers

firewall
– (helps) to protect bank computers from virus threats and hacking

encryption
– protects customer data by making any hacked information unreadable

security protocol
– governs the secure transmission of data

Biometric
– to recognise user through the use of, e.g. facial/retina/finger print

Alerts
– users IP/MAC address is registered and user is alerted through, e.g. SMS if
account is accessed through an unregistered address
[2]

7 (a)
this bus carries signals used to
address bus coordinate the computer’s
activities

this bi-directional bus is used to


exchange data between
control bus processor, memory and
input/output devices

this uni-directional bus carries


signals relating to memory
data bus
addresses between processor
and memory

2/3 matches – 2 marks


1 match – 1 mark
[2]

© Cambridge International Examinations 2015


Page 8 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

(b)

description of stage sequence


number

the instruction is then copied from the memory location contained in the
MAR (memory address register) and is placed in the MDR (memory data 3
register)

the instruction is finally decoded and is then executed 7

the PC (program counter) contains the address of the next instruction to be (1)
fetched

the entire instruction is then copied from the MDR (memory data register)
4
and placed in the CIR (current instruction register)

the address contained in the PC (program counter) is copied to the MAR


2
(memory address register) via the address bus

the address part of the instruction is placed in the MAR (memory address
6
register)

the value in the PC (program counter) is then incremented so that it points


5*
to the next instruction to be fetched

The incrementation of the program counter can appear at any stage after 2. All other
stages must be in the correct given order. [6]

8 (a) hours: 18

minutes: 53 [2]

(b)

hours (“C”) minutes (“D”)

0 0 0 0 0 1 1 1 : 0 0 0 1 1 1 1 0

[2]

© Cambridge International Examinations 2015


Page 9 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

(c) Any three from:

– reads values in registers “C” and “D”

– and checks the values against those stored in registers “A” and “B”
(NOTE: the first two statements can be interchanged, i.e. “A” and “B” read first)

– If values in corresponding registers are the same

– the microprocessor sends a signal to sound alarm/ring [3]

(d) Any three from:

– uses a light sensor

– sends signal/data back to microprocessor

– signal/data converted to digital (using ADC)

– value compared by microprocessor with pre-set/stored value

– if value < stored value, signal sent by microprocessor …

– … to the voltage supply (unit)

– … “value” of signal determines voltage supplied/brightness of LED [3]

(e) Any two from:

– no need to warm up

– whiter tint/more vivid colours/brighter image

– higher resolution

– much thinner monitors possible/lighter weight

– more reliable technology/longer lasting

– uses much less power/more efficient [2]

© Cambridge International Examinations 2015


Page 10 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

What is the denary (base 10)


equivalent to the hexadecimal
digit “E”? 8

x
If 1 GByte = 2
value of X?
then what is the
12

The number of bits in one byte 14

If the broadband data download


rate is 40 megabits/ second; how
long will it take to download a 60 19
MByte file?

What is the denary (base 10)


value of the binary number:
30
0 0 1 0 0 1 0 0?

What hexadecimal value is


obtained when the two
hexadecimal digits, C and D, are 36
added together?

5/6 matches – 5 marks


4 matches – 4 marks
3 matches – 3 marks
2 matches – 2 marks
1 match – 1 mark
[5]

© Cambridge International Examinations 2015


Page 11 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 11

10 1 mark per correctly placed tick

statement interpreter compiler

takes one statement at a time and executes it 

generates an error report at the end of translation of the



whole program

stops the translation process as soon as the first error is



encountered

slow speed of execution of program loops 

translates the entire program in one go 

[5]

© Cambridge International Examinations 2015


CAMBRIDGE INTERNATIONAL EXAMINATIONS
Cambridge Ordinary Level

MARK SCHEME for the May/June 2015 series

2210 COMPUTER SCIENCE


2210/12 Paper 1, maximum raw mark 75

This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of
the examination. It shows the basis on which Examiners were instructed to award marks. It does not
indicate the details of the discussions that took place at an Examiners’ meeting before marking began,
which would have considered the acceptability of alternative answers.

Mark schemes should be read in conjunction with the question paper and the Principal Examiner
Report for Teachers.

Cambridge will not enter into discussions about these mark schemes.

Cambridge is publishing the mark schemes for the May/June 2015 series for most
Cambridge IGCSE®, Cambridge International A and AS Level components and some
Cambridge O Level components.

® IGCSE is the registered trademark of Cambridge International Examinations.


Page 2 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

1 (a) 1 mark per correctly placed tick


Statement True False

they are a form of spyware 

they are used in advertising only 

they are used to track the browsing of a user 

they act in the same way as a virus 


[4]

(b)

malicious code installed on the hard drive of a


user’s computer or on the web server; this code hacking
will re-direct user to a fake web site without their
consent

software that gathers information by monitoring


key presses on a user’s computer and relays the pharming
information back to the person who sent the
software

program or code that replicates itself and is


designed to amend/delete/copy data and files on phishing
a user’s computer without their consent

the act of gaining illegal access to a computer spyware


system without the owner’s consent

creator of code sends out a legitimate-looking


email in the hope of gathering personal and
virus
financial data from the recipient; it requires the
email or attachment to be opened first

4/5 matches – 4 marks


3 matches – 3 marks
2 matches – 2 marks
1 match – 1 mark
[4]

© Cambridge International Examinations 2015


Page 3 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

2 (i) Either of the three options, resistive, capacitive or infra-red must be chosen
maximum of two marks from chosen technology:
resistive
− uses multiple layers of material …
− … that transmit electric currents
− when the top layer/screen is pushed/touched into the lower/bottom layer …
− … the electric current changes and location of “touch” is found

capacitive
− current sent/flows out from all 4 corners of the screen
− when finger/stylus touches screen, the current changes
− the location of “touch” is calculated
infra-red
− an “invisible” grid on the screen (pattern of infra-red LED beams)
− sensors detect where the screen has been touched through a break in an infrared
beam(s)
− the position where the screen touched is calculated [2]

(ii) 1 mark for benefit, 1 mark for drawback


Resistive

benefits:
− inexpensive/cheap to manufacture
− can use stylus/finger/gloved finger/pen
drawbacks:
− poor visibility in sunlight
− vulnerable to scratching
− wears through time
− does not allow multi-touch facility

capacitive

benefits:
− good visibility in sunlight
− (very) durable surface
− allows multi-touch facility
drawbacks:
− screen (glass) will shatter/break/crack (on impact)
− cannot use when wearing (standard) gloves
infra-red
benefits:
− good durability
− allows multi-touch facility
− can use stylus/finger/gloved finger/pen
drawbacks:
− expensive to manufacture
− screen (glass) will shatter/break/crack (on impact)
− sensitive to dust/dirt [2]

© Cambridge International Examinations 2015


Page 4 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

copies paper
barcode documents and voice
reader converts the text and recognition
pictures into a
computer-readable form

reads labels containing


parallel dark and light
microphone reading
lines using laser light;
passports
the width of each line
represents a binary
code

detects changes in
pH sensor automatic
acidity levels; data is
stock control
often in analogue form

audio device that allows


audio signals to be
converted into electric monitor soil in
scanner signals which can be a greenhouse
interpreted by a
computer after being
converted into digital

Input Device to Description Description to Application


3/4 matches – 3 marks 3/4 matches – 3 marks
2 matches – 2 marks 2 matches – 2 marks
1 match – 1 mark 1 match – 1 mark

[6]

© Cambridge International Examinations 2015


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

4 (a) Any one from:

− secure sockets layer


− encrypts data being transmitted
− use of https
− use public and private keys
[1]

(b) 1 mark for each number in the correct order, next to the correct stage.

Sequence
Stage
number

the encrypted data is then shared securely between the web browser and the
6
web server

the web browser attempts to connect to a web site which is secured by SSL (1)

the web server sends the web browser a copy of its SSL certificate 3

the web browser requests the web server to identify itself 2

the web server will then send back some form of acknowledgement to allow the
5
SSL encrypted session to begin

the web browser checks whether the SSL certificate is trustworthy; if it is then
4
the web browser sends a message back to the web server

[5]

© Cambridge International Examinations 2015


Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

5 (a) 1 mark per correctly placed tick

Received byte Byte transmitted correctly Byte transmitted incorrectly

11001000 

01111100 

01101001 

[3]

(b) (i) byte number: 7

column number: 6
[2]

(ii) Any two from:

− letter “A”(byte 7) transmitted as odd parity (three 1s)


− column 6 has odd parity (seven 1s)
− intersection of byte 7 and column 6 indicates incorrect bit value
[2]

(c) 190
[1]

(d) Any one from:

− 2 bits interchanged (e.g. 1 → 0 and 0 → 1) that won’t change parity value


− even number of bits/digits are transposed
− If there are multiple errors in the same byte/column, that still produce the same parity bit,
the error will not be detected
[1]

© Cambridge International Examinations 2015


Page 7 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

6 (a) 1 mark per correct logic gate, correctly connected

C X

[5]

(b)

G C L Workspace X

0 0 0 0

0 0 1 0
] 1 mark
0 1 0 1

0 1 1 0
] 1 mark
1 0 0 1

1 0 1 1
] 1 mark
1 1 0 1

1 1 1 0
] 1 mark

[4]

© Cambridge International Examinations 2015


Page 8 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

(c) 1 mark for correctly completed truth table

A B C

0 0 0

0 1 1

1 0 1

1 1 0
[1]

7 (a) Maximum 5 marks in total for question part

Description of how street light is controlled: (max 4 marks)

− sensor sends signal/data to the microprocessor


− signal/data converted to digital/using ADC
− microprocessor compares value to a stored value
− if input value < stored value …
− … signal sent from microprocessor to actuator
− … and light is switched on/off
− whole process continues in an infinite loop

Avoiding frequent on/off switches: (max 2 marks)

− microprocessor continues to keep light on/off for a pre-determined period


− after pre-determined period, sensor output is again sampled

[5]

© Cambridge International Examinations 2015


Page 9 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

(b) 1 mark for correct sensor, 1 mark for its matching application
(all THREE applications must be different)

sensor application

infra-red/motion automatic doors


burglar alarm systems

temperature chemical process


central heating/air con system
greenhouse environment
oven

sound/acoustic burglar alarm systems


leak detection system
disco lighting

moisture/humidity clothes drier


environmental control (greenhouse, air con)

pressure burglar alarm system


traffic light control
chemical process

carbon dioxide/ pollution monitoring in a river


oxygen/gas greenhouse environment (growth control)
confined area (e.g. space craft)
Fish tank/Aquarium

magnetic field mobile phone


anti-lock braking
CD players

[6]

8 1 mark per correct word

Freeware

Shareware

Free software

(Computer) Ethics

Plagiarism
[5]

© Cambridge International Examinations 2015


Page 10 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

9 (a) 1 mark per correctly placed tick

statement interpreter compiler

creates an executable file that runs directly on the computer 

more likely to crash the computer since the machine code



produced runs directly on the processor

easier to debug since each line of code is analysed and



checked before being executed

slow speed of execution of program loops 

it is more difficult to modify the code since the executable



code is now in machine code format

[5]

(b) Any one from:

− code is required to be converted into machine code/binary


− code needs to be produced that can be understood by the computer
[1]

(c) Any one from:

− close to English/native/human language


− easier/faster to correct errors/read/write
− works on many different machines/operating systems (portable)
[1]

(d) Any one from:

− work directly on registers/CPU


− more control over what happens in computer
− can use machine specific functions
[1]

(e) 1 mark per correct letter, maximum 2 marks


Assembly code: B
High-level language code: C
Machine code: A
[2]

© Cambridge International Examinations 2015


Page 11 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 12

10 (a) 1 mark for two correct lines, 2 marks for four correct lines

L (108): 0 1 1 0 1 1 0 0

I (105): 0 1 1 0 1 0 0 1

G (103): 0 1 1 0 0 1 1 1

N (110): 0 1 1 0 1 1 1 0
[2]

(b) 1 mark for each correct binary value


1 mark for each correct hexadecimal value
hexidecimal

L: 1 1 0 1 1 0 0 0 D8

G: 1 1 0 0 1 1 1 0 CE
[4]

© Cambridge International Examinations 2015


CAMBRIDGE INTERNATIONAL EXAMINATIONS
Cambridge Ordinary Level

MARK SCHEME for the May/June 2015 series

2210 COMPUTER SCIENCE


2210/21 Paper 2, maximum raw mark 50

This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of
the examination. It shows the basis on which Examiners were instructed to award marks. It does not
indicate the details of the discussions that took place at an Examiners’ meeting before marking began,
which would have considered the acceptability of alternative answers.

Mark schemes should be read in conjunction with the question paper and the Principal Examiner
Report for Teachers.

Cambridge will not enter into discussions about these mark schemes.

Cambridge is publishing the mark schemes for the May/June 2015 series for most
Cambridge IGCSE®, Cambridge International A and AS Level components and some
Cambridge O Level components.

® IGCSE is the registered trademark of Cambridge International Examinations.


Page 2 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

Section A

1 (a) (i) Many correct answers, they must be meaningful. These are examples only.
– MiddayTemperature[1:30]
or MiddayTemperature[0:29]
or MiddayTemperature[30]
or MiddayTemperature[29]
or MiddayTemperature[] (1 mark)
– MidnightTemperature[1:30]
or MidnightTemperature[0:29]
or MidnightTemperature[30]
or MidnightTemperature[29]
or MidnightTemperature[] (1 mark) [2]

(ii) Answers, must match above and the upper bound should have been changed from
30 to 7 or 29 to 6 or no change if not used. These are examples only.
– MiddayTemperature[1:7] MidnightTemperature[1:7]
or MiddayTemperature[7] MidnightTemperature[7] [1]

(iii) Any two variables with matching reasons, 1 mark for the variable and 1 mark
for the matching reason. The variables and the matching reasons must relate to
the tasks in the pre-release. There are many possible correct answers these are
examples only.
Variable – Counter: (Integer)
Reason – to use as a loop counter when entering the temperature

Variable – HighNoon: (Real)


Reason – to store the highest midday temperature [4]

© Cambridge International Examinations 2015


Page 3 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

(b) If loop used


– initialisation before loop
– loop
– running total inside loop
– calculation of average outside loop
– output of average with message outside loop
(Max 4 marks)

– completion of at least 3 of initialisation, running total, calculation of average and


output of average with message for both midday and midnight
(1 mark) [5]

sample algorithm:

MiddayTotal ← 0; MidnightTotal ← 0
FOR Count ← 1 TO 7
MiddayTotal ← MiddayTotal + MiddayTemperature[Count]
MidnightTotal ← MidnightTotal + MidnightTemperature[Count]
NEXT Count
MiddayAverage ← MiddayTotal/7
MidnightAverage ← MiddayTotal/7
PRINT 'The average midday temperature is ', MiddayAverage
PRINT 'The average midnight temperature is ', MidnightAverage

If loop not used


– total of 7 midday temperatures
– calculation of midday average (Note could be combined as one calculation,
see example below)
– total of 7 midnight temperatures
– calculation of midnight average (Note could be combined as one calculation,
see example below)
– output of both averages with suitable messages [5]

sample algorithm:

MiddayAverage ← (MiddayTemperature[1]+ MiddayTemperature[2]+


MiddayTemperature[3]+ MiddayTemperature[4]+
MiddayTemperature[5]+ MiddayTemperature[6]+
MiddayTemperature[7])/7
MidnightAverage ← (MidnightTemperature[1]+
MidnightTemperature[2]+ MidnightTemperature[3]+ Midnight[4]+
Midnight[5]+ Midnight[6]+ MidnightTemperature[7])/7

PRINT 'The average midday temperature is ', MiddayAverage


PRINT 'The average midnight temperature is ', MidnightAverage

© Cambridge International Examinations 2015


Page 4 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

(c) 1 mark for the data set and 1 mark for the matching reason.
There are many possible correct answers, these are examples only.
Data set – 30, 29, 28, 31.5, 32.3, 33, 29.7
Reason – normal data that should be accepted

Data set – twenty, 23.99, seventeen, 501, –273, @#@, seventy seven
Reason – abnormal data that should be rejected [2]

(d) Maximum 6 marks in total for question part


Explanation (max 6)
– set variable called HighestMidday to a large minus number
– loop (30 or 7) times to check each midday temperature in turn
– check midday temperature against HighestMidday / midday temperature >
HighestMidday
– …replace value in HighestMidday by midday temperature
– …store array index in MiddayMonthDay/MiddayWeekday
– output HighestMidday outside the loop
– output MiddayMonthDay/MiddayWeekday outside the loop

Sample algorithm (max 4):


HighestMidday ← -999
FOR Count ← 1 TO 7
IF MiddayTemperature [Count] > HighestMidday
THEN HighestMidday ← MiddayTemperature[Count]
MiddayMonthDay/MiddayWeekday ← Count
ENDIF
NEXT Count
PRINT 'The highest midday temperature was ',HighestMidday, ' on
day ', Count

If pseudocode or programming only and no explanation, then maximum 4 marks [6]

© Cambridge International Examinations 2015


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

Section B

2 1 mark for each error identified + suggested correction


Line 1 or Small = 0: this should read Small = 999
line 5 or IF…: this should read IF Num < Small THEN Small = Num
line 8 or UNTIL: this should read UNTIL Counter = 10 or
UNTIL Counter > = 10 or
UNTIL Counter > 9
line 7 or PRINT…: PRINT Small should come after the end of the repeat loop
or
line 8 or UNTIL: this should come before line 7 [4]

Total Reject Weight Output

0 0

1.8 1.8

1 26.0

8.8 7.0

20.1 11.3

30.1 10.0

32.6 2.5

2 25.2

37.6 5.0

57.4 19.8

3 29.3

–1 57.4, 3

(2 marks) (1 mark) 1 mark) (1 mark)


(–1 for each error) (allow follow through)
(then follow though) (from Total and Reject)

[5]

© Cambridge International Examinations 2015


Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

4 1 mark for each correct link, up to maximum of 4 marks

Integer 'a'

Real 2

Char 2.0

String True

Boolean 'Twelve'

[4]

5 Any two points from


– a variable is used to store data that can change during the running of a program
– a constant is used to store data that will not be changed during the running of a
program [2]

6 – FOR (… TO … NEXT)
– REPEAT (… UNTIL)
– WHILE (… DO … ENDWHILE) [3]

7 (a) – 7 [1]

(b) – Brochure No
– Uniquely identifies each property [2]

(c) Garage – Boolean


Number of Bedrooms – Number/Integer/Single
Price in $ – Number/Single/Real/Currency [3]

(d) 399000 H13


450000 H10 [2]

© Cambridge International Examinations 2015


Page 7 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

(e)
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: True < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: Yes < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: =Yes < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: =-1 < 200000

or:

(1 mark) (1 mark) (1 mark) (1 mark)


[4]
© Cambridge International Examinations 2015
CAMBRIDGE INTERNATIONAL EXAMINATIONS
Cambridge Ordinary Level

MARK SCHEME for the May/June 2015 series

2210 COMPUTER SCIENCE


2210/22 Paper 2, maximum raw mark 50

This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of
the examination. It shows the basis on which Examiners were instructed to award marks. It does not
indicate the details of the discussions that took place at an Examiners’ meeting before marking began,
which would have considered the acceptability of alternative answers.

Mark schemes should be read in conjunction with the question paper and the Principal Examiner
Report for Teachers.

Cambridge will not enter into discussions about these mark schemes.

Cambridge is publishing the mark schemes for the May/June 2015 series for most
Cambridge IGCSE®, Cambridge International A and AS Level components and some
Cambridge O Level components.

® IGCSE is the registered trademark of Cambridge International Examinations.


Page 2 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

Section A

1 (a) (i) Many correct answers, they must be meaningful. This is an example only.
– PupilName[1:30]
or PupilName[0:29]
or PupilName[30]
or PupilName[29]
or PupilName[] [1]

(ii) Many correct answers, they must be meaningful. This is an example only.
– StartWeight[1:30]
or StartWeight[0:29]
or StartWeight[30]
or StartWeight[29]
or StartWeight[] [1]

(iii) Answers, must match (i) and (ii) above and the upper bound should have been changed
from 30 to 600 or 29 to 599 or no change if not used.
– StartWeight[1:600] or StartWeight[600]
– PupilName[1:600] or PupilName[600] [1]

(b) any four from


– prompt for entry of final weight that includes pupil’s name
– input final weight
– validation check for final weight
– calculation of difference in weight
– ……using the initial weight stored in the array
– store difference in weight
(Max 4 marks)

– loop for 600 pupils


(1 mark) [5]

sample algorithm:

FOR Count  1 TO 600


REPEAT
PRINT 'Please enter weight for ', PupilName[Count]
INPUT FinalWeight
UNTIL FinalWeight < 120 AND FinalWeight > 20
WeightDifference[Count]  FinalWeight - StartWeight[Count]
NEXT Count

© Cambridge International Examinations 2015


Page 3 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

(c) (i) any two from


– check that the weights are within a given range
– check that the weights are numeric
– check that the weights are given to one decimal point
– character/type check on name
– length check on name
[2]

(ii) 1 mark for the data and 1 mark for the matching reason.
There are many possible correct answers this is an example only.
Weight 1 – 35.2
Reason – normal data that should be accepted

Weight 2 – twenty
Reason – abnormal data that should be rejected [4]

(d) Maximum 6 marks in total for question part


Explanation (max 6)
– loop 30 or 600 times to check each difference in weight
– check for a difference in weight
– less than -2.5 (final weight – start weight) or greater than 2.5 (start weight – final weight)
– …If so output pupil’s name
– …if so output difference in weight
– …if so output message that it is a fall in weight

Sample algorithm (max 4)


FOR Count  1 TO 30
IF WeightDifference [Count] < -2.5
THEN PRINT PupilName[Count], 'The weight loss was ',
WeightDifference [Count]
ENDIF
NEXT Count

If pseudocode or programming only and no explanation, then maximum 4 marks [6]

© Cambridge International Examinations 2015


Page 4 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

Section B

2 1 mark for each error identified + suggested correction


Line 1 or Large =9999: this should read Large = 0
Line 3 or WHILE: this should read WHILE Counter < 30
line 6 or IF: this should read IF Num > Large THEN Large = Num
line 7 or Counter =…: this should read Counter = Counter + 1 [4]

3 (a)
Trace table set 1
A B C D E F Total Check Output

5 2 4 3 1 5 38 5 Accept

-----------------------------------(1 mark)-----------------------------------(1 mark)------


Trace table set 2
A B C D E F Total Check Output

3 2 1 0 7 3 45 1 Reject

-----------------------------------(1 mark)-----------------------------------(1 mark)------


[4]

(b) – (modulo 11) check digit calculation [1]

(c) 1 mark for identifying the problem, 2 marks for the solution
Problem – doesn’t deal correctly with remainder 10/a check digit of X
Solution – check Z for X as a final digit
– have a special case where check = 10
– accept where Check = 10 and F = X [3]

© Cambridge International Examinations 2015


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

4 1 mark for each correct line, two lines from one box not allowed

Counting Sum = Sum + Value[n]

IF Value = 10 THEN PRINT


Repetition
'X'

Selection FOR Counter = 1 TO 10

Amount = Amount + 1
Totalling

Sum = Num1 + Num2


[4]

5 (a) 1 mark for FOR … TO … NEXT 1 mark for INPUT


FOR Count  1 TO 1000
INPUT A[Count]
NEXT (Count) [2]

(b) 4 marks
– initialisation
– start of loop
– update loop counter
– end of loop

Example1
Count  1 (1 mark)
REPEAT (1 mark)
INPUT A[Count]
Count  Count + 1 (1 mark)
UNTIL Count > 1000 (1 mark)

Example2
Count  0 (1 mark)
WHILE Count < 1000 (1 mark)
DO
Count  Count + 1 (1 mark)
INPUT A[Count]
ENDWHILE (1 mark)
[4]

© Cambridge International Examinations 2015


Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

6 (a) – 7 [1]

(b) – Class ID
– Uniquely identifies each student [2]

(c) Diana Abur, Paul Smith


– both names
– ……. correct order [2]

(d)
Field: Student Name Maths English

Table: MARKS MARKS MARKS

Sort:

Show:   

Criteria: <40 <40

or:

(1 mark) (1 mark) (1 mark) [3]

© Cambridge International Examinations 2015

Вам также может понравиться