Note AcademyNote Academy

Computer Science · May / June 2024 · Paper 2 HL · Question 9

Adapt for 2027Most of this web science question is no longer taught; only DNS (A2.2.2, HL only), protocols (A2.1.4) and lossy compression (A1.1.8) can still be practised.

IBCS

As printed in the paper

The question as text

9. The web browser shown in Figure 6 includes a feature that enables the user to inspect the source code. Figure 6: The source code for the web page <doctype html> <html> <head></head> <body> <h1>Mother tongue Languages</h1> <table width="500" border=1> <tr> <td>Mother Tongue</td> </tr> <tr> <td> <p id="languages"></p></td> </tr> </table> <script> var subjects = ["English","Spanish","French","Hindi","Mandarin","Japan ese","Korean"]: var text = " " ; for (var i=0; subjects[i];i++) { text += subjects[i] + "<br>" ; } document.getElementById("languages").InnerHTML = text; // document.getElementById(ID).InnerHTML can be used to set the HTML for the content of a webpage element with id = ID // </script> </body> </html> https://www.educationalsite.org/assets/home.html Educational Resources

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 9(a)[2]

  • 9(b)[3]

  • 9(c)[2]

  • 9(d)[3]

  • 9(e)[2]

  • 9(f)[4]

  • 9(g)[4]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.