Exam UiPath-ADAv1 Topic 2 Question 241 Discussion

Actual exam question for UiPath's UiPath-ADAv1 exam
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"?

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

by Kay at Jun 07, 2025, 07:46 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

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.

0
0
0
10