Courseiva
Control Flow →hardMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

A developer places a Break activity inside an If block that is nested within a For Each loop. The If block also contains a Log Message activity after the Break. What happens when the condition in the If block evaluates to True?

⚠ Common exam trap

The trap here is mixing up Break and Continue, or assuming that activities placed after Break in the same block still run before the loop exits.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The For Each loop exits immediately, and the Log Message activity is skipped.

Break transfers control out of the innermost loop immediately, so any activities after it in the same block, such as the Log Message, do not execute. The loop does not continue to the next item, and no exception is thrown because Break inside an If block within a loop is valid. The other options confuse Break with Continue or misstate its rules.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The Log Message activity executes, and the For Each loop continues with the next item.

    Why it's wrong here

    This describes the behavior of a Continue activity, not a Break. Continue skips the remaining activities in the current iteration and moves to the next item, whereas Break exits the loop entirely. Because the scenario uses Break, the loop does not continue, and the Log Message does not run.

  • ✓

    The For Each loop exits immediately, and the Log Message activity is skipped.

    Why this is correct

    Break immediately terminates the innermost loop that contains it. Any activities placed after Break within the same block, including the Log Message, are not executed because control jumps out of the loop right away. Execution resumes with the activity that follows the For Each loop, which matches this option exactly.

  • ✗

    The workflow throws an exception because Break is used inside an If block.

    Why it's wrong here

    Break is valid inside an If block as long as the If block is nested within a loop. UiPath does not raise an exception for this arrangement; it simply exits the innermost loop. This option misstates the rules for where Break can be used and would incorrectly suggest that the workflow faults.

  • ✗

    The Log Message activity executes, and then the For Each loop exits.

    Why it's wrong here

    The Break activity does not allow subsequent activities in the same block to run. Once Break executes, control immediately leaves the innermost loop, so the Log Message placed after it inside the If block is skipped. This option incorrectly assumes that activities after Break still execute before the loop terminates.

About these practice questions

One of 285 original UiPath-ADAv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.