フリー問題

Salesforce Certified JavaScript Developer のフリー問題 19 / 20 問目

問題文

A server side script must build a file location from a directory name and a file name so that the separator is correct on every operating system. Which core module provides that?

選択肢

  1. The os module, which exposes the separator and is therefore the intended place for joining segments.
  2. The fs module, whose purpose is reading and writing files, so it also owns the helpers that assemble the location strings.
  3. The url module, whose resolve function joins address segments and applies the separator of the host platform.
  4. The path module, whose join function inserts the platform specific separator between the segments.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。