Past-paper question · 2023 May-June · Paper 32 · Q1(a)

Question 1(a) 2023 · May-June · Paper 32 · 4 marks

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

Official answer for Question 1

Part (a)

✓
Four from:

Question 4

✓
If … else allows different actions to occur as a condition/number is
✓
examined/evaluated
✓
If the condition is TRUE an action is taken but/and/else
✓
If the condition is FALSE another (different) action is taken
✓
produce a Boolean result/
✓
Number is stored in variable/declared variable
✓
Comparison operators/equal/not equal/greater than/less than to test value
✓
of variable/number with pre-set/16 condition
✓
(Statement used to provide) message if condition is TRUE
✓
(ELSE statement used to provide) message if condition is FALSE.

Mark scheme 9626_s23_ms_32.pdf →

Show text version of question

Question 1

Part (a)

Question 1

JavaScript can be used in a web-based form to test whether a number entered by a user matches

a certain condition and to select and output an appropriate message.

Part (a)

Explain how if...else statements are used to do this.

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

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

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

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

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

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

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

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

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

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

[4]
Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

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 9626_s23_qp_32.pdf

Keep practising this topic