Exam UiPath-ADAv1 Topic 2 Question 241 Discussion
Actual exam question for UiPath's UiPath-ADAv1 exam
Question #: 241
Topic #: 2
Question #: 241
Topic #: 2
A developer created a data table called "DT" using the Build Data Table activity as shown in the exhibit.
What is the result of the expression, "DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString"?
What is the result of the expression, "DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString"?
Suggested Answer: C Vote an answer
Comprehensive and Detailed In-Depth Explanation:
When working with DataTables in UiPath, each row (index-based) and column (index-based) can be accessed using:
vb
CopyEdit
DT.Rows(RowIndex)(ColumnIndex)
where:
* RowIndex = Position of the row (starting from 0).
* ColumnIndex = Position of the column (starting from 0).
Step-by-Step Breakdown of the Expression:
vb
CopyEdit
DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString
* DT.Rows(0)(1) # This means:
* First row (index 0)
* Second column (index 1)
* The value here is "Michael"
* DT.Rows(1)(0) # This means:
* Second row (index 1)
* First column (index 0)
* The value here is "42"
* Concatenation (+ operator) # Combining "Michael" + "42" results in "Michael42".
Why the other options are incorrect?
# A. MichaelClara
* There is no reference to "Clara" in the given expression.
# B. 2542
* The expression does not involve numerical operations.
# D. 42Clara
* The values were selected from the wrong row/column indexes.
# Reference:
* UiPath Documentation: DataTable Operations
* UiPath Academy: Data Manipulation in UiPath
When working with DataTables in UiPath, each row (index-based) and column (index-based) can be accessed using:
vb
CopyEdit
DT.Rows(RowIndex)(ColumnIndex)
where:
* RowIndex = Position of the row (starting from 0).
* ColumnIndex = Position of the column (starting from 0).
Step-by-Step Breakdown of the Expression:
vb
CopyEdit
DT.Rows(0)(1).ToString + DT.Rows(1)(0).ToString
* DT.Rows(0)(1) # This means:
* First row (index 0)
* Second column (index 1)
* The value here is "Michael"
* DT.Rows(1)(0) # This means:
* Second row (index 1)
* First column (index 0)
* The value here is "42"
* Concatenation (+ operator) # Combining "Michael" + "42" results in "Michael42".
Why the other options are incorrect?
# A. MichaelClara
* There is no reference to "Clara" in the given expression.
# B. 2542
* The expression does not involve numerical operations.
# D. 42Clara
* The values were selected from the wrong row/column indexes.
# Reference:
* UiPath Documentation: DataTable Operations
* UiPath Academy: Data Manipulation in UiPath
by Kay at Jun 07, 2025, 07:46 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).