フリー問題

Certified Python Network Administrator and Engineer のフリー問題 6 / 20 問目

問題文

The same script is asked to answer a different question: given one name, return the address that was collected for it. The names are unique and the addresses are not needed in any particular order. Which pair states which built-in container fits that job and what the script depends on to reach one address?

選択肢

  1. The script must return the address for each name it was given, so it stores those pairs in set entries and relies on keyed retrieval in that documentation.
  2. The script must return the address for each name it was given, so it stores those pairs in set entries and relies on keyed indexes in that documentation.
  3. The script must return the address for each name it was given, so it stores those pairs in dictionary entries and relies on keyed indexes in that documentation.
  4. The script must return the address for each name it was given, so it stores those pairs in dictionary entries and relies on keyed retrieval in that documentation.

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

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