Computer Science · Oct / Nov 2020 · Paper 2 HL · Question 9
Adapt for 2027Digital certificates and cloud vs client-server are on the course, but HTML, JavaScript and CGI are not.
IBCS
As printed in the paper
The question as text
9. Pugh University has a website that allows computer science students to enter their name and customize the web pages. Consider the section of HTML and CSS code shown below. File name: index.html <!DOCTYPE html> <html> <body> <script> function setVar(){ var subject=document.getElementById("kippers").value; document.getElementById("subj").innerHTML = subject; } </script> <h2>My First Page</h2> <p>Welcome to the <span id="subj"></span> Faculty</p> <input type="text" id="kippers"/> <button onclick="setVar();"/>clickme</button> </body> </html>
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
9(a)(i)[2]
9(a)(ii)[3]
9(b)[4]
9(c)[3]
9(d)[4]
9(e)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

