開発者は、図に示すように、データ テーブルの作成アクティビティを使用して、「DT」というデータ テーブルを作成しました。

式「DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString」の結果は何ですか?
正解:D
To analyze the result of the expression "DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString", let's break it down step by step:
* Understanding Data Table Structure:The data table DT is built with two columns:
* "Name" (String)
* "Age" (Int32)
The data table contains the following values:
Index
Name
Age
0
Michael
42
1
Clara
25
2
Dianne
33
* Breaking Down the Expression:
* DT.Rows(0)(1).ToString #
* DT.Rows(0) refers to the first row (Michael, 42).
* DT.Rows(0)(1) accesses the second column (Age), which is 42.
* .ToString converts 42 (Integer) into "42" (String).
* DT.Rows(1)(0).ToString #
* DT.Rows(1) refers to the second row (Clara, 25).
* DT.Rows(1)(0) accesses the first column (Name), which is "Clara".
* .ToString keeps "Clara" as a string.
* Concatenation of Strings:
* "42" (String) + "Clara" (String)
* The result is "42Clara".
D: 42Clara
Reference from UiPath Official Documentation:
* DataTable.Rows Property: UiPath Docs - DataTable.Rows
* Accessing DataTable Values: UiPath Forums - DataTable Manipulation
* String Conversion & Concatenation in UiPath: UiPath String Operations