Past-paper question · 2015 May-June · Paper 23 · Q4(c)

Question 4(c) 2015 · May-June · Paper 23 · 2 marks

Original past-paper question for 4(C)
Original past-paper question for 4(C)
Reveal official mark-scheme answer Official mark-scheme answer for 4(C)

Official answer for Question 4

Part (c)

Part (c)

•

✓
Integration testing
✓
•
✓
Black box testing
[2]

Mark scheme 9691_s15_ms_23.pdf →

Show text version of question

Question 4

Part (c)

Question 4

A leap year is a year with special numerical properties.

Ahmed is planning to write a function to check whether a year is a leap year.

He starts by drawing a flowchart.

FUNCTION IsLeapYear(Year)

Is Year exactly No Is Year exactly No Is Year exactly No divisible by 400? divisible by 100? divisible by 4?

Yes Yes Yes

RETURN RETURN RETURN RETURN TRUE FALSE TRUE FALSE

ENDFUNCTION

Question 15

Part (c)

When Ahmed has tested the function, he plans to use it in a program.

Give two types of testing that Ahmed could do with the completed program.

1 ................................................................................................................................................

...................................................................................................................................................

2 ................................................................................................................................................

...............................................................................................................................................[2]

effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.

Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9691_s15_qp_23.pdf

Keep practising this topic