フリー問題

Cisco AI Technical Practitioner のフリー問題 16 / 20 問目

問題文

Generated code that reads an uploaded file assumes the file always has the expected columns. Which request would have produced more robust code from the start?

選択肢

  1. Request the code and then add error handling in review, and a reviewer sees the failure cases more clearly than the person who wrote the request.
  2. Ask for defensive code that handles all possible errors, so the generated implementation covers every failure mode that could occur once the file arrives from a customer.
  3. Generate the code in a language with stricter typing, and a compiler that rejects mismatched types catches the missing columns at the same time.
  4. State the invalid inputs the code must handle and what it must do for each, so validation and error paths are part of the requirement.

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

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