UiPath-ADPv1 Generic Automation Development Practice Question
A developer needs to store a true/false value that indicates whether a transaction was successful. Which variable type should be used in UiPath Studio?
⚠ Common exam trap
The trap here is overcomplicating a simple flag by using a String or Integer to represent true/false, which introduces unnecessary conversions and potential bugs.
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
✓
Boolean
The Boolean type is designed to store true/false values and integrates seamlessly with UiPath's conditional activities. It provides type safety and allows direct use in logical expressions. Using Boolean for transaction success flags is a best practice that improves readability and reduces the risk of conversion errors.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Object
Why it's wrong here
An Object variable can hold any data type, including a Boolean, but it lacks type safety. Using Object for a simple true/false flag means you must cast or convert it before using it in logical expressions, which can lead to runtime errors. It is better to use the specific Boolean type to ensure clarity and prevent mistakes.
- ✗
Int32
Why it's wrong here
An Int32 variable stores integer numbers. While you could use 0 and 1 to represent false and true, this is not idiomatic and reduces readability. It also requires explicit comparisons to Boolean values when used in conditions, adding unnecessary complexity. Int32 is intended for numeric calculations, not for logical flags.
- ✗
String
Why it's wrong here
A String variable stores text, such as 'True' or 'False', but it is not a Boolean. Using a String for a true/false flag introduces unnecessary conversions and potential errors, such as case sensitivity or unexpected values. It does not provide the type safety and logical operations that a Boolean offers for decision-making in the workflow.
- ✓
Boolean
Why this is correct
A Boolean variable in UiPath Studio holds only True or False. It is the correct type for storing the outcome of a transaction, such as success or failure. Boolean variables can be used directly in If activities and While loops, and they support logical operators like And, Or, and Not, making them ideal for decision logic.
About these practice questions
This UiPath-ADPv1 question is part of Courseiva's 276-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 →
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-ADPv1 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-ADPv1 exam.