exam questions

Exam UiADPv1 All Questions

View all questions & answers for the UiADPv1 exam

Exam UiADPv1 topic 1 question 33 discussion

Actual exam question from UiPath 's UiADPv1
Question #: 33
Topic #: 1
[All UiADPv1 Questions]

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

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

  • A. 5
  • B. 10
  • C. 80
  • D. null
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
e92a31f
2 days, 10 hours ago
Selected Answer: B
Did some testing in Studio. Skip While Function will skip the first result that satisfies the condition. This filters the results to 4 items leaving out the Mango row. Then we call the item from the results with the index 0 which is apple for the quantity value which is 10. Changing the index would call the other items in the filtered results
upvoted 1 times
e92a31f
2 days, 10 hours ago
Note: Only skips first occurrence so if you were to add another Mango row to the end of the input file, the second occurrence would not be skipped and would still show in the results if you call that index
upvoted 1 times
...
...
Aplin
4 months, 2 weeks ago
Selected Answer: B
It gets all the rows that aren't mango -> We only get the first result: 10
upvoted 1 times
...
Ui_Bot001
7 months ago
Selected Answer: B
Answer is B, tested it in studio. dt.AsEnumerable. SkipWhile(Function(x) x("Item").ToString.Equals("mango"))(0)("Quantity").ToString
upvoted 2 times
...
milindkumar
11 months, 1 week ago
Selected Answer: B
correct answer is 10 tested on studio
upvoted 1 times
...
ASMA__
1 year, 1 month ago
Selected Answer: B
correct answer is 10 tested on studio
upvoted 2 times
...
ASMA__
1 year, 1 month ago
Selected Answer: A
correct answer is 10 tested on studio
upvoted 2 times
...
[Removed]
1 year, 1 month ago
Selected Answer: B
Answer is B, tested in Studio
upvoted 4 times
...
EricHsu
1 year, 1 month ago
Selected Answer: A
The answer should be A. because the skipwhile function will keep all the rest value "if not" equal the sentence.
upvoted 2 times
tenso
8 months, 3 weeks ago
skipwhile will only skip Items all the way to mango, but quantity index is still at 0 thus answer is 10. even if item = pear, the answer will still be 10
upvoted 1 times
...
EricHsu
1 year, 1 month ago
The answer should be 10, it's B
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago