Past-paper question · 2023 May-June · Paper 22 · Q4(a)

Question 4(a) 2023 · May-June · Paper 22 · 3 marks

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

Official answer for Question 4

Part (a)

✓
One mark for each point (max three).

Question 3

✓
range check with acceptable values is (greater than) zero and less than 1000
✓
presence check to ensure the program will not continue until a value has been entered
✓
type/character check to ensure that a number is entered
✓
length check to ensure there are no more than 3 digits entered

Mark scheme 0478_s23_ms_22.pdf →

Show text version of question

Question 4

Part (a)

Question 4

A program needs to make sure the value input for a measurement meets the following rules:

  • the value is a positive number
  • a value is always input
  • the value is less than 1000.

Part (a)

Describe the validation checks that the programmer would need to use.

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

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

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

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

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

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

[3]
Topic relevance

Why this question appears here

60% assigned-topic match · Programming › Programming concepts

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

Keep practising this topic