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?
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?
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.
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.
At count = 3, count mode 2 = 1 not 0
The answer is A, tested in studio.
D is the correct one
D is the correct one