Note AcademyNote Academy

Computer Science · Oct / Nov 2020 · Paper 2 SL · Question 7

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

7. 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
  • 7(a)(i)[2]

  • 7(a)(ii)[3]

  • 7(b)[4]

  • 7(c)[3]

  • 7(d)[4]

  • 7(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.