Programming for the web – A Level Information Technology (9626)

29 questions · page 1 of 2 · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
9626/31/M/J/26 · Question 7May/June 2026Paper 318 marks
Loading question…
Question text

7
Evaluate the incremental method of software development.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
© Cambridge University Press & Assessment 2026

2
9626/31/M/J/26 · Question 11May/June 2026Paper 316 marks
Loading question…
Question text

11
The code displays a person’s full name (given name and family name) when it is entered into a
web page. The line numbers are shown only for reference.
1
<html>
2
<body>
3
<h2>This code collects a person's name and displays it</h2>
4
<br>
5
<br>
6
<p id="id1"></p>
7
<script>
8
var a = "Your name is "
9
const GName = prompt("Your given name please...");
10
const FName = prompt("Your family name please...");
11
document.getElementById("id1").innerHTML = a + GName + " " + FName;
12
</script>
13
</body>
14
</html>
Describe how the code collects and processes the given and family names so that the full name
can be displayed on the web page.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
© Cambridge University Press & Assessment 2026

3
9626/32/M/J/26 · Question 1May/June 2026Paper 326 marks
Loading question…
Question text

1
Data that is output from JavaScript code is passed to HTML so that a web browser can display it.
A web page displays the name of a question paper in a web browser. The emboldened title of the
page is created by HTML code, but the name of the question paper is output by JavaScript code
and is displayed.
File
C:/9626.html
This code displays the question paper name in a web browser
Paper 3 Advanced Theory 9626/32
The web page code is shown. The line numbers are only for reference.
1
<html>
2
<body>
3
<h2>This code displays the question paper name in a web browser</h2>
4
<br>
5
<br>
6
<p id="QPname"></p>
7
8
<script>
9
var a = "9626/32";
10
var b = "Paper 3 Advanced Theory";
11
document.getElementById("QPname").innerHTML = b + " " + a;
12
</script>
13
14
</body>
15
</html>
© Cambridge University Press & Assessment 2026
,
,
Describe how the code processes and passes the name of the question paper to the web
browser for display.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
© Cambridge University Press & Assessment 2026

Advertisement
4
9626/33/M/J/26 · Question 9May/June 2026Paper 337 marks
Loading question…
Question text

9
HTML elements can be hidden from view by the display property.
(a) The display property of an element can be set using the JavaScript statement:
document.getElementById(id).style.display = "none"
Describe how this statement is used in JavaScript to hide HTML elements.
…
…
…
…
…
…
…
…
…
… [4]
(b) HTML elements can also be hidden using the visibility property in the JavaScript statement:
document.getElementById(id).style.visibility = "hidden"
Explain why JavaScript programmers prefer to use this statement instead of the statement
given in 9(a).
…
…
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026

5
9626/31/M/J/25 · Question 4May/June 2025Paper 317 marks
Loading question…
Question text

4
Arithmetic on numbers in JavaScript is carried out by using operators. Addition and subtraction
are carried out by the + and – operators.
(a) Describe the use of each of these arithmetic operators.
(i)
++
…
…
… [1]
(ii)
**
…
…
…
…
…
… [2]
(b) Describe the use of two other arithmetic operators in JavaScript.
…
…
…
…
…
…
…
…
…
… [4]
Ĭ×ú¾Ġ´íÈõÏĪÅĊÝú¸Ā×

6
9626/31/M/J/25 · Question 8May/June 2025Paper 316 marks
Loading question…
Question text

8
A shopper is using the internet to look at the website of an online store. A web browser is used to
fetch and display web pages from the store’s web servers.
Explain how the web server provides the web browser with the content of the store’s web pages.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
ĬÛú¾Ġ´íÈõÏĪÅĊÞüµĀ×

7
9626/32/M/J/25 · Question 9May/June 2025Paper 326 marks
Loading question…
Question text

9
JavaScript statements can contain comparison operators such as > and <.
(a) Describe the purpose of comparison operators.
…
…
…
…
…
… [2]
(b) Explain the differences in function between the === and !== comparison operators.
…
…
…
…
…
…
…
…
…
… [4]
ĬÙú¾Ġ´íÈõÏĪÅĊÝû·þ×

8
9626/31/M/J/24 · Question 1May/June 2024Paper 315 marks
Loading question…
Question text

1
JavaScript uses loops to execute a block of code using Iterative methods.
(a) Describe what is meant by an Iterative method.
…
…
…
…
…
… [2]
(b) Explain how a do/while loop differs from a while loop.
…
…
…
…
…
… [2]
(c) Explain why a while loop might be used instead of a for loop in JavaScript code.
…
…
… [1]

Advertisement
9
9626/32/M/J/24 · Question 2May/June 2024Paper 326 marks
Loading question…
Question text

2
Web pages can be made more attractive and easier to read by using colours. All major web
browsers support the use of HSL to specify the colours used in web pages.
Explain how HSL is used to specify colours.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]

10
9626/32/M/J/24 · Question 4May/June 2024Paper 3212 marks
Loading question…
Question text

4
JavaScript code has been developed for an interactive website. White box testing is carried out by
the developers.
(a) Describe how white box testing is used to test the code.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
(b) Describe one way that JavaScript code can add interactivity to a web page.
…
…
…
… [1]
(c) HTML events occur when users interact with a web page.
Describe how JavaScript code can be made to react to an HTML event.
…
…
…
…
…
…
…

11
9626/32/M/J/23 · Question 1May/June 2023Paper 327 marks
Loading question…
Question text

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.
(a) Explain how if...else statements are used to do this.
…
…
…
…
…
…
…
…
…
… [4]
(b) The ternary operator could be used instead of if...else.
Explain why the ternary operator could be used to do this.
…
…
…
…
…
…
…
… [3]

12
9626/31/M/J/22 · Question 1May/June 2022Paper 318 marks
Loading question…
Question text

1
Data can be at risk of being lost from computer systems.
(a) Describe the ways that data can be lost from computer systems.
…
…
…
…
…
…
…
…
…
…
… [5]
(b) Backups are used to minimise the risk of data loss. Backup strategies are created for
technicians to ensure that data can be recovered in the event of a disaster occurring.
Describe three instructions to the technicians that should be included in a backup strategy.
1 …
…
…
2 …
…
…
3 …
…
…
[3]

13
9626/31/M/J/22 · Question 8May/June 2022Paper 314 marks
Loading question…
Question text

8
JavaScript code can use comparison operators.
Explain how each of the following comparison operators works in JavaScript when comparing the
number 1 with the text “1”.
(a) the == operator
…
…
…
…
… [2]
(b) the !== operator
…
…
…
…
… [2]

Advertisement
14
9626/32/M/J/22 · Question 4May/June 2022Paper 328 marks
Loading question…
Question text

4
The confirm() method is used in JavaScript to create and provide dialog boxes for users to
interact with web pages.
(a) Describe the purpose of two elements of the dialog box that appears when confirm() is
used.
…
…
…
…
… [2]
(b) Explain why the use of confirm() may cause problems on web pages.
…
…
…
…
…
…
…
… [3]
(c) Explain how the result of the user interaction from confirm() is reported back to the
JavaScript code for use in the remaining code.
…
…
…
…
… [3]

15
9626/31/M/J/21 · Question 10May/June 2021Paper 316 marks
Loading question…
Question text

10 Jasmine is using JavaScript on her web pages to provide interactivity. She has encountered some
runtime errors during the testing of her JavaScript code.
She has written some code including window.onerror = function (msg, url, line)
The onerror() event handler will trap errors.
Describe how this can help Jasmine locate the mistakes in the rest of her code.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]

Advertisement