開発者は String 配列 listOfMonthsByQuarter = {"1", "2", "3"} を初期化しました。実行時に listOfMonthsByQuarter(2) が使用されると、どのデータ型と値が取得されますか?
正解:D
The listOfMonthsByQuarter variable is a String array, which means it can store multiple values of type String.
Each value in the array has an index, which is a number that indicates its position in the array. The index starts from 0, so the first value has index 0, the second value has index 1, and so on. To access a specific value in the array, we can use the syntax arrayName(index). For example, listOfMonthsByQuarter(0) will return the first value in the array, which is "1". Similarly, listOfMonthsByQuarter(2) will return the third value in the array, which is "3". Therefore, the data type of listOfMonthsByQuarter(2) is String, and the value is
"3". References: Arrays and Variables from UiPath documentation.