Question 5 2020 · February-March · Paper 04 · 15 marks
Question 5
Open the MarkConversionTask.html file in a text editor.
Add JavaScript code to prompt the user to enter a mark and display the mark entered and the correct grade using the text:
For <Number of marks entered> marks the grade awarded is: <Grade awarded>
Students who score:
- 87 marks or above are awarded an A grade
- between 65 and 86 marks (inclusive) are awarded a B grade
- between 37 and 64 marks (inclusive) are awarded a C grade
- less than 37 marks or are recorded as absent (abs) are awarded an F grade.
For example, if the user entered 68 marks the page must display: For 68 marks the grade awarded is: B
Insert programmer comments to explain important parts of your code.
Save the page as MarkConversion_ followed by your centre number_candidate number e.g. MarkConversion_ZZ999_9999
Question 10
Question 11
Question 12
reasonable 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 Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme.
Why this question appears here
98% assigned-topic match · Programming for the web
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 9626_m20_qp_04.pdf
