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

Question 1(b) 2023 · May-June · Paper 32 · 3 marks

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

Official answer for Question 1

Part (b)

✓
Three from:

Question 3

✓
Reduces code to a single statement to make code/more efficient/execute
✓
faster/load quicker/take up less storage space
✓
Code is less complex/easier to follow/understand (by
✓
programmers)/easier to wite/faster to write/simpler/less repetitive coding
✓
Code is easier to debug/error check/less chance of error
✓
Can run multiple operations with code that is easier to follow/understand.
✓
9626/32
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2023
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s23_ms_32.pdf →

Show text version of question

Question 1

Part (b)

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 (b)

The ternary operator could be used instead of if...else.

Explain why the ternary operator could be used to do this.

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

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

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

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

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

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

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

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

[3]

Question 3

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