フリー問題

CompTIA AutoOps+ のフリー問題 4 / 20 問目

問題文

A script builds a file path from a variable that sometimes contains a space, and the command fails only for those values. What is the correct fix?

選択肢

  1. Quote the literal path at the point of expansion and check the value against the returned status code before use.
  2. Quote the literal path at the point of expansion and check the value against the allowed value list before use.
  3. Quote the variable reference at the point of expansion and check the value against the returned status code before use.
  4. Quote the variable reference at the point of expansion and check the value against the allowed value list before use.

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

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