Courseiva

UiPath-ADAv1 Studio Interface and Variables Practice Question

You are working on a UiPath automation project where you have a variable named 'TransactionAmount' of type Double defined in the Main workflow. You need to pass this value to an invoked workflow called 'ProcessTransaction.xaml' which expects a Double argument named 'Amount'. How should you configure the Invoke Workflow activity?

⚠ Common exam trap

The trap here is thinking you need to convert the Double to a String or perform an explicit cast, but UiPath handles type matching automatically when the types are compatible.

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

✓

In the Invoke Workflow activity, set the 'Amount' argument to the value of 'TransactionAmount' by using the expression 'TransactionAmount'.

To pass a variable's value to an invoked workflow's argument, you map the argument to the variable in the Invoke Workflow activity. The data types must match. Using 'TransactionAmount' directly is correct because it is already a Double. Converting to String or using redundant conversion is unnecessary and can cause errors or confusion.

Answer analysis

Option-by-option breakdown

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

  • ✓

    In the Invoke Workflow activity, set the 'Amount' argument to the value of 'TransactionAmount' by using the expression 'TransactionAmount'.

    Why this is correct

    The Invoke Workflow activity allows you to map arguments of the invoked workflow to values in the current workflow. By setting the 'Amount' argument to the expression 'TransactionAmount', you pass the value of the variable to the argument. This is the standard way to share data between workflows. The argument direction in the invoked workflow should be 'In' to receive the value.

  • ✗

    In the Invoke Workflow activity, set the 'Amount' argument to the value of 'TransactionAmount' by using the expression 'CDbl(TransactionAmount)'.

    Why it's wrong here

    CDbl converts a value to a Double, but 'TransactionAmount' is already a Double. While this conversion is redundant, it is not incorrect in terms of type. However, it is unnecessary and could introduce confusion. The simplest and most direct way is to use 'TransactionAmount' directly. The exam expects the most straightforward correct answer, which is without redundant conversion.

  • ✗

    In the Invoke Workflow activity, set the 'Amount' argument to the value of 'TransactionAmount' by using the expression 'TransactionAmount.ToString'.

    Why it's wrong here

    Using 'TransactionAmount.ToString' would convert the Double value to a String, which does not match the expected Double type of the 'Amount' argument. This would cause a compilation error because the types are incompatible. The Invoke Workflow activity requires that the data types of the argument and the assigned expression match. Therefore, this option is incorrect.

  • ✗

    In the Invoke Workflow activity, set the 'Amount' argument to the value of 'TransactionAmount' by using the expression 'CStr(TransactionAmount)'.

    Why it's wrong here

    CStr converts a value to a String, so again this would result in a type mismatch. The 'Amount' argument is of type Double, and passing a String would not be valid. UiPath Studio enforces type safety at design time, so this expression would be flagged as an error. The correct approach is to pass the Double variable directly without conversion.

About these practice questions

Courseiva writes every UiPath-ADAv1 question from scratch — 285 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.