Courseiva
Control Flow →mediumMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

A developer builds a Sequence that reads a queue item's transaction data, then must decide whether the invoice total exceeds 10,000. If it does, the workflow should assign the item to a senior approver; otherwise it should post it to the standard approval queue. The developer wants the fewest activities and a clear two-way decision at this point in the Sequence. Which control flow activity should be used?

⚠ Common exam trap

The trap here is assuming that any activity capable of two-way branching, such as Flow Decision, can be substituted freely for If regardless of whether the surrounding container is a Sequence or a Flowchart.

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

✓

If

A single Boolean comparison with two mutually exclusive outcomes is the canonical use of the If activity. It evaluates the Condition once and executes only the matching branch, so the senior-approver and standard-approval paths stay separate and readable. Switch and Flow Decision add unnecessary routing structure, and While is a looping construct rather than a branch, so it cannot satisfy a one-time decision inside a Sequence.

Answer analysis

Option-by-option breakdown

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

  • ✗

    While

    Why it's wrong here

    While is a loop that repeats a body as long as its Condition remains true. It is not a branching construct, so it cannot choose between a senior-approver path and a standard-approval path once. Wrapping the decision in a While would risk repeated execution and would still require an inner conditional, so it does not meet the requirement for the fewest activities.

  • ✗

    Flow Decision

    Why it's wrong here

    Flow Decision performs a two-way branch, but it is a Flowchart node and must live inside a Flowchart container. The scenario explicitly places the decision inside a Sequence, where Flow Decision cannot be dropped. Even though its true/false semantics resemble If, the container mismatch makes it inapplicable to this design without restructuring the workflow.

  • ✗

    Switch

    Why it's wrong here

    Switch is designed for multi-way routing based on discrete case values, not a single true/false comparison. Using it here would require a Boolean TypeArgument with True and False cases plus a Default case, which adds configuration and a third fallback path that the scenario does not need. It works technically but is heavier than the two-branch decision the developer asked for.

  • ✓

    If

    Why this is correct

    The If activity evaluates a Boolean Condition and routes execution into exactly one of two branches, Then or Else. A single comparison such as invoiceTotal > 10000 fits this two-outcome decision perfectly, and the two branches map directly onto the senior-approver versus standard-approval paths. It also keeps the Sequence readable, since no extra container or default-case handling is required for a simple true/false split.

About these practice questions

This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.