Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 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
13 days ago
I prefer option A) DT.Rows(0).ID
upvoted 0 times
...
Tamar
18 days ago
C) DT.Rows(0).Item(\'ID\')
upvoted 0 times
...
Haley
19 days ago
A) DT.Rows(0).ID
upvoted 0 times
...
...
Annice
1 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
2 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
11 days ago
B) DT.Rows(1).ID is incorrect, the first row index in a DataTable is actually 0, not 1.
upvoted 0 times
...
Christene
13 days ago
B) DT.Rows(1).ID is incorrect, the first row index in a DataTable is 0, not 1.
upvoted 0 times
...
Lyla
15 days 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
18 days 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
25 days 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
26 days 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
2 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
2 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
2 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
1 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
1 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
2 months ago
I disagree, I believe the correct answer is C) DT.Rows(0).Item(\'ID\').
upvoted 0 times
...
Kattie
3 months ago
I think the answer is A) DT.Rows(0).ID.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77