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-ADPv1 Exam - Topic 4 Question 54 Discussion

Posted by Wenona on May 08, 2026 at 05:20 AM

The following table is stored in a variable called "dt".

What will the value of the qty variable be after executing the Assign activity?

Suggested Answer: C

The value of the qty variable will be 80 after executing the Assign activity. This is because the expression in the Assign activity is using the LINQ methods AsEnumerable, SkipWhile, and Item to access the data in the dt variable. The dt variable is a DataTable that contains the following data:

Item

Quantity

apple

5

banana

10

mango

20

orange

80

grape

40

The AsEnumerable method converts the DataTable into an Enumerable collection of DataRow objects. The SkipWhile method skips the elements of the collection until the condition is false. The condition is a lambda expression that checks if the value of the Item column is equal to ''mango''. The (0) indexer returns the first element of the collection after skipping. The Item method accesses the value of the Quantity column of the DataRow. The ToString method converts the value into a string. Therefore, the expression will skip the first three rows of the DataTable and return the value of the Quantity column of the fourth row, which is 80.Reference: [DataTable.AsEnumerable Method], [Enumerable.SkipWhile Method], [DataRow.Item Property]


Get Premium UiPath-ADPv1 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
24 comments · newest first
EV
Evangelina 2 days ago
I’m leaning towards C) 80.
DA
Dahlia 7 days ago
Really? I feel like it's B) 10.
DW
Dwight 12 days ago
I think it's A) 5.
WA
Walker 17 days ago
I’m confused by the table.
LI
Ligia 22 days ago
I feel confident about B) 10.
SA
Sang 28 days ago
I’m leaning towards C) 80.
AV
Avery 1 month ago
D) null could be a trick option.
LI
Lizbeth 1 month ago
I agree with Desmond. The logic points to 10.
AL
Aleta 1 month ago
A) 5 seems too low.
SK
Skye 2 months ago
I feel unsure about this one.
DE
Desmond 2 months ago
I think the answer is B) 10.
LE
Leota 2 months ago
Yeah, I’m with Detra on this one.
JE
Jeanice 2 months ago
Wait, is it really null? That seems odd.
AL
Aleisha 2 months ago
Definitely 80, that's what the table shows!
KA
Katie 2 months ago
I disagree, I think it should be 5.
DE
Detra 3 months ago
The qty variable will be 10 after the Assign activity.
JO
Josephine 3 months ago
I feel like the answer could be null if the table doesn't have any matching rows, but I need to double-check the conditions.
CH
Cherelle 3 months ago
I’m a bit confused about how the indexing works in this case. Is it zero-based or one-based?
JA
Jacquline 3 months ago
I remember a similar question where we had to extract values from a data table. I think it was about summing up quantities.
MI
Mi 3 months ago
I think the qty variable should be 10, but I'm not entirely sure how the Assign activity works with the table.
GE
Gerald 4 months ago
I’m leaning towards null as the answer, but I need to double-check how the Assign activity works with the data table.
SE
Sena 5 months ago
I feel like the answer could be 5, but I might be mixing it up with another example we practiced.
TE
Teresita 5 months ago
I remember a similar question where we had to extract values from a table, but I can't recall if it was based on a specific row or column.
MA
Maybelle 5 months ago
I think the qty variable will be 10, but I'm not completely sure if I remember the correct logic for the Assign activity.
0/2000 characters

Save Cancel