Past-paper question · 2021 May-June · Paper 21 · Q1(d)

Question 1(d) 2021 · May-June · Paper 21 · 4 marks

Original past-paper question for 1(D)
Original past-paper question for 1(D)
Original past-paper question for 1(D)
Original past-paper question for 1(D)
Original past-paper question for 1(D)
Reveal official mark-scheme answer Official mark-scheme answer for 1(D)

Official answer for Question 1

Part (d)

✓
Explanation of how the program does the following:

Question 4

✓
Any four from:
✓
MP1
✓
Find out how many votes in total (for all candidates) were cast in the election.
✓
MP2
✓
For each candidate
✓
MP3
✓
… calculate the percentage of votes
✓
MP4
✓
… excluding abstentions.
✓
MP5
✓
Display the name of each candidate, the number of votes and the percentage of votes they received with
✓
appropriate messages.
✓
MP6
✓
Display the number of votes cast and the number of abstentions with appropriate message.
✓
2210/21
✓
Cambridge O Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks
✓
Section B

Mark scheme 2210_s21_ms_21.pdf →

Show text version of question

Question 1

Part (d)

Part (d)

Explain how your program completes these parts of Task 3:

  • Calculate the percentage of the votes that each candidate received from the number of
  • votes cast, excluding abstentions.

  • Display the name of each candidate, the number of votes and the percentage of votes
  • they received from the number of votes cast, excluding abstentions.

  • Display the total number of votes cast in the election and the number of abstentions.

Any programming statements used in your answer must be fully explained.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[4]

Question 7

Section B

Topic relevance

Why this question appears here

84% assigned-topic match · Programming

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 2210_s21_qp_21.pdf

Keep practising this topic