Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

UiPath Exam UiPath-ARDv1 Topic 5 Question 80 Discussion

Actual exam question for UiPath's UiPath-ARDv1 exam
Question #: 80
Topic #: 5
[All UiPath-ARDv1 Questions]

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 Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Marshall
2 months ago
This question is making me thirsty. I could really go for a nice cold data table right about now.
upvoted 0 times
Precious
1 months ago
I prefer option A) DT.Rows(0).ID
upvoted 0 times
...
Tamar
2 months ago
C) DT.Rows(0).Item(\'ID\')
upvoted 0 times
...
Haley
2 months ago
A) DT.Rows(0).ID
upvoted 0 times
...
...
Annice
2 months ago
I'm pretty sure the answer is C) DT.Rows(0).Item(\'ID\'). It's always tricky to remember whether DataTable rows are zero-indexed or not.
upvoted 0 times
...
Lavonna
3 months ago
B) DT.Rows(1).ID looks like the right answer to me. Isn't the first row index 1, not 0?
upvoted 0 times
Stefania
1 months ago
B) DT.Rows(1).ID is incorrect, the first row index in a DataTable is actually 0, not 1.
upvoted 0 times
...
Christene
1 months ago
B) DT.Rows(1).ID is incorrect, the first row index in a DataTable is 0, not 1.
upvoted 0 times
...
Lyla
2 months ago
C) DT.Rows(0).Item('ID') is the correct expression to reference the element in the first row of the 'ID' column in the DataTable.
upvoted 0 times
...
Rosalyn
2 months ago
A) DT.Rows(0).ID is actually the correct expression to reference the element in the first row of the 'ID' column.
upvoted 0 times
...
Marla
2 months ago
C) DT.Rows(0).Item('ID') is the correct way to reference the element in the first row of the 'ID' column.
upvoted 0 times
...
Galen
2 months ago
A) DT.Rows(0).ID is the correct expression to reference the element in the first row of the 'ID' column.
upvoted 0 times
...
...
Dalene
3 months ago
Hmm, I'm not sure about this one. I'll have to double-check the documentation on accessing rows and columns in a DataTable.
upvoted 0 times
...
Tamesha
3 months ago
I'm not sure, but I think Anglea is right because we need to use the Item method to reference the element.
upvoted 0 times
...
Sherell
3 months ago
I think the correct answer is C) DT.Rows(0).Item(\'ID\'), since rows in a DataTable are zero-indexed.
upvoted 0 times
Luz
2 months ago
User2: Yes, you are correct. The expression DT.Rows(0).Item('ID') is used to reference the element in the first row of the 'ID' column in the DataTable.
upvoted 0 times
...
Felix
2 months ago
User1: I think the correct answer is C) DT.Rows(0).Item('ID'), since rows in a DataTable are zero-indexed.
upvoted 0 times
...
...
Anglea
3 months ago
I disagree, I believe the correct answer is C) DT.Rows(0).Item(\'ID\').
upvoted 0 times
...
Kattie
4 months ago
I think the answer is A) DT.Rows(0).ID.
upvoted 0 times
...

Save Cancel