フリー問題

Oracle Database Program with PL/SQL のフリー問題 12 / 20 問目

問題文

A block declares a variable of a nested table type and immediately assigns a value to the first element, and the assignment fails at run time. Which description of what initialization means for collections is correct?

選択肢

  1. A nested table variable is initialized by the method that adds elements to it, so calling that method before the assignment is the way to bring the variable into existence.
  2. A nested table variable is initialized by the first assignment to any of its elements, so the index of the assignment has to be one that the collection already holds.
  3. A nested table variable does not exist until it is made empty by a constructor or given a value, and the method that adds elements cannot be used to bring such a variable into existence.
  4. A nested table variable exists as an empty collection from the moment it is declared, so the data type of the value has to be changed before the assignment will be accepted.

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

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