Past-paper question · 2022 February-March · Paper 32 · Q7(a)

Question 7(a) 2022 · February-March · Paper 32 · 4 marks

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

Official answer for Question 7

Part (a)

✓
Four from:

Question 4

✓
(Appropriate) variables are declared/used to store values
✓
Prompt() box pops up on screen
✓
Can display default entry/sample data entry required in the input box
✓
The user is required to input a value/text/string before being allowed to move
✓
on/creates a modal window
✓
The user is required to click/press/choose (either) OK or CANCEL/Escape
✓
key/close button
✓
If the user chooses OK then user input/value/string is returned to variable(s)
✓
If the user does not enter a value/string/text/input and then chooses OK, then
✓
NULL is returned to variable(s)
✓
If the user chooses CANCEL/close button/Escape then NULL value is
✓
returned to variable(s)

Mark scheme 9626_m22_ms_32.pdf →

Show text version of question

Question 7

Part (a)

Question 7

The prompt() method is used in JavaScript to provide a popup dialog box for users to interact

with web pages.

Part (a)

Explain how the result of the user interaction from prompt() is used by a programmer to

collect the input from a user.

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

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

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

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

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

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

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

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

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

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

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

[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_m22_qp_32.pdf

Keep practising this topic