IPA IP 2024 Question 88

A question IPA Japan published in 令和6年度 ITパスポート試験 公開問題 問88, translated into English. ITPEC is based on the same exams.

Which of the following is an appropriate description concerning JavaScript?

Explanation

It adds dynamic behaviour to web pages in the browser — JavaScript is the scripting language that Web browsers run.

A script written in JavaScript is embedded in or linked from an HTML page and is executed by the browser. It can respond to clicks and input, change the page's content and style without reloading it, and exchange data with the server in the background.

Answer (a)

Why not others:

  • •(b) — JavaScript runs mainly in the browser; it can also run on a server (Node.js, for example), but it is not limited to the server
  • •(c) — JavaScript is an interpreted scripting language: the browser runs the source as it is, with no compile step by the developer beforehand
  • •(d) — despite the name, JavaScript is a separate language from Java, with a different design and a different runtime

Key rule: JavaScript is a scripting language run by the Web browser to make pages dynamic; Java is an unrelated compiled language.

Algorithm and Programming · AI-written, may contain errors

This question comes from the past questions IPA Japan publishes, translated into English by ITPEC Practice. ITPEC Practice is an independent study tool and is not affiliated with IPA or ITPEC. See the original paper (PDF) or Report an issue.