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:

Jacob
1 months ago
Wait, what? The answer is null, right? The Assign activity is not actually assigning a value to the qty variable, so it should be null.
upvoted 0 times
I think it's null too. The Assign activity doesn't change the value of qty.
upvoted 0 times
...
Trinidad
16 days ago
Yes, you're correct. The Assign activity is not assigning a value to the qty variable, so it will be null.
upvoted 0 times
...
...
Hui
2 months ago
Haha, the answer is obviously 80. The table has a total qty of 80, and the Assign activity is just grabbing the whole table, so the qty variable will be set to 80.
upvoted 0 times
Brendan
13 days ago
Yeah, it makes sense that the qty variable would be 80 after grabbing the whole table.
upvoted 0 times
...
Dyan
20 days ago
I think you're right, the answer is definitely 80.
upvoted 0 times
...
...
Sharee
2 months 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 months 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
Mitsue
18 days ago
So, the correct answer is definitely A) 5
upvoted 0 times
...
Shelton
25 days ago
That makes sense, the table clearly shows the qty for the first row is 5
upvoted 0 times
...
Suzi
1 months ago
I agree, the qty variable will be 5 after the Assign activity
upvoted 0 times
...
Kanisha
1 months ago
I think the answer is A) 5
upvoted 0 times
...
...
Valda
2 months 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
2 months ago
I agree with Antione, the Assign activity will set qty to 10 based on the table values.
upvoted 0 times
...
Antione
2 months ago
I think the value of qty will be 10 after executing the Assign activity.
upvoted 0 times
...

Save Cancel