Courseiva
Control Flow →mediumMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

A developer has nested a 'For Each' loop (InnerLoop) inside another 'For Each' loop (OuterLoop). If a 'Break' activity is placed inside InnerLoop, what happens when it is executed?

⚠ Common exam trap

Candidates frequently assume that a 'Break' activity will exit the entire nested loop structure, failing to realize it only impacts the immediate container in which it is placed.

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

✓

Only InnerLoop is terminated, and OuterLoop continues to its next iteration.

The Break activity is designed to immediately terminate the execution of the innermost loop that contains it. In a nested scenario, it only exits the scope of the current loop level. The outer loop is unaffected and will proceed to its next iteration. This behavior allows developers to stop processing specific sub-items once a condition is met while still continuing the overall process for the remaining parent items.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Both InnerLoop and OuterLoop are immediately terminated.

    Why it's wrong here

    The Break activity only has scope over the immediate parent loop. To terminate multiple levels of nested loops, a developer would need to set a flag variable and use another Break activity in the outer loop or use a 'Throw' activity to jump to a Try Catch block. Break does not have a recursive effect on parent containers.

  • ✓

    Only InnerLoop is terminated, and OuterLoop continues to its next iteration.

    Why this is correct

    This is the standard behavior of the Break activity in UiPath. It exits the 'InnerLoop' and returns control to the 'OuterLoop' scope. The 'OuterLoop' then continues with the next element in its collection. This is useful for searching for a specific item within a subset and then moving on to the next major category in the data set.

  • ✗

    The current iteration of InnerLoop is skipped, but InnerLoop continues with the next item.

    Why it's wrong here

    The behavior described here—skipping the rest of the current iteration and moving to the next item in the same loop—is performed by the 'Continue' activity, not the 'Break' activity. Break stops the entire loop process for that specific scope, ensuring no further items in the collection are processed until the loop is re-entered from the outside.

  • ✗

    The workflow throws an exception because 'Break' is not supported in nested loops.

    Why it's wrong here

    Break is fully supported in nested loops and is a common design pattern in UiPath automation. There is no restriction on using Break within nested structures. It is a fundamental control flow activity intended to give developers precise control over loop execution and exit conditions, and it does not trigger exceptions when used correctly within a valid loop.

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.