Past-paper question · 2023 February-March · Paper 22 · Q6(b)

Question 6(b) 2023 · February-March · Paper 22 · 2 marks

Original past-paper question for 6(B)
Original past-paper question for 6(B)
Reveal official mark-scheme answer Official mark-scheme answer for 6(B)

Official answer for Question 6

Part (b)

✓
One mark for checking for >= 92

Question 2

✓
One mark for outputting "A-rated" only if the condition is met
✓
For example
✓
IF Efficiency >= 92
✓
THEN
✓
OUTPUT "A-rated"
✓
ENDIF
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_m23_ms_22.pdf →

Show text version of question

Question 6

Part (b)

Question 6

The energy efficiency of an electrical appliance is the percentage of useful energy out compared with

the total energy in.

An algorithm has been written in pseudocode to calculate the energy efficiency of an appliance. Values for total energy in and useful energy out are input. The efficiency is calculated and output as a percentage. The entry of the number –1 for either value stops the algorithm.

01 REPEAT 02 OUTPUT "Enter total energy in " 03 INPUT TotalEnergyIn 04 OUTPUT "Enter useful energy out " 05 OUTPUT UsefulEnergyOut 06 IF TotalEnergyIn <> -1 AND UsefulEnergy <> -1 07 THEN 08 Efficiency (UsefulEnergyOut / TotalEnergyIn) * 100 09 OUTPUT "Efficiency is ", Efficiency, "%" 10 ENDIF 11 UNTIL TotalEnergyIn <> -1 OR UsefulEnergyOut <> -1

Part (b)

Write pseudocode to check for an efficiency of 92% or over for this appliance and to output

“A-rated” if the efficiency is 92% or over.

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

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

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

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

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

[2]

Question 6

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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

Keep practising this topic