フリー問題

BSD Specialist のフリー問題 19 / 20 問目

問題文

A Bourne shell script on a NetBSD host must act on every name that was supplied on the command line, one at a time, and must also report how many names it received. Which pair of sources fits?

選択肢

  1. Acting on each given name one at a time is expressed as a loop over the surrounding environment and the count of how many were supplied is read from the previous status that the interpreter sets on entry.
  2. Acting on each given name one at a time is expressed as a loop over the surrounding environment and the count of how many were supplied is read from the argument count that the interpreter sets on entry.
  3. Acting on each given name one at a time is expressed as a loop over the positional parameters and the count of how many were supplied is read from the argument count that the interpreter sets on entry.
  4. Acting on each given name one at a time is expressed as a loop over the positional parameters and the count of how many were supplied is read from the previous status that the interpreter sets on entry.

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

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