Uipath Certified RPA Associate Uirpa · Free Practice Question Easy
Question 6
When this activity is utilized, the body of a given loop is executed at least once. Which item does this refer to?
-
A
Switch
-
B
While
-
C
Do While
-
D
If
-
E
For Each
Reveal correct answer
Correct answer: C
Explanation
What are Loops?
Loops are repetitions of a set of operations based on a given condition. In UiPath, the most important loops are:
Do While
It executes a specific sequence while a condition is met. The condition is evaluated after each execution of the statements.
For example, a robot could perform a refresh command over a website and then check if a relevant element was loaded. It will continue the refresh - check cycle until the element is loaded.
https://docs.uipath.com/activities/docs/do-while
While
It executes a specific sequence while a condition is met. The condition is evaluated before each execution of the statements.
In many cases, it is interchangeable with Do While, the only difference being when the condition verification is made. But in some cases, one is preferable over the other. For example, if a Robot would play Blackjack, it should calculate the hand before deciding whether to draw another card.
https://docs.uipath.com/studio/docs/the-while-activity
For Each
It performs an activity or a series of activities on each element of a collection.
This is very useful in data processing. Consider an Array of integers. For Each would enable the robot to check whether each numeric item fulfills a certain condition.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
