Exam UiARD All QuestionsBrowse all questions from this exam
Question 21

A developer needs to reference the element in the first row of the "ID" column in the System.Data.DataTable, "DT".

Which expression is used to reference this element?

    Correct Answer: C

    In System.Data.DataTable, rows are zero-indexed, meaning the first row is accessed using index 0. To reference a specific column by name in a particular row, the 'Item' property is used. Therefore, the expression DT.Rows(0).Item("ID") correctly references the element in the first row of the 'ID' column.

Discussion
OnlineOption: C

https://forum.uipath.com/t/excel-data-table/93618

MirjalolOption: C

first row = index 0

IngvarnOption: C

First row (index 0), Item("ID"), No question. It's C

PunitBOption: C

the correct answer is C. 1st row will be at 0th position.

ykwOption: C

Correct answer should be C

TidusWangOption: C

the first index is zero please...

bhaskar5a5Option: C

Ans -C

phileraeneOption: C

another 'correct answer' wrong

robert_lovaszOption: C

First row (index 0), Item("ID"), No question. It's C

LarcAi_TrainingOption: C

Correct Answer is C