Past-paper question · 2024 February-March · Paper 22 · Q11

Question 11 2024 · February-March · Paper 22 · 15 marks

Original past-paper question for 11
Original past-paper question for 11
Original past-paper question for 11
Reveal official mark-scheme answer Official mark-scheme answer for 11

Official answer for Question 11

✓
Check if each requirement listed below has been met. Requirements may be met using a suitable built-in function from the

Question 15

✓
programming language used (Python, VB.NET or Java).
✓
On the script, add seen if the requirement has been met, NE if a partial attempt, or a cross if no attempt .
✓
Use the tables for AO2 and AO3 below to award a mark in a suitable band using a best fit approach, then add up the total.
✓
Marks are available for:
  • AO2 (maximum 9 marks)
  • AO3 (maximum 6 marks)
✓
Data structures required with names as given in the scenario:
✓
Arrays or lists StudentName, ScreenTime
✓
Variable ClassSize could be constant
✓
Requirements (techniques)
✓
R1 allows a student to enter their weekly screen time and calculates the total number of minutes of screen time for each
✓
student in the week (input, iteration and totalling)
✓
R2 counts the number of days with more than 300 minutes screen time each day and calculates the average week’s
✓
screen time for the whole class (selection, counting, iteration, calculating average)
✓
R3 finds the student with the lowest weekly minutes. Outputs for each student: name, total week’s screen time in hours
✓
and minutes, number of days with more than 300 minutes screen time, outputs the average weeks screen time for the
✓
whole class and the name of the student with the lowest number of minutes (finding minimum value, output)
✓
Cambridge IGCSE – Mark Scheme
✓
0478/22
✓
February/March 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_m24_ms_22.pdf →

Show text version of question

Question 11

Students in a class are recording the amount of time in minutes spent in front of a screen for each day of the week.

The one-dimensional (1D) array StudentName[] contains the names of the students in the class.

The two-dimensional (2D) array ScreenTime[] is used to input the number of minutes on each day spent in front of a screen.

The position of each student’s data in the two arrays is the same. For example, the student stored at index 10 in StudentName[] and ScreenTime[] is the same.

The variable ClassSize contains the number of students in the class.

Write a program that meets these requirements:

  • allows all the students to enter their daily minutes of screen times for the past week
  • calculates the total number of minutes of screen time for each student in the week
  • counts, for each student, the number of days with more than 300 minutes of screen time
  • calculates the average weekly minutes of screen time for the whole class
  • finds the student with the lowest weekly minutes of screen time
  • outputs for each student:
  • name
  • total week’s screen time in hours and minutes
  • number of days with more than 300 minutes of screen time
  • outputs the average weekly minutes of screen time for the whole class
  • outputs the name of the student with the lowest weekly screen time.

You must use pseudocode or program code and add comments to explain how your code works. All inputs and outputs must contain suitable messages.

Assume that the array StudentName[] and the variable ClassSize already contain the required data.

You do not need to declare any arrays or variables; you may assume that this has already been done.

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

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

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

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

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

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

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

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

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

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

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

Question 15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 16

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[15]

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 › Arrays

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 0478_m24_qp_22.pdf

Keep practising this topic