UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 Exam - Question 104


Given the following conditional breakpoint with count = 0:

Conditional breakpoint settings:

How many times will UiPath be displayed in the Output panel before the process goes into a Paused state in Debug mode?

Show Answer
Correct Answer: A

The While loop will execute as long as the condition 'count < 12' is true. The initial value of 'count' is 0. The breakpoint is set with a condition 'count Mod 2 = 0' and hit count 3. This means the breakpoint will be triggered when the count is an even number and it has hit the condition 3 times. Initially, 'count' is 0 which satisfies the condition and constitutes the 1st hit. The loop will then increment 'count' by 1 on every iteration and display 'UiPath'. When 'count' becomes 2, it satisfies the condition again, constituting the 2nd hit. Finally, when 'count' becomes 4, it satisfies the condition and constitutes the 3rd hit and the process will pause. Therefore, the output 'UiPath' will be displayed 4 times before the process pauses.

Discussion

4 comments
Sign in to comment
Birk54Option: A
Feb 20, 2024

The answer is A, tested in studio.

kingkayyOption: A
Apr 17, 2024

At count = 0, count mod 2 = 0, UiPath will be displayed ---> First Hit At count = 1, count mod 2 = 1, UiPath will be displayed ----> No hit At count = 2, count mod 2 = 0, UiPath will be displayed -----> Second Hit At count = 3, count mode 2 = 0, UiPath will be displayed ----> No hit At count = 4, count mode 2 = 0, process halts at breakpoint ----> 3rd hit.

kingkayy
Apr 16, 2024

At count = 3, count mode 2 = 1 not 0

AndresPCOption: D
Feb 16, 2024

D is the correct one

milindkumarOption: D
Feb 29, 2024

D is the correct one