Past-paper question · 2023 February-March · Paper 04 · Q15

Question 15 2023 · February-March · Paper 04 · 45 marks

Original past-paper question for 15
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme.

Show text version of question

Question 15

Name the ranges as shown here.

Name Range I J data C5:G14 times B5:B14 days C4:G4 Time period Select time Morning In cell J4 add a drop down list to select a time period as period Morning Afternoon shown. All day

In cells K5:O5 add formulas to calculate the total sales for the time period selected from the drop down list.

For example:

Select time Select time period period

Rename the worksheet SelectPeriod

Save your workbook as a spreadsheet named SalesData_ followed by your centre number_ e.g. SalesData_ZZ999_9999

[7]

Question 5

Part (b)

Copy cells A1:G14 to a new worksheet in the same workbook.

Rename the worksheet SelectDay

Edit and format the worksheet to look like this:

I

P

In cell J4 add a drop down list to select the day. I J

Day Select day Mon Mon Tue Wed Thu Fri

All day In cells K5:K7 add formulas to calculate the total sales for each period of the selected day.

For example with Wednesday selected it will look like this: I J K

Day Select day Wed Sales Morning 41 Afternoon 18 All Day 59

Re-save your workbook.

[9]

Question 6

Part (c)

Copy cells A1:G14 to a new worksheet in the same workbook.

Rename the worksheet SelectAll

Edit and format the worksheet to look like this:

I

Sales

SelectDay All

In cell J4 add a drop down list to select the day. I J K

Day Select day and Wed Sales time period Mon Tue Wed Thu Fri

In cell J5 add a drop down list to select the time period. I J K

Day Select day and Wed Sales time period Morning Morning Afternoon All day

In cell K5 add a formula to calculate the total sales for the selected time period of the I J K selected day.

Day Select day and Wed Sales time period Morning 41 Re-save your workbook.

[9]

Question 7

Task 4

Open JS Task.html in both a browser and in a text editor.

Amend the “Click to total the sales” <button …> code and add JavaScript so that when the button is clicked the total sales recorded for each time period are displayed in the cells as shown:

Amend the selection code and add JavaScript so that when a new day is selected the data in all the cells is cleared.

Save the web page as SalesForm_ followed by your centre number_candidate number e.g. SalesForm_ZZ999_9999.html

[20]

Question 8

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 Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.

Topic relevance

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_m23_qp_04.pdf

Keep practising this topic