UiARD Exam QuestionsBrowse all questions from this exam

UiARD 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?

Show Answer
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

10 comments
Sign in to comment
OnlineOption: C
Apr 3, 2023

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

MirjalolOption: C
Jul 17, 2023

first row = index 0

PunitBOption: C
Apr 5, 2023

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

IngvarnOption: C
Nov 6, 2023

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

LarcAi_TrainingOption: C
May 23, 2023

Correct Answer is C

robert_lovaszOption: C
Jul 26, 2023

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

phileraeneOption: C
Aug 8, 2023

another 'correct answer' wrong

bhaskar5a5Option: C
Sep 6, 2023

Ans -C

TidusWangOption: C
Nov 20, 2023

the first index is zero please...

ykwOption: C
Jul 5, 2024

Correct answer should be C