Note AcademyNote Academy

Computer Science · May / June 2024 · Paper 2 SL · Question 7

Adapt for 2027Only the protocol, DNS server (A2.2.2) and lossy compression (A1.1.8) parts are on the syllabus; URLs, HTML output and client-side scripting are no longer taught. Includes Higher Level only content, which Standard Level students do not study.

IBCS

As printed in the paper

The question as text

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

  • 7(b)[3]

  • 7(c)[2]

  • 7(d)[3]

  • 7(e)[2]

  • 7(f)[4]

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