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-ADPv1 Topic 3 Question 27 Discussion

Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 27
Topic #: 3
[All UiPath-ADPv1 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?

Show Suggested Answer Hide Answer
Suggested Answer: A

In a Try Catch activity within UiPath, when an exception is thrown that does not match any of the exception types specified in the Catches section, the exception is unhandled by the Catches section. If the thrown exception is an ApplicationException and the Catches section is only configured to handle an InvalidOperationException, then the ApplicationException is not caught because it is a different type of exception.

However, regardless of whether the exception is caught, the Finally block always executes. The Finally block is designed to run after the Try block and after any Catch blocks are checked for matches (regardless of whether a match is found or not).

Therefore, the correct answer is:

A) The Finally block is executed and the Catches section catches the exception.

In this context, 'the Catches section catches the exception' means that the Catches section is evaluated for a match. Since ApplicationException is not handled by the InvalidOperationException catch block, the exception is not actually caught, but the Finally block will still execute.


Contribute your Thoughts:

Sharee
19 hours ago
I think the answer is 10. The Assign activity is using the second row of the table, which has a qty value of 10.
upvoted 0 times
...
Marta
2 days ago
The value of the qty variable will be 5 after executing the Assign activity. The table shows that the qty for the first row is 5, and the Assign activity is updating the qty variable with the value from the first row.
upvoted 0 times
...
Valda
4 days ago
I'm not sure, but I think the value of qty will be null because there is no matching condition in the table.
upvoted 0 times
...
Carin
6 days ago
I agree with Antione, the Assign activity will set qty to 10 based on the table values.
upvoted 0 times
...
Antione
10 days ago
I think the value of qty will be 10 after executing the Assign activity.
upvoted 0 times
...

Save Cancel