Past-paper question · 2024 May-June · Paper 22 · Q2(a)

Question 2(a) 2024 · May-June · Paper 22 · 5 marks

Original past-paper question for 2(A)
Original past-paper question for 2(A)
Reveal official mark-scheme answer Official mark-scheme answer for 2(A)

Official answer for Question 2

Part (a)

Question 5

✓
Mark points
✓
1 Condition for selecting one of the input numbers as largest value
✓
2 … and assign to Ans
✓
3 Condition for selecting largest number for all three number input and
✓
assigning to Ans
✓
4 Average calculated using Num1, Num2 and Num3 and stored in a variable.
✓
5 Output of Ans and average in output symbol / parallelogram
✓
9618/22
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_22.pdf →

Show text version of question

Question 2

Part (a)

Question 2

A program is being developed.

Part (a)

An algorithm for part of the program will:

  • input three numeric values and assign them to identifiers Num1, Num2 and Num3
  • assign the largest value to variable Ans
  • output a message giving the largest value and the average of the three numeric values.

Assume the values are all different and are input in no particular order.

Complete the program flowchart on page 5 to represent the algorithm.

Question 5

START

INPUT Numl, Num2, Num3

No

Yes

END

[5]

Question 6

Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Programming basics

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 9618_s24_qp_22.pdf

Keep practising this topic